ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr902ac-v3.dts
index 2f238189d45f492cc2f2b6d87506698b687954e0..b7aed8132d2fd84daff1819253bbf3c4a92e1251 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "mt7628an_tplink_8m.dtsi"
 
 / {
                compatible = "gpio-leds";
 
                lan {
-                       label = "tl-wr902ac-v3:green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
                };
 
                led_power: power {
-                       label = "tl-wr902ac-v3:green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "tl-wr902ac-v3:green:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wan {
-                       label = "tl-wr902ac-v3:green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "tl-wr902ac-v3:green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "tl-wr902ac-v3:green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
        };
        };
 };
 
-&ehci {
+&wmac {
        status = "okay";
-};
 
-&ohci {
-       status = "okay";
+       nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
+       nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &pcie {
 &pcie0 {
        mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x28000>;
                ieee80211-freq-limit = <5000000 6000000>;
-               mtd-mac-address = <&factory 0xf100>;
-               mtd-mac-address-increment = <(-1)>;
+               nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
+               nvmem-cell-names = "eeprom", "mac-address";
        };
+#include <dt-bindings/leds/common.h>
+
 };