ramips: mt7628: use nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7628an_tplink_tl-mr6400-v5.dts
index 71e9694dde3c20da1977e011412e651c7886c5c0..f77f1acbf2a72bfbc085ffb1150b49eb750a7103 100644 (file)
        };
 };
 
-&ehci {
-       status = "okay";
-};
-
-&ohci {
-       status = "okay";
-};
-
 &state_default {
        gpio {
                groups = "i2c", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "uart1", "wdt";
 };
 
 &wmac {
-       mtd-mac-address = <&factory 0x1f100>;
+       nvmem-cells = <&macaddr_factory_1f100>;
+       nvmem-cell-names = "mac-address";
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x1f100>;
+       nvmem-cells = <&macaddr_factory_1f100>;
+       nvmem-cell-names = "mac-address";
+};
+
+&factory {
+       nvmem-layout {
+               compatible = "fixed-layout";
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               macaddr_factory_1f100: macaddr@1f100 {
+                       reg = <0x1f100 0x6>;
+               };
+       };
 };