]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
riscv: dts: th1520: Preserve necessary devices for SPL
authorYao Zi <ziyao@disroot.org>
Tue, 13 May 2025 09:04:58 +0000 (09:04 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 21 May 2025 08:49:52 +0000 (16:49 +0800)
SPL for TH1520 requires CPU and boot UART nodes to function. Preserve
them in SPL devicetree blob with bootph-pre-ram property.

Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/dts/th1520.dtsi

index cbe3481fadd10cf0f8e146abce94c0c5c09acf3b..b34ac323503af2f5313bf7faef76fded17aac5a8 100644 (file)
@@ -14,6 +14,7 @@
        cpus: cpus {
                #address-cells = <1>;
                #size-cells = <0>;
+               bootph-pre-ram;
                timebase-frequency = <3000000>;
 
                c910_0: cpu@0 {
@@ -21,6 +22,7 @@
                        device_type = "cpu";
                        riscv,isa = "rv64imafdc";
                        reg = <0>;
+                       bootph-pre-ram;
                        i-cache-block-size = <64>;
                        i-cache-size = <65536>;
                        i-cache-sets = <512>;
@@ -42,6 +44,7 @@
                        device_type = "cpu";
                        riscv,isa = "rv64imafdc";
                        reg = <1>;
+                       bootph-pre-ram;
                        i-cache-block-size = <64>;
                        i-cache-size = <65536>;
                        i-cache-sets = <512>;
@@ -63,6 +66,7 @@
                        device_type = "cpu";
                        riscv,isa = "rv64imafdc";
                        reg = <2>;
+                       bootph-pre-ram;
                        i-cache-block-size = <64>;
                        i-cache-size = <65536>;
                        i-cache-sets = <512>;
@@ -84,6 +88,7 @@
                        device_type = "cpu";
                        riscv,isa = "rv64imafdc";
                        reg = <3>;
+                       bootph-pre-ram;
                        i-cache-block-size = <64>;
                        i-cache-size = <65536>;
                        i-cache-sets = <512>;
                uart0: serial@ffe7014000 {
                        compatible = "snps,dw-apb-uart";
                        reg = <0xff 0xe7014000 0x0 0x100>;
+                       bootph-pre-ram;
                        interrupts = <36 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&uart_sclk>;
                        reg-shift = <2>;