Browse Source

ramips: fix dtc warnings

Mostly leading 0 removals and wrong addresses.

Signed-off-by: Rosen Penev <[email protected]>
Rosen Penev 1 năm trước cách đây
mục cha
commit
14362f22af

+ 2 - 2
target/linux/ramips/dts/mt7620a_engenius_epg600.dts

@@ -215,9 +215,9 @@
 };
 
 &pcie0 {
-	wifi@0,1,0 {
+	wifi@0,0 {
 		compatible = "pci1814,3091";
-		reg = <0x0 1 0 0 0>;
+		reg = <0x0000 0 0 0 0>;
 		nvmem-cells = <&eeprom_factory_0>;
 		nvmem-cell-names = "eeprom";
 	};

+ 1 - 1
target/linux/ramips/dts/mt7621_cudy_wr2100.dts

@@ -97,7 +97,7 @@
 };
 
 &pcie1 {
-	wifi@1,0 {
+	wifi@0,0 {
 		compatible = "mediatek,mt76";
 		reg = <0x0000 0 0 0 0>;
 		nvmem-cells = <&eeprom_factory_8000>;

+ 3 - 3
target/linux/ramips/dts/mt7621_yuncore_fap640.dts

@@ -129,8 +129,8 @@
 					#address-cells = <1>;
 					#size-cells = <1>;
 
-					macaddr_factory_0004: macaddr@0004 {
-						reg = <0x0004 0x6>;
+					macaddr_factory_4: macaddr@4 {
+						reg = <0x4 0x6>;
 					};
 
 					macaddr_factory_e006: macaddr@e006 {
@@ -171,7 +171,7 @@
 	label = "wan";
 	phy-handle = <&ethphy4>;
 
-	nvmem-cells = <&macaddr_factory_0004>;
+	nvmem-cells = <&macaddr_factory_4>;
 	nvmem-cell-names = "mac-address";
 };
 

+ 3 - 3
target/linux/ramips/dts/mt7621_yuncore_fap690.dts

@@ -99,8 +99,8 @@
 					#address-cells = <1>;
 					#size-cells = <1>;
 
-					macaddr_factory_0004: macaddr@0004 {
-						reg = <0x0004 0x6>;
+					macaddr_factory_4: macaddr@4 {
+						reg = <0x4 0x6>;
 					};
 				};
 			};
@@ -128,7 +128,7 @@
 };
 
 &gmac0 {
-	nvmem-cells = <&macaddr_factory_0004>;
+	nvmem-cells = <&macaddr_factory_4>;
 	nvmem-cell-names = "mac-address";
 };
 

+ 0 - 3
target/linux/ramips/dts/mt7628an_wiznet_wizfi630s.dts

@@ -49,9 +49,6 @@
 	keys {
 		compatible = "gpio-keys";
 
-		#address-cells = <1>;
-		#size-cells = <0>;
-
 		reset {
 			label = "reset";
 			gpios = <&gpio 11 GPIO_ACTIVE_LOW>;

+ 2 - 2
target/linux/ramips/dts/rt3662_engenius_esr600h.dts

@@ -161,9 +161,9 @@
 &pci1 {
 	status = "okay";
 
-	wifi@0,1,0 {
+	wifi@0,0 {
 		compatible = "pci1814,3091";
-		reg = <0x0 1 0 0 0>;
+		reg = <0x10000 0 0 0 0>;
 		ralink,5ghz = <0>;
 		nvmem-cells = <&eeprom_factory_8000>;
 		nvmem-cell-names = "eeprom";

+ 3 - 1
target/linux/ramips/dts/rt3883.dtsi

@@ -399,7 +399,7 @@
 				0x9000 0 0 4 &pciintc 19
 			>;
 
-			pci1: pci@1 {
+			pci1: pci@1,0 {
 				reg = <0x0800 0 0 0 0>;
 				device_type = "pci";
 				#interrupt-cells = <1>;
@@ -421,6 +421,7 @@
 				#address-cells = <3>;
 				#size-cells = <2>;
 
+				interrupt-controller;
 				status = "disabled";
 			};
 
@@ -430,6 +431,7 @@
 				#address-cells = <3>;
 				#size-cells = <2>;
 
+				interrupt-controller;
 				status = "disabled";
 			};
 		};

+ 1 - 1
target/linux/ramips/dts/rt3883_belkin_f9k110x.dtsi

@@ -102,7 +102,7 @@
 &pci1 {
 	status = "okay";
 
-	wifi@1,0 {
+	wifi@0,0 {
 		compatible = "pci1814,3091";
 		reg = <0x10000 0 0 0 0>;
 		ralink,5ghz = <0>;