diff mbox series

[OpenWrt-Devel,2/2] ramips: mt7621: Get rid of CPU DTS warnings

Message ID 20180530063543.30901-2-rosenp@gmail.com
State Changes Requested
Headers show
Series [OpenWrt-Devel,1/2] ramips: mt7621: fix pcie related warnings in mt7621.dtsi | expand

Commit Message

Rosen Penev May 30, 2018, 6:35 a.m. UTC
List of warnings:

Node /cpus/cpu@0 has a unit name, but no reg property
Node /cpus/cpu@1 has a unit name, but no reg property

Tested on GnuBee PC2. The CPU still works.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 target/linux/ramips/dts/mt7621.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 39b1ca4425..f35e6a74fd 100644
--- a/target/linux/ramips/dts/mt7621.dtsi
+++ b/target/linux/ramips/dts/mt7621.dtsi
@@ -6,12 +6,19 @@ 
 	compatible = "mediatek,mt7621-soc";
 
 	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
 		cpu@0 {
+			device_type = "cpu";
 			compatible = "mips,mips1004Kc";
+			reg = <0>;
 		};
 
 		cpu@1 {
+			device_type = "cpu";
 			compatible = "mips,mips1004Kc";
+			reg = <1>;
 		};
 	};