ramips: add support for Netgear EX6130
[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 &pinctrl {
76         state_default: pinctrl0 {
77                 gpio {
78                         ralink,group = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an",
79                                        "p3led_an", "p4led_an", "wdt", "wled_an";
80                         ralink,function = "gpio";
81                 };
82         };
83 };
84
85 &pcie {
86         status = "okay";
87 };
88
89 &pcie0 {
90         mt76@0,0 {
91                 reg = <0x0000 0 0 0 0>;
92                 mediatek,mtd-eeprom = <&factory 0x28000>;
93                 ieee80211-freq-limit = <5000000 6000000>;
94                 mtd-mac-address = <&factory 0xf100>;
95                 mtd-mac-address-increment = <(-1)>;
96         };
97 };