aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.10/101-dts-update-mt7629-rfb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mediatek/patches-5.10/101-dts-update-mt7629-rfb.patch')
-rw-r--r--target/linux/mediatek/patches-5.10/101-dts-update-mt7629-rfb.patch39
1 files changed, 31 insertions, 8 deletions
diff --git a/target/linux/mediatek/patches-5.10/101-dts-update-mt7629-rfb.patch b/target/linux/mediatek/patches-5.10/101-dts-update-mt7629-rfb.patch
index 8d3e283315..254b5f9eb7 100644
--- a/target/linux/mediatek/patches-5.10/101-dts-update-mt7629-rfb.patch
+++ b/target/linux/mediatek/patches-5.10/101-dts-update-mt7629-rfb.patch
@@ -8,23 +8,28 @@
};
gpio-keys {
-@@ -69,6 +70,7 @@
- gmac0: mac@0 {
+@@ -70,6 +71,10 @@
compatible = "mediatek,eth-mac";
reg = <0>;
-+ mtd-mac-address = <&factory 0x2a>;
phy-mode = "2500base-x";
++
++ nvmem-cells = <&macaddr_factory_2a>;
++ nvmem-cell-names = "mac-address";
++
fixed-link {
speed = <2500>;
-@@ -80,6 +82,7 @@
- gmac1: mac@1 {
- compatible = "mediatek,eth-mac";
+ full-duplex;
+@@ -82,6 +87,9 @@
reg = <1>;
-+ mtd-mac-address = <&factory 0x24>;
phy-mode = "gmii";
phy-handle = <&phy0>;
++
++ nvmem-cells = <&macaddr_factory_24>;
++ nvmem-cell-names = "mac-address";
};
-@@ -133,8 +136,9 @@
+
+ mdio: mdio-bus {
+@@ -133,8 +141,9 @@
};
partition@b0000 {
@@ -35,3 +40,21 @@
};
};
};
+@@ -272,3 +281,17 @@
+ pinctrl-0 = <&watchdog_pins>;
+ status = "okay";
+ };
++
++&factory {
++ compatible = "nvmem-cells";
++ #address-cells = <1>;
++ #size-cells = <1>;
++
++ macaddr_factory_24: macaddr@24 {
++ reg = <0x24 0x6>;
++ };
++
++ macaddr_factory_2a: macaddr@2a {
++ reg = <0x2a 0x6>;
++ };
++};