lantiq: dts: add reg if unit address is set
authorMathias Kresin <dev@kresin.me>
Sun, 27 Jan 2019 11:23:03 +0000 (12:23 +0100)
committerMathias Kresin <dev@kresin.me>
Sun, 7 Jul 2019 09:17:27 +0000 (11:17 +0200)
Add the reg property if the node has an unit address. Fixes the
following device tree compiler warning:

  Warning (unit_address_vs_reg): node has a unit name, but no reg property

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/files/arch/mips/boot/dts/amazonse.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/ar9.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/danube.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/falcon.dtsi
target/linux/lantiq/files/arch/mips/boot/dts/vr9.dtsi

index 8b80e6a2230839c30fc6adc475ce12ea30768481..1be842094bd3acbfeee7d78c00fdfa21f3b58aa0 100644 (file)
        };
 
        cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
                cpu@0 {
                        compatible = "mips,mips4Kc";
+                       reg = <0>;
                };
        };
 
 
                mei@e116000 {
                        compatible = "lantiq,mei-xway";
+                       reg = <0xe116000 0x400>;
                        interrupt-parent = <&icu0>;
                        interrupts = <81>;
                };
 
                ppe@e234000 {
                        compatible = "lantiq,ppe-ase";
+                       reg = <0xe234000 0x40000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <85>;
                };
index 687db7cc61f2d9c6133e7d14ae529e9b45272f06..637de57662d0760c52404729a74e621de2f56fc9 100644 (file)
        };
 
        cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
                cpu@0 {
                        compatible = "mips,mips34K";
+                       reg = <0>;
                };
        };
 
 
                mei@e116000 {
                        compatible = "lantiq,mei-xway";
+                       reg = <0xe116000 0x9c>;
                        interrupt-parent = <&icu0>;
                        interrupts = <63>;
                };
 
                ppe@e234000 {
                        compatible = "lantiq,ppe-arx100";
+                       reg = <0xe234000 0x3ffd>;
                        interrupt-parent = <&icu0>;
                        interrupts = <96>;
                };
index 4d3ebb2aa1697a4aed8d393f4b20751f62911dff..ca89e949d15b07e570e168f64a6a5358d7b8f4e3 100644 (file)
        };
 
        cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
                cpu@0 {
                        compatible = "mips,mips24Kc";
+                       reg = <0>;
                };
        };
 
 
                mei@e116000 {
                        compatible = "lantiq,mei-xway";
+                       reg = <0xe116000 0x400>;
                        interrupt-parent = <&icu0>;
                        interrupts = <63>;
                };
 
                ppe@e234000 {
                        compatible = "lantiq,ppe-danube";
+                       reg = <0xe234000 0x40000>;
                        interrupt-parent = <&icu0>;
                        interrupts = <96>;
                };
index 98f71819a276ecc3157cc4cf0b4df680614e4b6a..ecb68e896eabbc8dbb6431d1a5df1ad94f878f65 100644 (file)
@@ -4,8 +4,12 @@
        compatible = "lantiq,falcon";
 
        cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
                cpu@0 {
                        compatible = "mips,mips34kc";
+                       reg = <0>;
                };
        };
 
index 7fd4643171d7eb4a0b8ecd244a5675865c2a72e0..6764082e9bdbb257a900cb8aaf19966de3ae64a9 100644 (file)
        };
 
        cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
                cpu@0 {
                        compatible = "mips,mips34Kc";
+                       reg = <0>;
                };
        };
 
 
                ppe@e234000 {
                        compatible = "lantiq,ppe-xrx200";
+                       reg = <0xe234000 0x3ffd>;
                        interrupt-parent = <&icu0>;
                        interrupts = <96>;
                        resets = <&reset0 3 3>, <&reset0 11 11>, <&reset0 23 23>;
                        #size-cells = <2>;
                        #address-cells = <3>;
 
+                       reg = <0xd900000 0x1000>;
+
                        interrupt-parent = <&icu0>;
                        interrupts = <161 144>;