From patchwork Fri Jul 13 12:49:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 10523199 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BE7B1602B3 for ; Fri, 13 Jul 2018 12:49:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7A8E29948 for ; Fri, 13 Jul 2018 12:49:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9AA2E29957; Fri, 13 Jul 2018 12:49:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 17F7B29948 for ; Fri, 13 Jul 2018 12:49:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=pYsDT0RSuZk3C28BcQ66af7vIXDEZS8vmb0mKzo22WM=; b=dy7DRRFjSOIu6w8EMc5bV8vOtg SD/XNQ9x/JyUtGSG/+2uPWTx44x91/VpmRK992MoySU1PSpiHGbCC+kjwodXzoDJLdbOKrB5OaC9T OAD+ccy5SSHMqal5hHQ6/mEypHxtEobeTFsXklXjZdueHy64sleoIOgGbssu8siEjpUblhaFCfZjG /DVzVb0Iz0+GQraGqJn44WDJlddaz43vZs6IrbEKRRmP7gCb1plsqlcQmC/DmUThjST9LmqIBOO2c P3EOFzPCw+GqYdRKsqDmlArKyRJb+ZvZ0CsDb97i3SJwdI1Z3FckiVUv25G5c68tHE7NnZXmEC0rC pB8uT2mw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdxWA-0006Op-6V; Fri, 13 Jul 2018 12:49:50 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdxVm-0005tu-3H for linux-arm-kernel@lists.infradead.org; Fri, 13 Jul 2018 12:49:27 +0000 Received: by mail-wm0-x241.google.com with SMTP id a9-v6so2466622wmb.0 for ; Fri, 13 Jul 2018 05:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IIJYMuvJNgkUvh6k7kXJ4RF0VYOuKrTnvWarltAHgKY=; b=rnXlkF6tQGFP9T1xrGdEpOI/FErp+p6orBAhcgdBOtz2Kd00569BUmj0R3jrBFC2Fl 9VFOOpJPO1t61qD4BcRuIQZVoFwt/L2VrteNNLRmW/qa9quQ2E+zSjW2Zk8A6khPDDdF Tn2T3p4MinVR6o+rX4w2LraGZRVdiZUyD8bvg2IZUFtEF39fqG5s6HvFtTkouwObLGQ9 DSgGBbfKd28kO9lKnGIsR4FB+2f8orxOKqz6dCH0wDwVIkF1krfCPToymvS+9mQp9dKy 1j4mMp5P0sHKqxiDp9ndLHFRzFOjH2oWTwCMQcL9aM+6ITNyQdE0ZYNqCiaLb9eFT4V1 AxXQ== 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; bh=IIJYMuvJNgkUvh6k7kXJ4RF0VYOuKrTnvWarltAHgKY=; b=Mc5DuKCmlWXKB8Hqcsyo7DfnmY+6FTa+mhXotF+g0AD1acK8dIDnCTKmKJuUveR7jM dVwHxE598/yeDJY0B9EWhzhUjGUaVbvZgI83EwQi4GlCyRJ9hqeDuZ/0H4pXuY97PstU XPIDOppG3M2ms89QY5BM0smJOUBXwrx+uNda1At3iS+NUXXf2E31HaU75SaEC/ZwnOlp IcClGouAO/mvcAbSOvOuGnVL19XyJQqJTIlp4oPtgj8EjFmFqMPzacqXvKtejJ93UVZw X14AOXAmNp0mBtUZ3a5bHjYkhXHae/BoA9nkRzJHcnwYeTTKexrE/nnvaAuL59HNBycg 6KQg== X-Gm-Message-State: AOUpUlF8F1OZLAZetbDwzJMjf5zpUar2tOK/t7J9vmAx8jit3YeHLwcP lgbMDmglHKWe4qj/7WbwEnC7+byX X-Google-Smtp-Source: AAOMgpfIoCW6XpPIcGo3sAfl54RXXMDSh+CW7Qq49KBqLrZdu227kmgssJDbhi9y6C34XxxVmV0TRA== X-Received: by 2002:a1c:8b81:: with SMTP id n123-v6mr3777243wmd.142.1531486154529; Fri, 13 Jul 2018 05:49:14 -0700 (PDT) Received: from g751.home (2a01cb040a78e300981d7402d6f3c8a5.ipv6.abo.wanadoo.fr. [2a01:cb04:a78:e300:981d:7402:d6f3:c8a5]) by smtp.googlemail.com with ESMTPSA id r17-v6sm27578909wrt.44.2018.07.13.05.49.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jul 2018 05:49:13 -0700 (PDT) From: Gary Bisson To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] ARM: dts: imx7d-nitrogen7: use OF graph to describe the display Date: Fri, 13 Jul 2018 14:49:03 +0200 Message-Id: <20180713124904.9285-3-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180713124904.9285-1-gary.bisson@boundarydevices.com> References: <20180713124904.9285-1-gary.bisson@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180713_054926_238747_02E09095 X-CRM114-Status: GOOD ( 13.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: s.hauer@pengutronix.de, stefan@agner.ch, Gary Bisson , linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, shawnguo@kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP To make use of the new eLCDIF DRM driver OF graph description is required. Describe the display using OF graph nodes. Signed-off-by: Gary Bisson Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx7d-nitrogen7.dts | 48 +++++++++------------------ 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-nitrogen7.dts b/arch/arm/boot/dts/imx7d-nitrogen7.dts index 9c6a3fdfcf78..d8aac4a2d02a 100644 --- a/arch/arm/boot/dts/imx7d-nitrogen7.dts +++ b/arch/arm/boot/dts/imx7d-nitrogen7.dts @@ -11,11 +11,6 @@ model = "Boundary Devices i.MX7 Nitrogen7 Board"; compatible = "boundary,imx7d-nitrogen7", "fsl,imx7d"; - aliases { - fb-lcd = &lcdif; - t-lcd = &t_lcd; - }; - memory@80000000 { reg = <0x80000000 0x40000000>; }; @@ -28,7 +23,7 @@ default-on; }; - backlight-j20 { + backlight_lcd: backlight-j20 { compatible = "pwm-backlight"; pwms = <&pwm1 0 5000000 0>; brightness-levels = <0 4 8 16 32 64 128 255>; @@ -36,6 +31,17 @@ status = "okay"; }; + panel-lcd { + compatible = "okaya,rs800480t-7x0gp"; + backlight = <&backlight_lcd>; + + port { + panel_in: endpoint { + remote-endpoint = <&lcdif_out>; + }; + }; + }; + reg_usb_otg1_vbus: regulator-usb-otg1-vbus { compatible = "regulator-fixed"; regulator-name = "usb_otg1_vbus"; @@ -280,35 +286,11 @@ }; &lcdif { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_lcdif_dat - &pinctrl_lcdif_ctrl>; - lcd-supply = <®_vref_3v3>; - display = <&display0>; status = "okay"; - display0: lcd-display { - bits-per-pixel = <16>; - bus-width = <18>; - - display-timings { - native-mode = <&t_lcd>; - t_lcd: t_lcd_default { - /* default to Okaya display */ - clock-frequency = <30000000>; - hactive = <800>; - vactive = <480>; - hfront-porch = <40>; - hback-porch = <40>; - hsync-len = <48>; - vback-porch = <29>; - vfront-porch = <13>; - vsync-len = <3>; - hsync-active = <0>; - vsync-active = <0>; - de-active = <1>; - pixelclk-active = <0>; - }; + port { + lcdif_out: endpoint { + remote-endpoint = <&panel_in>; }; }; };