ramips: mt7620a_tplink_archer.dtsi rename to mt7620a_tplink_8m.dtsi
[openwrt/staging/stintel.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c20-v1.dts
index 2248da5b102e0752d73d358beff7248973ea9342..285e27c35704a2138646de48cfd0ba6d755cb11b 100644 (file)
@@ -1,4 +1,6 @@
-#include "mt7620a_tplink_archer.dtsi"
+#include <dt-bindings/leds/common.h>
+
+#include "mt7620a_tplink_8m.dtsi"
 
 / {
        compatible = "tplink,archer-c20-v1", "ralink,mt7620a-soc";
                compatible = "gpio-leds";
 
                lan {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                        default-state = "keep";
                };
 
                usb {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                wan {
-                       label = "blue:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
 
                wan_orange {
-                       label = "orange:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
 
@@ -55,7 +62,8 @@
                };
 
                wps {
-                       label = "blue:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &wmac {
-       pinctrl-names = "default";
+       pinctrl-names = "default", "pa_gpio";
        pinctrl-0 = <&pa_pins>;
+       pinctrl-1 = <&pa_gpio_pins>;
 
-       nvmem-cells = <&macaddr_rom_f100>;
-       nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-2)>;
+       nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 (-2)>;
+       nvmem-cell-names = "eeprom", "mac-address";
 };
 
 &wifi {
-       nvmem-cells = <&macaddr_rom_f100>;
-       nvmem-cell-names = "mac-address";
-       mac-address-increment = <(-1)>;
-};
-
-&rom {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_rom_f100: macaddr@f100 {
-               reg = <0xf100 0x6>;
-       };
+       nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
+       nvmem-cell-names = "eeprom", "mac-address";
 };