ramips: convert mediatek,mtd-eeprom from decimal to hex notation

A small subset of devices uses decimal notation for mediatek,mtd-eeprom
in DTS files. Convert to hexadecimal notation to be consistent with
all the rest.

Also change "0" to "0x0" in the same files for consistency.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2019-12-08 00:09:25 +01:00
parent 3a55c7935d
commit 34abfb6e91
3 changed files with 6 additions and 6 deletions

View File

@ -149,7 +149,7 @@
}; };
&wmac { &wmac {
ralink,mtd-eeprom = <&radio 0>; ralink,mtd-eeprom = <&radio 0x0>;
}; };
&pcie { &pcie {
@ -159,7 +159,7 @@
&pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 32768>; mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
}; };
}; };

View File

@ -176,7 +176,7 @@
}; };
&wmac { &wmac {
ralink,mtd-eeprom = <&radio 0>; ralink,mtd-eeprom = <&radio 0x0>;
mtd-mac-address = <&rom 0xf100>; mtd-mac-address = <&rom 0xf100>;
mtd-mac-address-increment = <(-2)>; mtd-mac-address-increment = <(-2)>;
pinctrl-names = "default"; pinctrl-names = "default";
@ -190,7 +190,7 @@
&pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 32768>; mediatek,mtd-eeprom = <&radio 0x8000>;
ieee80211-freq-limit = <5000000 6000000>; ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&rom 0xf100>; mtd-mac-address = <&rom 0xf100>;
mtd-mac-address-increment = <(-1)>; mtd-mac-address-increment = <(-1)>;

View File

@ -187,7 +187,7 @@
}; };
&wmac { &wmac {
ralink,mtd-eeprom = <&radio 0>; ralink,mtd-eeprom = <&radio 0x0>;
}; };
&pcie { &pcie {
@ -197,6 +197,6 @@
&pcie0 { &pcie0 {
mt76@0,0 { mt76@0,0 {
reg = <0x0000 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&radio 32768>; mediatek,mtd-eeprom = <&radio 0x8000>;
}; };
}; };