ramips: reset mt7620 ethernet phy via reset controller
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_zyxel_keenetic-viva.dts
index 506b828ec834c029238c37454a4c66c73a1444a8..abeb4c2a2d1630bd3f43aefc0d6b9f9e2b2bc509 100644 (file)
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       macaddr_factory_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii2_pins &mdio_pins>;
 
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 
        port@4 {
                status = "okay";
 
 &gsw {
        mediatek,port4-gmac;
+       mediatek,ephy-base = /bits/ 8 <8>;
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };
 
 &ehci {