ramips: fix EEPROM size for I-O DATA WN-DEAX1800GR
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3883_sitecom_wlr-6000.dts
index e43562d6843dfe902ae5a5dbf1f476052d56a9ac..fc437c1f62c860f9a3b6483e90225978a7cfe1fa 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3883.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "wlr-6000:red:power";
+                       label = "red:power";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
                ops {
-                       label = "wlr-6000:white:ops";
+                       label = "white:ops";
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                };
        };
@@ -66,8 +64,9 @@
 
 &ethernet {
        status = "okay";
-       mtd-mac-address = <&factory 0x8004>;
-       mtd-mac-address-increment = <1>;
+       nvmem-cells = <&macaddr_factory_8004>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <1>;
 
        port@0 {
                phy-handle = <&phy0>;
@@ -99,7 +98,7 @@
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <8600000>;
 &ohci {
        status = "okay";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_8004: macaddr@8004 {
+               reg = <0x8004 0x6>;
+       };
+};