ramips: convert MT7610 and MT7612 EEPROM to NVMEM format for MT7621
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3352_dlink_dir-615-h1.dts
index a87fc1e9a267da45336f76da8d25cfce61a29ef8..01393c2383b6bd51b7c52d0ecddc4f7e7493d20c 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt3352.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
                compatible = "gpio-leds";
 
                status {
-                       label = "dir-615-h1:amber:status";
+                       label = "amber:status";
                        gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_green: status2 {
-                       label = "dir-615-h1:green:status";
+                       label = "green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                wan {
-                       label = "dir-615-h1:amber:wan";
+                       label = "amber:wan";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wan2 {
-                       label = "dir-615-h1:green:wan";
+                       label = "green:wan";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "dir-615-h1:blue:wps";
+                       label = "blue:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
@@ -68,7 +66,7 @@
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
        };
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "i2c", "jtag", "uartf";
-                       ralink,function = "gpio";
-               };
+&state_default {
+       gpio {
+               groups = "i2c", "jtag", "uartf";
+               function = "gpio";
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins &mdio_pins>;
 };
 };
 
 &wmac {
-       ralink,mtd-eeprom = <&factory 0>;
+       ralink,mtd-eeprom = <&factory 0x0>;
+};
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_28: macaddr@28 {
+               reg = <0x28 0x6>;
+       };
 };