aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2022-02-05 18:57:14 +0900
committerSungbo Eo <mans0n@gorani.run>2022-02-11 22:30:04 +0900
commit34a373c0df0233150b5c87e9c925ca2b2b754a6e (patch)
tree0c5cbfa721a5ed5259d78d1d05b18d579a28a0a1 /target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
parentcdc735de621e09ae2f2c470f72d12d90eeb35ffa (diff)
downloadupstream-34a373c0df0233150b5c87e9c925ca2b2b754a6e.tar.gz
upstream-34a373c0df0233150b5c87e9c925ca2b2b754a6e.tar.bz2
upstream-34a373c0df0233150b5c87e9c925ca2b2b754a6e.zip
ramips: move MAC configs to device dts from wrc-gs-2pci.dtsi
The locations of MAC addresses in mtd for LAN/WAN on ELECOM WRC-2533GS2 are changed from the other WRC-GS/GST devices with 2x PCIe. So move the related configurations in mt7621_elecom_wrc-gs-2pci.dtsi to dts of each model. - WRC-1750GS - WRC-1750GSV - WRC-1750GST2 - WRC-1900GST - WRC-2533GST - WRC-2533GST2 -> LAN: 0xE000, WAN: 0xE006 - WRC-2533GS2 -> LAN: 0xFFF4, WAN: 0xFFFA Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts b/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
index 675e086a82..df66c2772d 100644
--- a/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
+++ b/target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
@@ -38,3 +38,27 @@
read-only;
};
};
+
+&gmac0 {
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+};
+
+&wan {
+ nvmem-cells = <&macaddr_factory_e006>;
+ nvmem-cell-names = "mac-address";
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
+};