arm: dts: rockchip: move all rk3128 u-boot specific properties in separate dtsi files
authorJohan Jonker <jbx6244@gmail.com>
Fri, 9 Sep 2022 20:19:06 +0000 (22:19 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 19 Dec 2022 02:56:12 +0000 (10:56 +0800)
Move all rk3128 u-boot specific properties in separate dtsi files.
Sort emmc node.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3128-evb-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/rk3128-evb.dts
arch/arm/dts/rk3128-u-boot.dtsi [new file with mode: 0644]
arch/arm/dts/rk3128.dtsi

diff --git a/arch/arm/dts/rk3128-evb-u-boot.dtsi b/arch/arm/dts/rk3128-evb-u-boot.dtsi
new file mode 100644 (file)
index 0000000..8b16bbe
--- /dev/null
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+#include "rk3128-u-boot.dtsi"
+
+&emmc {
+       u-boot,dm-pre-reloc;
+};
index a407ac2..e7d8f7c 100644 (file)
        };
 };
 
+&emmc {
+       fifo-mode;
+       status = "okay";
+};
+
 &i2c1 {
        status = "okay";
 
        status = "okay";
 };
 
-&emmc {
-       fifo-mode;
-       status = "okay";
-};
-
 &pinctrl {
        usb_otg {
                otg_vbus_drv: host-vbus-drv {
diff --git a/arch/arm/dts/rk3128-u-boot.dtsi b/arch/arm/dts/rk3128-u-boot.dtsi
new file mode 100644 (file)
index 0000000..4a98e24
--- /dev/null
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+#include "rockchip-u-boot.dtsi"
+
+/ {
+       dmc: dmc@20004000 {
+               compatible = "rockchip,rk3128-dmc", "syscon";
+               reg = <0x0 0x20004000 0x0 0x1000>;
+               u-boot,dm-pre-reloc;
+       };
+};
+
+&cru {
+       u-boot,dm-pre-reloc;
+};
+
+&grf {
+       u-boot,dm-pre-reloc;
+};
index 5a1c154..b58804b 100644 (file)
                clock-names = "clk_nandc", "g_clk_nandc", "hclk_nandc";
        };
 
-       dmc: dmc@20004000 {
-               u-boot,dm-pre-reloc;
-               compatible = "rockchip,rk3128-dmc", "syscon";
-               reg = <0x0 0x20004000 0x0 0x1000>;
-       };
-
        cru: clock-controller@20000000 {
-               u-boot,dm-pre-reloc;
                compatible = "rockchip,rk3128-cru";
                reg = <0x20000000 0x1000>;
                rockchip,grf = <&grf>;
        };
 
        emmc: dwmmc@1021c000 {
-               u-boot,dm-pre-reloc;
                compatible = "rockchip,rk3128-dw-mshc", "rockchip,rk3288-dw-mshc";
                reg = <0x1021c000 0x4000>;
                max-frequency = <150000000>;
        };
 
        grf: syscon@20008000 {
-               u-boot,dm-pre-reloc;
                compatible = "rockchip,rk3128-grf", "syscon";
                reg = <0x20008000 0x1000>;
        };