From patchwork Thu Apr 14 08:50:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12813140 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADCD0C433EF for ; Thu, 14 Apr 2022 08:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=q6sIMC5sCxoqRH1YZx1qIZoL84YqSgIP9AHjtMhKEZg=; b=dfCuwVLpRDtawG /+lE1Pil4uoCd9aN1otBgz0Mz+aKCHj0uLomqaIfe8Ml+558RrSS52Fq7gPu5/cXMRTr3/WOQGqKc vOT68feDG2Eo1jEyBAOSuf5sR0gEspMgK/+KWYRRic7AHCPsG4vUfLkAGSr8YjxHAKfAfCVhpviPf 3BQg9W9ls+xIODDxNoOn4+NMkvPMPS0svVGHqayCBQfS2+V+BqOBnTfJHdry+JFxNlCipMcOYOo2O 9N0ltw6KIeKYWffRk6HZ92ZO2nuHqb35tygBavwOm69rY5w6SboeIfXWBNwqfYnVXkGQu5T/nECnK /3h1sqS57o5SW4BVFnZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nevF0-004f8s-4r; Thu, 14 Apr 2022 08:54:14 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nevCi-004e0h-Bg for linux-arm-kernel@lists.infradead.org; Thu, 14 Apr 2022 08:51:54 +0000 Received: from toolbox.toradex.int ([31.10.206.124]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MTisb-1nWrHE3anN-00U6MD; Thu, 14 Apr 2022 10:51:42 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Denys Drozdov , Marcel Ziswiler , Fabio Estevam , Frank Rowand , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Russell King , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 07/14] ARM: dts: imx6ull-colibri: update device trees to support overlays Date: Thu, 14 Apr 2022 10:50:59 +0200 Message-Id: <20220414085106.18621-8-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220414085106.18621-1-marcel@ziswiler.com> References: <20220414085106.18621-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:o18EqjaqFqmOiCMZr9tOYKPth0afq3U2xv0bEeiIkxnX1PIGNMR oPvoa/eG2TpS6QE1WRE9QyJvzpSBxg1cDnMbn5rb7qC7k1RMCmihXxZBe9zJVEcidwD4v2W CnKwsfa2K5+KQ5buqJgHbYvsNqA3fRxOdcjRmxv70+508qJDuBKgLBVwGLWNR6N5WIUHGZA eXGrvTuO5W99lG/Zvel/w== X-UI-Out-Filterresults: notjunk:1;V03:K0:gDAZEyIffAg=:AfoY5Ebp5ykv65njsNwENK p2kIJTSin0JcuejtLWxr38qGy4GFc6HPzlsKqvdEITGyZf4E+IogTHpYxsylMy5LjCpsctdGZ HFtOCZ7Qgj9Oo7xdFvA+AJP7K7OJSnR+QsoWAgmvHM6dVCwwWx5D6lRXjolU5r/OP/KCmvcqS TRsYnzrL5ItuxGodOCthsrsk3CPQfsi99FoS1hp7w26RmNRlPkKd4yWads9Fg4fHk3I1rCcSD 61y72gFVrdCYts+jzx7h3Ia3vcgYUQfufxxl+BZynQygJECIs1Q4VCAKfuXVp2RQ2OC2KJ3W7 TFwJZcG8EYufLEPaJIXVfcgivkDS+8v0Wsl6El22jYZF4P0ybg0UdOm1hL2P2HzknRqm8tdzK 4GXtTAi/70I4ZbpjyWX+YQojtj0+3sSbFxdoXjCjHXOoa8HvaP4HJ3+AxB5Ah9z9FYNSGiSQJ gcgIo9lYGVulAS5L9F5v+wy6Dnya9lMA7aXryVITxzyprQNlbHoOHpYILY83oVxdNXdhAD8qL t1mZRBUBlEM6J4BZXy6K1UCQn0kZSvem37eSanYoVWnfsZjG36/TEriRSdXTSSj4OXoMG6XDJ x4ZpMG+owo1/Bzk3WVVZ9m7iekYamux7rJkPkz79BeZourytZtI7AJzAXsHc+1LpD06HuWGQP QV8QunRnd7hPAtvb+t3op0JN2mPWYWMWmpKF8xj21CfPbCjcLR8gYpEpYL/xLAQ04DFMGo3ot afiC5g9GmvSf0huE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220414_015152_524452_97E68288 X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Denys Drozdov Prepare in-tree device trees for out-of-tree device tree overlay support (eMMC SKU only). Relocate panel-dpi default to edt,et057090dhu (RGB 18bit VGA 640x480) to the module-level dtsi and remove it from the carrier board dtsi. Keep backlight, resistive touch and Atmel maxtouch nodes enabled for both eMMC and NAND modules. Signed-off-by: Denys Drozdov Signed-off-by: Marcel Ziswiler --- .../arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 29 ----------------- arch/arm/boot/dts/imx6ull-colibri.dtsi | 31 ++++++++++++++++--- 2 files changed, 27 insertions(+), 33 deletions(-) diff --git a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi index ea086b305d22..3c07b4273e80 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi @@ -29,17 +29,6 @@ clk16m: clk16m { clock-frequency = <16000000>; }; - panel: panel { - compatible = "edt,et057090dhu"; - backlight = <&bl>; - power-supply = <®_3v3>; - - port { - panel_in: endpoint { - remote-endpoint = <&lcdif_out>; - }; - }; - }; reg_3v3: regulator-3v3 { compatible = "regulator-fixed"; @@ -71,14 +60,6 @@ &adc1 { status = "okay"; }; -&bl { - brightness-levels = <0 4 8 16 32 64 128 255>; - default-brightness-level = <6>; - power-supply = <®_3v3>; - pwms = <&pwm4 0 5000000 1>; - status = "okay"; -}; - &ecspi1 { status = "okay"; @@ -107,16 +88,6 @@ m41t0m6: rtc@68 { }; }; -&lcdif { - status = "okay"; - - port { - lcdif_out: endpoint { - remote-endpoint = <&panel_in>; - }; - }; -}; - /* PWM */ &pwm4 { status = "okay"; diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index d633288b8ee8..a1e26ac4d1e7 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -11,12 +11,29 @@ aliases { ethernet1 = &fec1; }; - bl: backlight { + backlight: backlight { compatible = "pwm-backlight"; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + enable-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bl_on>; - enable-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; - status = "disabled"; + power-supply = <®_3v3>; + pwms = <&pwm4 0 5000000 1>; + status = "okay"; + }; + + panel_dpi: panel-dpi { + compatible = "edt,et057090dhu"; + backlight = <&backlight>; + power-supply = <®_3v3>; + status = "okay"; + + port { + lcd_panel_in: endpoint { + remote-endpoint = <&lcdif_out>; + }; + }; }; reg_module_3v3: regulator-module-3v3 { @@ -149,7 +166,7 @@ &i2c2 { scl-gpios = <&gpio1 30 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "okay"; - ad7879@2c { + ad7879_ts: touchscreen@2c { compatible = "adi,ad7879-1"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_snvs_ad7879_int>; @@ -170,6 +187,12 @@ &lcdif { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lcdif_dat &pinctrl_lcdif_ctrl>; + + port { + lcdif_out: endpoint { + remote-endpoint = <&lcd_panel_in>; + }; + }; }; &pwm4 {