e0b025d20db141e43b086687caf5928d95739f19
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c50-v3.dts
1 /dts-v1/;
2
3 #include "mt7628an_tplink_8m.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "tplink,archer-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";
21
22                 reset {
23                         label = "reset";
24                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
25                         linux,code = <KEY_RESTART>;
26                 };
27
28                 rfkill {
29                         label = "rfkill";
30                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
31                         linux,code = <KEY_RFKILL>;
32                 };
33         };
34
35         leds {
36                 compatible = "gpio-leds";
37
38                 lan {
39                         label = "archer-c50-v3:green:lan";
40                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
41                 };
42
43                 led_power: power {
44                         label = "archer-c50-v3:green:power";
45                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
46                 };
47
48                 wan {
49                         label = "archer-c50-v3:green:wan";
50                         gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
51                 };
52
53                 wan_orange {
54                         label = "archer-c50-v3:orange:wan";
55                         gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
56                 };
57
58                 wlan {
59                         label = "archer-c50-v3:green:wlan2g";
60                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
61                 };
62
63                 wlan5 {
64                         label = "archer-c50-v3:green:wlan5g";
65                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
66                 };
67
68                 wps {
69                         label = "archer-c50-v3:green:wps";
70                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
71                 };
72         };
73 };
74
75 &state_default {
76         gpio {
77                 ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an",
78                                    "p3led_an", "p4led_an", "wdt", "wled_an";
79                 ralink,function = "gpio";
80         };
81 };
82
83 &pcie {
84         status = "okay";
85 };
86
87 &pcie0 {
88         mt76@0,0 {
89                 reg = <0x0000 0 0 0 0>;
90                 mediatek,mtd-eeprom = <&factory 0x28000>;
91                 ieee80211-freq-limit = <5000000 6000000>;
92                 mtd-mac-address = <&factory 0xf100>;
93                 mtd-mac-address-increment = <(-1)>;
94         };
95 };