]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rockchip: odroid-go2: Move SoC common overrides into a SoC u-boot.dtsi
authorJonas Karlman <jonas@kwiboo.se>
Sun, 31 Aug 2025 16:49:23 +0000 (16:49 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 1 Nov 2025 13:17:43 +0000 (21:17 +0800)
Add a new common rk3326-u-boot.dtsi and move the SoC common overrides
into it.

This should not contain any changes other than a possible reorder of
nodes and props.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi
arch/arm/dts/rk3326-u-boot.dtsi [new file with mode: 0644]

index a27994e450c0e85cfbb2488a2386b7ecef7e7775..06e2c190b1f95c37c58724a754724a401d62642d 100644 (file)
@@ -3,56 +3,7 @@
  * Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
  */
 
-#include "rockchip-u-boot.dtsi"
-
-/ {
-       chosen {
-               u-boot,spl-boot-order = &sdmmc;
-       };
-
-       dmc {
-               bootph-all;
-               compatible = "rockchip,px30-dmc", "syscon";
-               reg = <0x0 0xff2a0000 0x0 0x1000>;
-       };
-
-       rng: rng@ff0b0000 {
-               compatible = "rockchip,cryptov2-rng";
-               reg = <0x0 0xff0b0000 0x0 0x4000>;
-       };
-};
-
-&cru {
-       bootph-all;
-};
-
-&gpio0 {
-       gpio-ranges = <&pinctrl 0 0 32>;
-};
-
-&gpio1 {
-       gpio-ranges = <&pinctrl 0 32 32>;
-};
-
-&gpio2 {
-       gpio-ranges = <&pinctrl 0 64 32>;
-};
-
-&gpio3 {
-       gpio-ranges = <&pinctrl 0 96 32>;
-};
-
-&grf {
-       bootph-all;
-};
-
-&pmucru {
-       bootph-all;
-};
-
-&pmugrf {
-       bootph-all;
-};
+#include "rk3326-u-boot.dtsi"
 
 &rk817 {
        regulators {
        bootph-all;
 };
 
-&sdmmc {
-       bootph-pre-ram;
-       bootph-some-ram;
-
-       /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
-       u-boot,spl-fifo-mode;
-};
-
 &sfc {
-       bootph-some-ram;
-};
-
-&{/spi@ff3a0000/flash@0} {
-       bootph-pre-ram;
-       bootph-some-ram;
+       flash@0 {
+               bootph-pre-ram;
+               bootph-some-ram;
+       };
 };
 
 &uart1 {
        bootph-all;
        clock-frequency = <24000000>;
 };
-
-&uart2 {
-       bootph-all;
-       clock-frequency = <24000000>;
-};
-
-&xin24m {
-       bootph-all;
-};
diff --git a/arch/arm/dts/rk3326-u-boot.dtsi b/arch/arm/dts/rk3326-u-boot.dtsi
new file mode 100644 (file)
index 0000000..2894133
--- /dev/null
@@ -0,0 +1,76 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2020 Theobroma Systems Design und Consulting GmbH
+ */
+
+#include "rockchip-u-boot.dtsi"
+
+/ {
+       chosen {
+               u-boot,spl-boot-order = &sdmmc;
+       };
+
+       dmc {
+               compatible = "rockchip,px30-dmc", "syscon";
+               reg = <0x0 0xff2a0000 0x0 0x1000>;
+               bootph-all;
+       };
+
+       rng: rng@ff0b0000 {
+               compatible = "rockchip,cryptov2-rng";
+               reg = <0x0 0xff0b0000 0x0 0x4000>;
+       };
+};
+
+&cru {
+       bootph-all;
+};
+
+&gpio0 {
+       gpio-ranges = <&pinctrl 0 0 32>;
+};
+
+&gpio1 {
+       gpio-ranges = <&pinctrl 0 32 32>;
+};
+
+&gpio2 {
+       gpio-ranges = <&pinctrl 0 64 32>;
+};
+
+&gpio3 {
+       gpio-ranges = <&pinctrl 0 96 32>;
+};
+
+&grf {
+       bootph-all;
+};
+
+&pmucru {
+       bootph-all;
+};
+
+&pmugrf {
+       bootph-all;
+};
+
+&sdmmc {
+       bootph-pre-ram;
+       bootph-some-ram;
+
+       /* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
+       u-boot,spl-fifo-mode;
+};
+
+&sfc {
+       bootph-some-ram;
+};
+
+&uart2 {
+       bootph-all;
+       clock-frequency = <24000000>;
+};
+
+&xin24m {
+       bootph-all;
+};