ramips: fix dtc warnings

Mostly leading 0 removals and wrong addresses.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2023-11-30 12:08:31 -08:00 committed by Christian Marangi
parent 89ff407d68
commit 14362f22af
No known key found for this signature in database
GPG key ID: AC001D09ADBFEAD7
8 changed files with 15 additions and 16 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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