Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4823318iob; Mon, 9 May 2022 02:27:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvbKP7GzCD6qWvoC+P2IFazfJWW/QRKDouIbTTej1b1mh4C8fasJ8JDWZeABKO+psxrcKu X-Received: by 2002:a17:902:9887:b0:151:6e1c:7082 with SMTP id s7-20020a170902988700b001516e1c7082mr15150279plp.162.1652088430914; Mon, 09 May 2022 02:27:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652088430; cv=none; d=google.com; s=arc-20160816; b=lyPhcqo/07dZCBzQI2ALuh81souZqonOrB0EIR2+WUu94STiJnRwDU2XaQ5Lc2yxv0 +YF/QAna/PZqqwPq/BD0YQkV2ikfisvEuuJ/pGp1aCBrxw87HQRfQH4AfFSjZpKF0K/D f1/9hcNq7obSXNFT2nFAcnKuF3KQ92pTzoSY0Sj1+OT/2+AOtOungAFnsVgXtSsc2k9r wwY/g0LqLkH6ZyHAw6rcm+dmCLohrofK0JlrV7RjgDeaVLY9ibW9Hg2sXsPMNmdhKc+O D9gNumOtK9l4nfrz1/tJmkS0tm7MoEW+FpWqkCIomA1XpSTrrRjgU84hlD8S78GayyH3 kZcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=u7BKR3JhWEcG6VE2owlHZwcnvbJFdyxgySKzbS3UMdE=; b=BVH6hdoVM/6ZT9jjZsimGAk1NP6eLJSZo8UAl628EEBYxQlw4RTfH1F+52mp7ewwT3 EXHGjr2zG3TSqruz3QagA5hJJEc2aYKCbn9kwuEasu+KXkFUAKRw6BOkuJcs0EOtxClB 4oPsQgw2kipvd7fMPLAms9K6fB6DK7/Ib7L7SgUcchn270c1yehFD8UAxZHNyyKZmDGI EJUZxxuubXNx9JjzjmrB1S6oPXElvu0xLjTna2alujNbseALgxtLsd2uhQfUBwszgF+e 5aE56ww0FRvoPfl1D/4WIU2mUYc0ZxxmbwItsC9hBt2byt+w4KZJXIisDcUZQ3fICu0M 7Y8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id s5-20020a170903200500b00158eabc46casi9388001pla.604.2022.05.09.02.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:27:10 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E49F3E44D1; Mon, 9 May 2022 02:15:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442929AbiEFPdH (ORCPT + 99 others); Fri, 6 May 2022 11:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442856AbiEFPcm (ORCPT ); Fri, 6 May 2022 11:32:42 -0400 Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F7386D1AC; Fri, 6 May 2022 08:28:58 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 { -- 2.35.1