bmips: Build U-Boot into the XG6846 target
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3352_dlink_dir-615-h1.dts
index 5fddd808422e3a73c411518c06ad0b4d9201f007..8ed29c8dee30febe045967b606d0053f0e5ec894 100644 (file)
@@ -1,9 +1,8 @@
-/dts-v1/;
-
 #include "rt3352.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "dlink,dir-615-h1", "ralink,rt3352-soc";
                compatible = "gpio-leds";
 
                status {
-                       label = "dir-615-h1:amber:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
 
                led_status_green: status2 {
-                       label = "dir-615-h1:green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                        default-state = "on";
                };
 
                wan {
-                       label = "dir-615-h1:amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
 
                wan2 {
-                       label = "dir-615-h1:green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "dir-615-h1:blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
@@ -68,7 +72,7 @@
 &spi0 {
        status = "okay";
 
-       m25p80@0 {
+       flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
                                read-only;
                        };
 
-                       factory: partition@40000 {
+                       partition@40000 {
                                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_28: macaddr@28 {
+                                               reg = <0x28 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
 };
 
 &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 0x0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };