ramips: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c50-v6.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "mt7628an_tplink_8m-split-uboot.dtsi"
6
7 / {
8 compatible = "tplink,archer-c50-v6", "mediatek,mt7628an-soc";
9 model = "TP-Link Archer C50 v6 (CA/EU/RU)";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26
27 rfkill {
28 label = "rfkill";
29 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RFKILL>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_power: power {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan2 {
44 label = "green:wlan2g";
45 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
46 };
47
48 wlan5 {
49 label = "green:wlan5g";
50 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
51 };
52
53 lan {
54 function = LED_FUNCTION_LAN;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
57 };
58
59 wan {
60 function = LED_FUNCTION_WAN;
61 color = <LED_COLOR_ID_GREEN>;
62 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
63 };
64
65 wan_orange {
66 function = LED_FUNCTION_WAN;
67 color = <LED_COLOR_ID_ORANGE>;
68 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
69 };
70 };
71 };
72
73 &ehci {
74 status = "disabled";
75 };
76
77 &ohci {
78 status = "disabled";
79 };
80
81 &state_default {
82 gpio {
83 groups = "i2c", "p0led_an", "p1led_an", "p2led_an",
84 "p3led_an", "p4led_an", "wdt", "wled_an";
85 function = "gpio";
86 };
87 };
88
89 &pcie {
90 status = "okay";
91 };
92
93 &pcie0 {
94 wifi@0,0 {
95 reg = <0x0000 0 0 0 0>;
96 ieee80211-freq-limit = <5000000 6000000>;
97 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
98 nvmem-cell-names = "eeprom", "mac-address";
99 };
100 };
101
102 &eeprom_radio_8000 {
103 /* V2 has different eeprom size '0x4da8' for MT7613 */
104 reg = <0x8000 0x4da8>;
105 };