Skip to contentSkip to conversation

staging: mt7621-dts: complete 'cpus' node

PATCH New Sergio Paracuellos 1 participant 1 message Oct 22, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: mt7621-dts: complete 'cpus' node

There are some properties missing in 'cpus' node for this SoC:
- '#address-cells'
- '#size-cells'
- 'device_type' and 'reg' in child cpu nodes.

Hence, add them all to the device tree file.

---
 drivers/staging/mt7621-dts/mt7621.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/staging/mt7621-dts/mt7621.dtsi +7 -0
index 82b64d4aab2e..f5c0df78fa6b 100644
@@ -8,12 +8,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>;
 		};
 	};
 
Signature · 1 line
2.33.0