qualcommax: ipq807x: uboot-envtools: yuncore ax880
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_zyxel_keenetic-start.dts
index f96ad9092adf179af07a4a32136a84200340555f..663b9a3d8c460c363dc5ae63f8a72422c4a29119 100644 (file)
@@ -1,33 +1,34 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "rt5350.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "zyxel,keenetic-start", "ralink,rt5350-soc";
        model = "ZyXEL Keenetic Start";
 
        aliases {
-               led-boot = &led_status;
-               led-failsafe = &led_status;
-               led-running = &led_status;
-               led-upgrade = &led_status;
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
                label-mac-device = &ethernet;
        };
 
        leds {
                compatible = "gpio-leds";
 
-               led_status: power {
-                       label = "zyxel:green:power";
+               led_power: power {
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                internet {
-                       label = "zyxel:green:internet";
+                       label = "green:internet";
                        gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
                };
        };
                                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 {
 
 &state_default {
        gpio {
-               ralink,group = "i2c", "jtag", "uartf";
-               ralink,function = "gpio";
+               groups = "i2c", "jtag", "uartf";
+               function = "gpio";
        };
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x28>;
+       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 };
 
 &wmac {
-       status = "okay";
        ralink,led-polarity = <1>;
-       ralink,mtd-eeprom = <&factory 0>;
+       nvmem-cells = <&eeprom_factory_0>;
+       nvmem-cell-names = "eeprom";
 };