ipq40xx: fritzrepeater-1200: fix MDIO and PHY probing
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c20i.dts
1 #include <dt-bindings/leds/common.h>
2
3 #include "mt7620a_tplink_8m.dtsi"
4
5 / {
6 compatible = "tplink,archer-c20i", "ralink,mt7620a-soc";
7 model = "TP-Link Archer C20i";
8
9 aliases {
10 led-boot = &led_wps;
11 led-failsafe = &led_wps;
12 led-running = &led_wps;
13 led-upgrade = &led_wps;
14 label-mac-device = &ethernet;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 lan {
21 function = LED_FUNCTION_LAN;
22 color = <LED_COLOR_ID_BLUE>;
23 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
24 };
25
26 usb {
27 function = LED_FUNCTION_USB;
28 color = <LED_COLOR_ID_BLUE>;
29 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
30 trigger-sources = <&ohci_port1>, <&ehci_port1>;
31 linux,default-trigger = "usbport";
32 };
33
34 led_wps: wps {
35 function = LED_FUNCTION_WPS;
36 color = <LED_COLOR_ID_BLUE>;
37 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
38 };
39
40 wan {
41 function = LED_FUNCTION_WAN;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
44 };
45
46 wlan {
47 function = LED_FUNCTION_WLAN;
48 color = <LED_COLOR_ID_BLUE>;
49 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy1tpt";
51 };
52 };
53 };
54
55 &state_default {
56 gpio {
57 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
58 function = "gpio";
59 };
60 };
61
62 &wmac {
63 nvmem-cells = <&eeprom_radio_0>, <&macaddr_rom_f100 0>;
64 nvmem-cell-names = "eeprom", "mac-address";
65 };
66
67 &wifi {
68 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
69 nvmem-cell-names = "eeprom", "mac-address";
70 };