realtek: move memory node to device DTS
authorStijn Segers <foss@volatilesystems.org>
Wed, 6 Jan 2021 21:45:18 +0000 (22:45 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 7 Jan 2021 18:51:50 +0000 (19:51 +0100)
Move the memory out of the rtl838x.dtsi and into the device family DTSI
or device DTS if applicable. This aligns with upstream practice.

Signed-off-by: Stijn Segers <foss@volatilesystems.org>
[add missing block for dgs-1210-10p, move block below chosen node]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/realtek/dts/rtl8380_netgear_gs110tpp-v1.dts
target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp.dts
target/linux/realtek/dts/rtl8382_allnet_all-sg8208m.dts
target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts
target/linux/realtek/dts/rtl8382_d-link_dgs-1210.dtsi
target/linux/realtek/dts/rtl838x.dtsi

index 80699df2919da7a67500423f195e211842b410e0..251585a8dafbdf7b712889fb008525a42e36004d 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x8000000>;
+       };
+
        keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
index ce6085b28e0c0e363513913e96dffaa60b943bdf..b316710388c5337114def0794b40acacd1013435 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x8000000>;
+       };
+
        gpio1: rtl8231-gpio {
                status = "okay";
 
index a5dd3be0a4ab666bbe89a2d632676497d78649bb..28c4fd2970ba326e453a3541560a8f37b60826fd 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x8000000>;
+       };
+
        keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
index 05010ffc0dce902ab0069d5094eafe6d3059c2c7..a2ebdad11be012fda0f8d19f4e82696363fc214e 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x8000000>;
+       };
+
        leds {
                compatible = "gpio-leds";
 
index 74043c097af84c588b727077405412e029acc9f0..e41c6f9f22e19eb72cf60b720ea21a5a43f15714 100644 (file)
                bootargs = "console=ttyS0,115200";
        };
 
+       memory@0 {
+               device_type = "memory";
+               reg = <0x0 0x8000000>;
+       };
+
        leds {
                compatible = "gpio-leds";
 
index 15d518578b305f1291e0d2cf38e2366cf5407416..36d8847a154e2422f0788c080efcfe643283f7a5 100644 (file)
                };
        };
 
-       memory@0 {
-               device_type = "memory";
-               reg = <0x0 0x8000000>;
-       };
-
        chosen {
                bootargs = "console=ttyS0,38400";
        };