From patchwork Thu Feb 7 08:36:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 157683 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp366192jaa; Thu, 7 Feb 2019 00:37:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IZrSE1tkBzX/zM0320HRdFDKx4MivXJwGRc1PYoa8VHE9XKL4E9suLLQqIHMbfh+0XzVwZN X-Received: by 2002:a62:1e87:: with SMTP id e129mr14848862pfe.221.1549528636391; Thu, 07 Feb 2019 00:37:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549528636; cv=none; d=google.com; s=arc-20160816; b=ldBtcszmW2iD69axwjo0GwpbanuWyEdXO8FO4cBDfXxFamxrx+hOnkIUALJRoVvBVr XW6v+9JenW1B1Qo2VIPZDj4kdWxYbG7EbZeioSJ4bvRgTUCIaevsup+x4+YprSRo43xj G1ZTrWl03wIqI4//6JMFCM5tlbc0kHlbswvHD8sFpGuGH4IFLEGg2NdV2GJBpIa7V1TR em74bAx7GEH8hokATb+28zrQS9fwCTVO66GiVM05rIxf6YXFrCi0OioVJiG8ZdaYxlTd IpEbblzvgqt+HJMvR0YI10KJ5UMpNUUTCicB1cJYuY4lCLOb7Pb4KC52RXrbD9I9k10x mCiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=XeL/fasgJsqnMHfaiL+0lN/8MThzTu5d2x8ViVJGNZM=; b=fDnyGjBhPerTNqGPrlPpO+3SeOm630mT2Dnw/k+MjdcwRiF8mgssNfypPQne6ktscZ AniaqHWxo4/Mm5pPjBw8M5ZmiUHuUH6Q/BbGyyZaTZgx/sP4T7UVzk80cKmPBJBjYqQW xra0czxNZRPIPlpnz0mk7nYpsvSqX35aMLE6kVPziMpryzGBAxF8X39qaGYGXQZCCZU6 fh01A/2EJ076EqOyLOg0tvODXLbs9NzkgUNVgf1+VyVNDpeWcdKlpOY+9cG4nIbYtXGK Gl9YX5s2eVl0A3a40e7rUv1+11Zbd1KM7sCLdWbnTCXSvH04TdOeLX9/hn6dHkVr7rdQ sf8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id p1si2182151pgb.192.2019.02.07.00.37.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 00:37:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0C0FB6EC1E; Thu, 7 Feb 2019 08:37:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by gabe.freedesktop.org (Postfix) with ESMTPS id 593A16EC1F for ; Thu, 7 Feb 2019 08:37:13 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id l10so7497533lfh.9 for ; Thu, 07 Feb 2019 00:37:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iFmmPc4bLcix+iB9KqTphgdxH8DV4tik6E4A8m4R3H0=; b=sSY6rHefCs5RlyupXdtQ6lgfqfnOtVbmEcmUJN0P7Fs1ivF4IYIcNFKVDYfsYMxzWz VxvIMphLF/OPKGK94bJvwDDlbPipZUOGmL+uxiY0XqUXlHaiM2P9kTpYJMe/JeMJKAGg IR1SN6tQGR3FZIrmr3qCLab7nzaqVnkbMACKak3gqLhkVamkDiXjdvZRQsu6emVV8tIl cWagdhoQtMCW5TDMHAbyG2KTXo3K8xIkHNAW6BLxfop+Mvga6bNBi3qO4LK1hpeQgX/C BNdAQg2SL0GsgiGCVEO4vUVjHM5wXbKufqWmp5af4H2W1jF6INDP2dSwRBeXclKMceCT +KLg== X-Gm-Message-State: AHQUAuaicZBbzQeTw/cTPIYkWBLpInMP1bkdKhHgb9oSZgeE0+34+ph8 QV7zepiW85zfEsEg8NfczKgV3vT4vFI= X-Received: by 2002:a19:9c81:: with SMTP id f123mr9201499lfe.96.1549528631265; Thu, 07 Feb 2019 00:37:11 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id l72sm470910lfg.75.2019.02.07.00.37.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Feb 2019 00:37:10 -0800 (PST) From: Linus Walleij To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie Subject: [PATCH 4/4] ARM: dts: Ux500: Add MCDE and Samsung display Date: Thu, 7 Feb 2019 09:36:47 +0100 Message-Id: <20190207083647.20615-5-linus.walleij@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190207083647.20615-1-linus.walleij@linaro.org> References: <20190207083647.20615-1-linus.walleij@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This adds and updates the device tree nodes for the MCDE display controller and connects the Samsung display to the TVK1281618 user interface board (UIB) so we get nicely working graphics on this reference design. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/ste-dbx5x0.dtsi | 36 +++++++++++++++++++--- arch/arm/boot/dts/ste-href-stuib.dtsi | 25 +++++++++++++++ arch/arm/boot/dts/ste-href-tvk1281618.dtsi | 25 +++++++++++++++ 3 files changed, 81 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi index e6ed7c0354a2..a33b36a8c879 100644 --- a/arch/arm/boot/dts/ste-dbx5x0.dtsi +++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi @@ -1197,12 +1197,11 @@ }; mcde@a0350000 { - compatible = "stericsson,mcde"; - reg = <0xa0350000 0x1000>, /* MCDE */ - <0xa0351000 0x1000>, /* DSI link 1 */ - <0xa0352000 0x1000>, /* DSI link 2 */ - <0xa0353000 0x1000>; /* DSI link 3 */ + compatible = "ste,mcde"; + reg = <0xa0350000 0x1000>; interrupts = ; + epod-supply = <&db8500_b2r2_mcde_reg>; + vana-supply = <&ab8500_ldo_ana_reg>; clocks = <&prcmu_clk PRCMU_MCDECLK>, /* Main MCDE clock */ <&prcmu_clk PRCMU_LCDCLK>, /* LCD clock */ <&prcmu_clk PRCMU_PLLDSI>, /* HDMI clock */ @@ -1211,6 +1210,33 @@ <&prcmu_clk PRCMU_DSI0ESCCLK>, /* TVout clock 0 */ <&prcmu_clk PRCMU_DSI1ESCCLK>, /* TVout clock 1 */ <&prcmu_clk PRCMU_DSI2ESCCLK>; /* TVout clock 2 */ + clock-names = "mcde", "lcd", "hdmi", "dsi0", "dsi1", "dsi0es", "dsi1es", "dsi2es"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + status = "disabled"; + + dsi0: dsi@a0351000 { + compatible = "ste,mcde-dsi"; + reg = <0xa0351000 0x1000>; + vana-supply = <&ab8500_ldo_ana_reg>; + #address-cells = <1>; + #size-cells = <0>; + }; + dsi1: dsi@a0352000 { + compatible = "ste,mcde-dsi"; + reg = <0xa0352000 0x1000>; + vana-supply = <&ab8500_ldo_ana_reg>; + #address-cells = <1>; + #size-cells = <0>; + }; + dsi2: dsi@a0353000 { + compatible = "ste,mcde-dsi"; + reg = <0xa0353000 0x1000>; + vana-supply = <&ab8500_ldo_ana_reg>; + #address-cells = <1>; + #size-cells = <0>; + }; }; cryp@a03cb000 { diff --git a/arch/arm/boot/dts/ste-href-stuib.dtsi b/arch/arm/boot/dts/ste-href-stuib.dtsi index 35e944d8b5c4..714c2fb758d4 100644 --- a/arch/arm/boot/dts/ste-href-stuib.dtsi +++ b/arch/arm/boot/dts/ste-href-stuib.dtsi @@ -190,5 +190,30 @@ }; }; }; + + mcde@a0350000 { + status = "okay"; + + dsi@a0351000 { + port { + dsi0_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + + panel: display { + compatible = "samsung,s6d16d0"; + reg = <0>; + vdd1-supply = <&ab8500_ldo_aux1_reg>; + reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + }; + }; }; }; diff --git a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi index 0e7d77d719d7..84bb1e79168b 100644 --- a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi +++ b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi @@ -274,5 +274,30 @@ }; }; }; + + mcde@a0350000 { + status = "okay"; + + dsi@a0351000 { + port { + dsi0_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + + panel: display { + compatible = "samsung,s6d16d0"; + reg = <0>; + vdd1-supply = <&ab8500_ldo_aux1_reg>; + reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + }; + }; }; };