ramips: fix EEPROM size for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_tenda_3g150b.dts
index a20cd04a26be7c35f74423a5abfcb67550d8f968..19b6d78009effbef71fc26d7c93fbb97e9010bd1 100644 (file)
        };
 };
 
-&gpio1 {
-       status = "okay";
-};
-
 &state_default {
        gpio {
                groups = "i2c", "jtag", "uartf", "led";
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
        ralink,mtd-eeprom = <&factory 0x0>;
        ralink,led-polarity = <1>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};