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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 314C7C04A95 for ; Wed, 28 Sep 2022 13:22:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B24B684B13; Wed, 28 Sep 2022 15:22:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id E1DF684B7A; Wed, 28 Sep 2022 15:22:53 +0200 (CEST) Received: from mail-m11877.qiye.163.com (mail-m11877.qiye.163.com [115.236.118.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 85B868317B for ; Wed, 28 Sep 2022 15:22:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.60.65] (unknown [103.29.142.67]) by mail-m11877.qiye.163.com (Hmail) with ESMTPA id 5F59140056D; Wed, 28 Sep 2022 21:22:36 +0800 (CST) Message-ID: <258c2dbf-436d-5935-83f5-a2dbb8cf62d7@rock-chips.com> Date: Wed, 28 Sep 2022 21:22:30 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v3 4/5] arm: dts: rockchip: rk3128: fix DT node names Content-Language: en-US To: Johan Jonker Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, u-boot@lists.denx.de References: <20220909200256.15981-1-jbx6244@gmail.com> From: Kever Yang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZHkgYVkNMSx4fHU5PHh9OGFUTARMWGhIXJBQOD1 lXWRgSC1lBWUpLSFVJQlVKT0lVTUxZV1kWGg8SFR0UWUFZT0tIVUpKS0hKTFVKS0tVS1kG X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MVE6FSo*FD0eHAwLSjVKPTcY TiMKCQFVSlVKTU1PSExKSE5MTUtKVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKS0hVSUJVSk9JVU1MWVdZCAFZQUJKTEo3Bg++ X-HM-Tid: 0a83844375502eb3kusn5f59140056d X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hi Johan,     I think it would be good to sync to kernel dts as you have done for other SoCs, but not only change the dts separately, Thansk, - Kever On 2022/9/10 04:19, Johan Jonker wrote: > The rk3128 DT node names should be generic. > Rename them to the pattern defined in the DT bindings. > > Signed-off-by: Johan Jonker > --- > arch/arm/dts/rk3128-evb.dts | 5 +++ > arch/arm/dts/rk3128.dtsi | 62 +++++++++++++++++-------------------- > 2 files changed, 33 insertions(+), 34 deletions(-) > > diff --git a/arch/arm/dts/rk3128-evb.dts b/arch/arm/dts/rk3128-evb.dts > index e7d8f7c9..93291d78 100644 > --- a/arch/arm/dts/rk3128-evb.dts > +++ b/arch/arm/dts/rk3128-evb.dts > @@ -15,6 +15,11 @@ > stdout-path = &uart2; > }; > > + memory@60000000 { > + device_type = "memory"; > + reg = <0x60000000 0x40000000>; > + }; > + > vcc5v0_otg: vcc5v0-otg-drv { > compatible = "regulator-fixed"; > regulator-name = "vcc5v0_otg"; > diff --git a/arch/arm/dts/rk3128.dtsi b/arch/arm/dts/rk3128.dtsi > index b58804b6..48833bff 100644 > --- a/arch/arm/dts/rk3128.dtsi > +++ b/arch/arm/dts/rk3128.dtsi > @@ -8,7 +8,6 @@ > #include > #include > #include > -#include "skeleton.dtsi" > > / { > compatible = "rockchip,rk3128"; > @@ -34,11 +33,6 @@ > mmc1 = &sdmmc; > }; > > - memory { > - device_type = "memory"; > - reg = <0x60000000 0x40000000>; > - }; > - > arm-pmu { > compatible = "arm,cortex-a7-pmu"; > interrupts = , > @@ -52,10 +46,10 @@ > #size-cells = <0>; > enable-method = "rockchip,rk3128-smp"; > > - cpu0:cpu@0x000 { > + cpu0: cpu@0 { > device_type = "cpu"; > compatible = "arm,cortex-a7"; > - reg = <0x000>; > + reg = <0x0>; > operating-points = < > /* KHz uV */ > 816000 1000000 > @@ -65,22 +59,22 @@ > clocks = <&cru ARMCLK>; > }; > > - cpu1:cpu@0x001 { > + cpu1: cpu@1 { > device_type = "cpu"; > compatible = "arm,cortex-a7"; > - reg = <0x001>; > + reg = <0x1>; > }; > > - cpu2:cpu@0x002 { > + cpu2: cpu@2 { > device_type = "cpu"; > compatible = "arm,cortex-a7"; > - reg = <0x002>; > + reg = <0x2>; > }; > > - cpu3:cpu@0x003 { > + cpu3: cpu@3 { > device_type = "cpu"; > compatible = "arm,cortex-a7"; > - reg = <0x003>; > + reg = <0x3>; > }; > }; > > @@ -165,7 +159,7 @@ > interrupt-parent = <&gic>; > ranges; > > - pdma: pdma@20078000 { > + pdma: dma-controller@20078000 { > compatible = "arm,pl330", "arm,primecell"; > reg = <0x20078000 0x4000>; > arm,pl330-broken-no-flushp;//2 > @@ -207,7 +201,7 @@ > rockchip,broadcast = <1>; > }; > > - watchdog: wdt@2004c000 { > + watchdog: watchdog@2004c000 { > compatible = "rockchip,watch dog"; > reg = <0x2004c000 0x100>; > clock-names = "pclk_wdt"; > @@ -224,7 +218,7 @@ > #reset-cells = <1>; > }; > > - nandc: nandc@10500000 { > + nandc: nand-controller@10500000 { > compatible = "rockchip,rk-nandc"; > reg = <0x10500000 0x4000>; > interrupts = ; > @@ -247,7 +241,7 @@ > assigned-clock-rates = <594000000>; > }; > > - uart0: serial0@20060000 { > + uart0: serial@20060000 { > compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart"; > reg = <0x20060000 0x100>; > interrupts = ; > @@ -262,7 +256,7 @@ > #dma-cells = <2>; > }; > > - uart1: serial1@20064000 { > + uart1: serial@20064000 { > compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart"; > reg = <0x20064000 0x100>; > interrupts = ; > @@ -277,7 +271,7 @@ > #dma-cells = <2>; > }; > > - uart2: serial2@20068000 { > + uart2: serial@20068000 { > compatible = "rockchip,rk3128-uart", "snps,dw-apb-uart"; > reg = <0x20068000 0x100>; > interrupts = ; > @@ -304,7 +298,7 @@ > status = "disabled"; > }; > > - pwm0: pwm0@20050000 { > + pwm0: pwm@20050000 { > compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm"; > reg = <0x20050000 0x10>; > #pwm-cells = <3>; > @@ -314,7 +308,7 @@ > clock-names = "pwm"; > }; > > - pwm1: pwm1@20050010 { > + pwm1: pwm@20050010 { > compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm"; > reg = <0x20050010 0x10>; > #pwm-cells = <3>; > @@ -324,7 +318,7 @@ > clock-names = "pwm"; > }; > > - pwm2: pwm2@20050020 { > + pwm2: pwm@20050020 { > compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm"; > reg = <0x20050020 0x10>; > #pwm-cells = <3>; > @@ -334,7 +328,7 @@ > clock-names = "pwm"; > }; > > - pwm3: pwm3@20050030 { > + pwm3: pwm@20050030 { > compatible = "rockchip,rk3128-pwm", "rockchip,rk3288-pwm"; > reg = <0x20050030 0x10>; > #pwm-cells = <3>; > @@ -430,7 +424,7 @@ > status = "disabled"; > }; > > - sdmmc: dwmmc@10214000 { > + sdmmc: mmc@10214000 { > compatible = "rockchip,rk312x-dw-mshc", "rockchip,rk3288-dw-mshc"; > reg = <0x10214000 0x4000>; > max-frequency = <150000000>; > @@ -445,7 +439,7 @@ > status = "disabled"; > }; > > - emmc: dwmmc@1021c000 { > + emmc: mmc@1021c000 { > compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc"; > reg = <0x1021c000 0x4000>; > max-frequency = <150000000>; > @@ -464,7 +458,7 @@ > status = "disabled"; > }; > > - i2c0: i2c0@20072000 { > + i2c0: i2c@20072000 { > compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; > reg = <20072000 0x1000>; > interrupts = ; > @@ -476,7 +470,7 @@ > pinctrl-0 = <&i2c0_xfer>; > }; > > - i2c1: i2c1@20056000 { > + i2c1: i2c@20056000 { > compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; > reg = <0x20056000 0x1000>; > interrupts = ; > @@ -488,7 +482,7 @@ > pinctrl-0 = <&i2c1_xfer>; > }; > > - i2c2: i2c2@2005a000 { > + i2c2: i2c@2005a000 { > compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; > reg = <0x2005a000 0x1000>; > interrupts = ; > @@ -500,7 +494,7 @@ > pinctrl-0 = <&i2c2_xfer>; > }; > > - i2c3: i2c3@2005e000 { > + i2c3: i2c@2005e000 { > compatible = "rockchip,rk3128-i2c", "rockchip,rk3288-i2c"; > reg = <0x2005e000 0x1000>; > interrupts = ; > @@ -546,7 +540,7 @@ > #size-cells = <1>; > ranges; > > - gpio0: gpio0@2007c000 { > + gpio0: gpio@2007c000 { > compatible = "rockchip,gpio-bank"; > reg = <0x2007c000 0x100>; > interrupts = ; > @@ -557,7 +551,7 @@ > #interrupt-cells = <2>; > }; > > - gpio1: gpio1@20080000 { > + gpio1: gpio@20080000 { > compatible = "rockchip,gpio-bank"; > reg = <0x20080000 0x100>; > interrupts = ; > @@ -568,7 +562,7 @@ > #interrupt-cells = <2>; > }; > > - gpio2: gpio2@20084000 { > + gpio2: gpio@20084000 { > compatible = "rockchip,gpio-bank"; > reg = <0x20084000 0x100>; > interrupts = ; > @@ -579,7 +573,7 @@ > #interrupt-cells = <2>; > }; > > - gpio3: gpio2@20088000 { > + gpio3: gpio@20088000 { > compatible = "rockchip,gpio-bank"; > reg = <0x20088000 0x100>; > interrupts = ;