summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2023-08-27 15:10:53 +0900
committerDaniel Golle <daniel@makrotopia.org>2024-02-27 17:42:30 +0000
commit7e47913ef66fc01337f8b909c4b5811deee2cf85 (patch)
tree2496369f5dd5a6b1db5d2635c7978b58d604edc2
parent04ec453970eab87b90725df959d7f3caa21de590 (diff)
downloadopenwrt-7e47913ef66fc01337f8b909c4b5811deee2cf85.tar.gz
openwrt-7e47913ef66fc01337f8b909c4b5811deee2cf85.tar.bz2
openwrt-7e47913ef66fc01337f8b909c4b5811deee2cf85.zip
mediatek: update NVMEM bindings for Buffalo WSR-2533DHP2
Update NVMEM-related nodes and use newer binding for MAC addresses on Buffalo WSR-2533DHP2. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> (cherry picked from commit de62e0165264fb2872e87116ddceb8c7e12c5a5a)
-rw-r--r--target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts26
1 files changed, 14 insertions, 12 deletions
diff --git a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
index fec559c8af..9a44152a91 100644
--- a/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
+++ b/target/linux/mediatek/dts/mt7622-buffalo-wsr-2533dhp2.dts
@@ -229,9 +229,8 @@
phy-connection-type = "2500base-x";
- nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cells = <&macaddr_factory_4 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
fixed-link {
speed = <2500>;
@@ -284,9 +283,22 @@
};
factory: partition@1c0000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x1c0000 0x40000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ compatible = "mac-base";
+ reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@200000 {
@@ -349,13 +361,3 @@
&rtc {
status = "disabled";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};