ramips: dts: Unify naming of gpio-led nodes
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ArcherC50V3.dts
1 /dts-v1/;
2
3 #include "TPLINK-8M.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,c50-v3", "mediatek,mt7628an-soc";
10 model = "TP-Link Archer C50 v3";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys-polled";
21 poll-interval = <20>;
22
23 reset {
24 label = "reset";
25 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28
29 rfkill {
30 label = "rfkill";
31 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RFKILL>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 lan {
40 label = "c50-v3:green:lan";
41 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
42 };
43
44 led_power: power {
45 label = "c50-v3:green:power";
46 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
47 };
48
49 wan {
50 label = "c50-v3:green:wan";
51 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
52 };
53
54 wan_orange {
55 label = "c50-v3:orange:wan";
56 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
57 };
58
59 wlan {
60 label = "c50-v3:green:wlan2g";
61 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
62 };
63
64 wlan5 {
65 label = "c50-v3:green:wlan5g";
66 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
67 };
68
69 wps {
70 label = "c50-v3:green:wps";
71 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
72 };
73 };
74 };
75
76 &pinctrl {
77 state_default: pinctrl0 {
78 gpio {
79 ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an",
80 "p3led_an", "p4led_an", "wdt", "wled_an";
81 ralink,function = "gpio";
82 };
83 };
84 };
85
86 &pcie {
87 status = "okay";
88 };
89
90 &pcie0 {
91 mt76@0,0 {
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x28000>;
94 ieee80211-freq-limit = <5000000 6000000>;
95 mtd-mac-address = <&factory 0xf100>;
96 mtd-mac-address-increment = <(-1)>;
97 };
98 };