From patchwork Fri May 6 15:27:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12841310 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 F3EE2C433F5 for ; Fri, 6 May 2022 15:30:57 +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=ftGGZZ2TRpcWxgNWIgyHhzsIpnFdof70Yq3mFazTD5A=; b=N+DrUrfztiTjRd Xvo624nxx4zhD5ozJENvzItAtpNG5XhC0CI7+pUc+W/YJH9XFTJdPKeIHfltr4pcubCPEFwcIACW/ wc0dpPJtLbT9gyz0uFOZpTxa86L89zA0RvlR4FZaX0ZV5oIrEmopK8mipl428RblPVGm8gFnr5Dw/ kpa5FDUweHKo9kIMZNnof6MN7uwBaAktOp/Sg9mJPFMZi6ujb6e1Y3OgCmgtohaTNxAVhHnYRp6ai 5D2jeqTycllqhw8t5wSfSUkmbozfcdLxOzUHsr2ozoy6TCdHZihtIyVgcWpmYwf34sVe2y1LLKUKh 7UvMRzfm8ImDTzXL7SZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmztt-0043d2-PK; Fri, 06 May 2022 15:29:49 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmzsz-00436p-Q6 for linux-arm-kernel@lists.infradead.org; Fri, 06 May 2022 15:28:55 +0000 Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1M6mQM-1nkDOl0XAk-008Fws; Fri, 06 May 2022 17:28:45 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: 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/24] ARM: dts: imx7-colibri: move aliases, chosen, extcon and gpio-keys Date: Fri, 6 May 2022 17:27:52 +0200 Message-Id: <20220506152809.295409-8-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220506152809.295409-1-marcel@ziswiler.com> References: <20220506152809.295409-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:QpzcMql6/IF9Ghd25BqVELfMBiROsYBtZvrZcCggmh/Z/3Y/UHT qdnG/5xR91+LxeEhPXtZHuUvejGPASBJTUVkKlCYw8rcNij6EYqttQQGQFkGz/oYwTecXob MOkwCd9pS+UcT2oz+je6IftzTZM5wMED4vhWEuOjh3gggy7TFFra2uTu4qQxNgDIri+uMRi 0rV7CX7dcMYLD1XtGADxg== X-UI-Out-Filterresults: notjunk:1;V03:K0:vzG8wR6IQIs=:/afAHazV92YtBBW/gmEwHN t42ghNMTK/oNR1cc19ra4/kjN0voZ1LA53OgYUoo6LhgX+4cPe15vWTZw8RRbrMukzIMEPaTK KQrkGdP56k8UvhHqncUm8fBw1uasu886LHKb9ZEsmEixcDlaS5dZQWTgP85eUPDlvW2A1pQ9D sjUOM/GawU4Z3t5Aha1sm9NjgcZ7oSW21WQvmUGUGWcwtX/32aDKe5I0+SLzt0czsxsyCMyJO uNhzQuQ7yIV1tr5I+Ko7sITiAkm2qkR9Kggn/i5dHFbleFm6b5iwYGu4jGolllg//uMh2me5Q QpyygG4ZxDiIoX6E8k7gWR7b1FKMWtZyI5l923Kjsxbs9/WyNICP/vjYIXTJM9F0doiTxAinc HJfwN/7bMVz3fe1A7t+itbUwYMwv65AYRF8cM7M4Ek3e2TNY8qqnGKcOfRDL/TSh3w01XqrLv qVYAyh8wyfJbiIuYaoGxL2igTA5THkaCPy2jCSvflv06jND82ArkXd1hadozQIGfs7NI5pj9t 9MrH59Lj7NFtpCIEAaJ/VQMtTuJFr3vvlew6aWuysh1T/fQchDG8p6NdsPbXYdoNnb6EmA8Pj QNlRQ5duu0332StWz2buBJl5Nohi0jb38uES4PTL/59ImOs2Bjjaousc4rbJBumsGAHwMMEzJ 35FYnK0b7bdxR0rkc2ilToWwfgx9nF3eGwUx9rv7EMVNelVOxyDI/cdtsT/AaT58AmWufkIWI wsgw4aDQfykREBnR X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220506_082853_991832_53466A84 X-CRM114-Status: GOOD ( 10.34 ) 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: Marcel Ziswiler Move aliases, chosen, extcon and gpio-keys to module-level device tree given they are standard Colibri functionalities. Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/imx7-colibri-aster.dtsi | 18 ------------ arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 31 -------------------- arch/arm/boot/dts/imx7-colibri.dtsi | 32 +++++++++++++++++++++ 3 files changed, 32 insertions(+), 49 deletions(-) diff --git a/arch/arm/boot/dts/imx7-colibri-aster.dtsi b/arch/arm/boot/dts/imx7-colibri-aster.dtsi index 9148c54403f3..c12de1861c05 100644 --- a/arch/arm/boot/dts/imx7-colibri-aster.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-aster.dtsi @@ -4,24 +4,6 @@ */ / { - chosen { - stdout-path = "serial0:115200n8"; - }; - - gpio-keys { - compatible = "gpio-keys"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpiokeys>; - - power { - label = "Wake-Up"; - gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; - linux,code = ; - debounce-interval = <10>; - wakeup-source; - }; - }; - reg_3v3: regulator-3v3 { compatible = "regulator-fixed"; regulator-name = "3.3V"; diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi index 4a7e593e9ac6..2e6678f81af6 100644 --- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi @@ -4,15 +4,6 @@ */ / { - aliases { - rtc0 = &rtc; - rtc1 = &snvs_rtc; - }; - - chosen { - stdout-path = "serial0:115200n8"; - }; - /* fixed crystal dedicated to mpc258x */ clk16m: clk16m { compatible = "fixed-clock"; @@ -20,27 +11,6 @@ clk16m: clk16m { clock-frequency = <16000000>; }; - extcon_usbc_det: usbc-det { - compatible = "linux,extcon-usb-gpio"; - id-gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_usbc_det>; - }; - - gpio-keys { - compatible = "gpio-keys"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpiokeys>; - - power { - label = "Wake-Up"; - gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; - linux,code = ; - debounce-interval = <10>; - wakeup-source; - }; - }; - reg_3v3: regulator-3v3 { compatible = "regulator-fixed"; regulator-name = "3.3V"; @@ -148,7 +118,6 @@ &uart3 { }; &usbotg1 { - extcon = <0>, <&extcon_usbc_det>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi index fa615379a117..c5a58949d664 100644 --- a/arch/arm/boot/dts/imx7-colibri.dtsi +++ b/arch/arm/boot/dts/imx7-colibri.dtsi @@ -6,6 +6,11 @@ #include / { + aliases { + rtc0 = &rtc; + rtc1 = &snvs_rtc; + }; + backlight: backlight { brightness-levels = <0 45 63 88 119 158 203 255>; compatible = "pwm-backlight"; @@ -18,6 +23,32 @@ backlight: backlight { status = "disabled"; }; + chosen { + stdout-path = "serial0:115200n8"; + }; + + extcon_usbc_det: usbc-det { + compatible = "linux,extcon-usb-gpio"; + debounce = <25>; + id-gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>; /* SODIMM 137 / USBC_DET */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbc_det>; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiokeys>; + + wakeup { + debounce-interval = <10>; + gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* SODIMM 45 */ + label = "Wake-Up"; + linux,code = ; + wakeup-source; + }; + }; + panel_dpi: panel-dpi { backlight = <&backlight>; compatible = "edt,et057090dhu"; @@ -513,6 +544,7 @@ &uart3 { &usbotg1 { dr_mode = "otg"; + extcon = <0>, <&extcon_usbc_det>; }; &usdhc1 {