From c9bc42918c844bc92d98c7e7c3e5029a079cba41 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 21 Jul 2018 16:17:39 +0200 Subject: [PATCH] ramips: fix cpu related dtc warnings We need a reg property if we are using a unit address. Signed-off-by: Mathias Kresin (backported from b9dbf3f3c8112d6640c780bbb939ee5816b5bfb3) --- target/linux/ramips/dts/mt7620a.dtsi | 4 ++++ target/linux/ramips/dts/mt7620n.dtsi | 4 ++++ target/linux/ramips/dts/mt7621.dtsi | 4 ++-- target/linux/ramips/dts/mt7628an.dtsi | 4 ++++ target/linux/ramips/dts/rt2880.dtsi | 4 ++++ target/linux/ramips/dts/rt3050.dtsi | 4 ++++ target/linux/ramips/dts/rt3352.dtsi | 4 ++++ target/linux/ramips/dts/rt3883.dtsi | 4 ++++ target/linux/ramips/dts/rt5350.dtsi | 4 ++++ 9 files changed, 34 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips/dts/mt7620a.dtsi b/target/linux/ramips/dts/mt7620a.dtsi index 62e1985aa2..2c2b65bf5d 100644 --- a/target/linux/ramips/dts/mt7620a.dtsi +++ b/target/linux/ramips/dts/mt7620a.dtsi @@ -4,8 +4,12 @@ compatible = "ralink,mt7620a-soc"; cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { compatible = "mips,mips24KEc"; + reg = <0>; }; }; diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi index 58fd263d7d..7e9c90782b 100644 --- a/target/linux/ramips/dts/mt7620n.dtsi +++ b/target/linux/ramips/dts/mt7620n.dtsi @@ -4,8 +4,12 @@ compatible = "ralink,mt7620n-soc"; cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { compatible = "mips,mips24KEc"; + reg = <0>; }; }; diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index 0655e35301..cb830128d8 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -12,13 +12,13 @@ cpu@0 { device_type = "cpu"; compatible = "mips,mips1004Kc"; - reg = <0x0>; + reg = <0>; }; cpu@1 { device_type = "cpu"; compatible = "mips,mips1004Kc"; - reg = <0x1>; + reg = <1>; }; }; diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi index 7479a4fd35..6824432d1d 100644 --- a/target/linux/ramips/dts/mt7628an.dtsi +++ b/target/linux/ramips/dts/mt7628an.dtsi @@ -4,8 +4,12 @@ compatible = "mediatek,mt7628an-soc"; cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { compatible = "mips,mips24KEc"; + reg = <0>; }; }; diff --git a/target/linux/ramips/dts/rt2880.dtsi b/target/linux/ramips/dts/rt2880.dtsi index 2d6230c7ad..2bb774f156 100644 --- a/target/linux/ramips/dts/rt2880.dtsi +++ b/target/linux/ramips/dts/rt2880.dtsi @@ -4,8 +4,12 @@ compatible = "ralink,rt2880-soc"; cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { compatible = "mips,mips24KEc"; + reg = <0>; }; }; diff --git a/target/linux/ramips/dts/rt3050.dtsi b/target/linux/ramips/dts/rt3050.dtsi index bd51838bac..7e48b6a8fd 100644 --- a/target/linux/ramips/dts/rt3050.dtsi +++ b/target/linux/ramips/dts/rt3050.dtsi @@ -4,8 +4,12 @@ compatible = "ralink,rt3050-soc", "ralink,rt3052-soc", "ralink,rt3350-soc"; cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { compatible = "mips,mips24KEc"; + reg = <0>; }; }; diff --git a/target/linux/ramips/dts/rt3352.dtsi b/target/linux/ramips/dts/rt3352.dtsi index e6e49eeafd..dc9bae4665 100644 --- a/target/linux/ramips/dts/rt3352.dtsi +++ b/target/linux/ramips/dts/rt3352.dtsi @@ -4,8 +4,12 @@ compatible = "ralink,rt3352-soc"; cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { compatible = "mips,mips24KEc"; + reg = <0>; }; }; diff --git a/target/linux/ramips/dts/rt3883.dtsi b/target/linux/ramips/dts/rt3883.dtsi index 193a3ee1cc..ceb7164951 100644 --- a/target/linux/ramips/dts/rt3883.dtsi +++ b/target/linux/ramips/dts/rt3883.dtsi @@ -4,8 +4,12 @@ compatible = "ralink,rt3883-soc"; cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { compatible = "mips,mips74Kc"; + reg = <0>; }; }; diff --git a/target/linux/ramips/dts/rt5350.dtsi b/target/linux/ramips/dts/rt5350.dtsi index 843ea30194..6ee3044104 100644 --- a/target/linux/ramips/dts/rt5350.dtsi +++ b/target/linux/ramips/dts/rt5350.dtsi @@ -4,8 +4,12 @@ compatible = "ralink,rt5350-soc"; cpus { + #address-cells = <1>; + #size-cells = <0>; + cpu@0 { compatible = "mips,mips24KEc"; + reg = <0>; }; }; -- 2.30.2