From patchwork Tue Mar 7 18:40:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13164553 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 BBC63C678D5 for ; Tue, 7 Mar 2023 18:42:08 +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=bKkRhjLKiV/m9aSmZgIC4bL58jVP9mjkanbXJj5AN80=; b=sFjucGNHdhStYC qMXTE3VjtE/Ahj+G3RjkKYQOvqFOrCCERcE6+t2l+W452q5tkgcXWdJs37JSYYA5iCaCYDmT7IzhL sIIAI4WVJglXETAj131Y3fP1vaZx+upjFIWKMGINUgFht7+eLhugIouicAS97qFfonz3Y+ryWbwrF eUjTMnk6KcgNsPPll5InLgRSKttoxxztbHEoY3wU5TJJEySOO2izU+65HGFX/I2E/KRxX5IShDZKJ YHMH1cHkxXlWF6ZGYrLfh91mD05zJqpXMo4elXYWDf4rX9QOXwhw9qqISuHovWbKIpjsmrUL4alTV BTVun+2tfaWlqU4yCymQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZcFO-0022eg-EX; Tue, 07 Mar 2023 18:41:14 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZcEj-0022P9-46 for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 18:40:35 +0000 Received: from stefanw-SCHENKER ([37.4.248.41]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MwwuJ-1qW96B2ccV-00ySAw; Tue, 07 Mar 2023 19:40:24 +0100 From: Stefan Wahren To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH V2 8/9] ARM: dts: imx28-ts4600: Convert to use label references Date: Tue, 7 Mar 2023 19:40:06 +0100 Message-Id: <20230307184007.10672-9-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230307184007.10672-1-stefan.wahren@i2se.com> References: <20230307184007.10672-1-stefan.wahren@i2se.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:5WLGbgZTmA1Vo4VXka+q/8M782OoT8v94EcFqdUMJEdO9Fat5Os wxtSXL/LL2camsTq6pXvC+XIuz1cVZPDnsIYSQsqUgW2koRmJuTKYhadc+l+MF+tbEwGPc6 jxVjFlt7w2cB0wv1s/pxasn/IkTwDrbxypBirVQzKmWLE7cV7/0KJL7CW3DT/hWU2p/GX6f l9ltge0duje6UnZLxoH6g== UI-OutboundReport: notjunk:1;M01:P0:6l01397pkaE=;2/pj1Lys1m8xko4wZ3sV+/WQK+y mX+6RrRSRjccuT0t/mBNq9Vs63L2LWXWOdGQffvU/TWgCcK2NDqqGWSxyLOASFhmG17knkZrT qsV4NC3s58o7ShMstjmbgD3Cmghp/2sT8rxU+hxIF+fWFD1HzShMLDlyTW4LEWenyQLqsabse S4awNG7Oot30ew7kAfuJt3ayu8kICpUmo2OITbBItaZRl4BjeLdiP+6xGJ0e2W7jGWfWO+TKf huv3JWcUYqWqyQMj+SruDM75k/eSEv/SnK6jeEzxElgpqSAr2rxD113OLpOu7NcOdbh6WhbJO 9i+sBtuTnge474Nwm64WrhvG51i1K89tREP7eJeV4p+JgmzL81SjC/9mXgtrBfk74GrfH3zRp Zg8brvyKfm0Z+HOv6wXxJo3EoJf2y3BACgMvIGdCuNE2a7kpAcfrcf4w9Y19t16wqtoxWkmbn 8LprG7RsrVQ2b4uM0wa6qe3TedhHHGCQTVujAL0of1+bQPi773tBgElYpN4AS0Oub9sFwpvcP KcHfKwR1c10Iwns12ZTfDK2XFWhTBqY4EfoEka0Pzk8crXae5E47tJ66bSfLpeMc64VFn+4ZQ T/zeLrDpBZFevIjAxbswHpDJTSwTHB9kUlGeReB7guCgxVptNSesc2A1u5KEDDihhzcUpDlvq u383Ko/Uz5lUp1vyNHVe89GJoS3wfWHicflUHgTHWw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_104033_498102_95C2B44B X-CRM114-Status: GOOD ( 11.90 ) 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 This Technologic board file still use node name and unit address to reference parts from the imx28.dtsi . This causes a lot of redundancy. So use label references in order to make it easier to maintain. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/imx28-ts4600.dts | 80 ++++++++++++++---------------- 1 file changed, 36 insertions(+), 44 deletions(-) diff --git a/arch/arm/boot/dts/imx28-ts4600.dts b/arch/arm/boot/dts/imx28-ts4600.dts index 0d58da1c0cc5..ae6ed5c41be3 100644 --- a/arch/arm/boot/dts/imx28-ts4600.dts +++ b/arch/arm/boot/dts/imx28-ts4600.dts @@ -18,50 +18,6 @@ memory@40000000 { reg = <0x40000000 0x10000000>; /* 256MB */ }; - apb@80000000 { - apbh@80000000 { - ssp0: spi@80010000 { - compatible = "fsl,imx28-mmc"; - pinctrl-names = "default"; - pinctrl-0 = <&mmc0_4bit_pins_a - &mmc0_sck_cfg - &en_sd_pwr>; - broken-cd; - bus-width = <4>; - vmmc-supply = <®_vddio_sd0>; - status = "okay"; - }; - - pinctrl@80018000 { - - en_sd_pwr: en-sd-pwr@0 { - reg = <0>; - fsl,pinmux-ids = < - MX28_PAD_PWM3__GPIO_3_28 - >; - fsl,drive-strength = ; - fsl,voltage = ; - fsl,pull-up = ; - }; - - }; - }; - - apbx@80040000 { - pwm: pwm@80064000 { - pinctrl-names = "default"; - pinctrl-0 = <&pwm2_pins_a>; - status = "okay"; - }; - - duart: serial@80074000 { - pinctrl-names = "default"; - pinctrl-0 = <&duart_pins_a>; - status = "okay"; - }; - }; - }; - reg_vddio_sd0: regulator-vddio-sd0 { compatible = "regulator-fixed"; regulator-name = "vddio-sd0"; @@ -72,3 +28,39 @@ reg_vddio_sd0: regulator-vddio-sd0 { }; }; + +&duart { + pinctrl-names = "default"; + pinctrl-0 = <&duart_pins_a>; + status = "okay"; +}; + +&pinctrl { + en_sd_pwr: en-sd-pwr@0 { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_PWM3__GPIO_3_28 + >; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; +}; + +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm2_pins_a>; + status = "okay"; +}; + +&ssp0 { + compatible = "fsl,imx28-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_4bit_pins_a + &mmc0_sck_cfg + &en_sd_pwr>; + broken-cd; + bus-width = <4>; + vmmc-supply = <®_vddio_sd0>; + status = "okay"; +};