[PATCH] mediatek: filogic: use fixed layout cell "mac-base" for Xiaomi WR30U
Rafał Miłecki
zajec5 at gmail.com
Fri Jul 28 04:28:05 PDT 2023
From: Rafał Miłecki <rafal at milecki.pl>
Cc: Hank Moretti <mchank9999 at gmail.com>
Cc: Hauke Mehrtens <hauke at hauke-m.de>
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
Hank: can you runtime test this, please?
---
.../dts/mt7981b-xiaomi-mi-router-wr30u.dtsi | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u.dtsi b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u.dtsi
index 9467b18a7e..4f8c3046d2 100644
--- a/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u.dtsi
+++ b/target/linux/mediatek/dts/mt7981b-xiaomi-mi-router-wr30u.dtsi
@@ -73,9 +73,8 @@
reg = <0>;
phy-mode = "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>;
@@ -177,12 +176,16 @@
reg = <0x180000 0x200000>;
read-only;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
- macaddr_factory_4: macaddr at 4 {
- reg = <0x4 0x6>;
+ macaddr_factory_4: macaddr at 4 {
+ compatible = "mac-base";
+ reg = <0x4 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
};
};
--
2.35.3
More information about the openwrt-devel
mailing list