b3c1f88ab02e489017d53a07eb2b7efef6385c22
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c50-v4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7628an_tplink_8m-split-uboot.dtsi"
5
6 / {
7         compatible = "tplink,archer-c50-v4", "mediatek,mt7628an-soc";
8         model = "TP-Link Archer C50 v4";
9
10         aliases {
11                 led-boot = &led_power;
12                 led-failsafe = &led_power;
13                 led-running = &led_power;
14                 led-upgrade = &led_power;
15         };
16
17         keys {
18                 compatible = "gpio-keys";
19
20                 reset {
21                         label = "reset";
22                         gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
23                         linux,code = <KEY_RESTART>;
24                 };
25
26                 rfkill {
27                         label = "rfkill";
28                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
29                         linux,code = <KEY_RFKILL>;
30                 };
31         };
32
33         leds {
34                 compatible = "gpio-leds";
35
36                 led_power: power {
37                         label = "archer-c50-v4:green:power";
38                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39                 };
40
41                 wlan2 {
42                         label = "archer-c50-v4:green:wlan2g";
43                         gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
44                 };
45
46                 wlan5 {
47                         label = "archer-c50-v4:green:wlan5g";
48                         gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
49                 };
50
51                 lan {
52                         label = "archer-c50-v4:green:lan";
53                         gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
54                 };
55
56                 wan {
57                         label = "archer-c50-v4:green:wan";
58                         gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
59                 };
60
61                 wan_orange {
62                         label = "archer-c50-v4:orange:wan";
63                         gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
64                 };
65
66                 wps {
67                         label = "archer-c50-v4:green:wps";
68                         gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
69                 };
70         };
71 };
72
73 &state_default {
74         gpio {
75                 ralink,group = "i2c", "p0led_an", "p1led_an", "p2led_an",
76                                    "p3led_an", "p4led_an", "wdt", "wled_an";
77                 ralink,function = "gpio";
78         };
79 };
80
81 &pcie {
82         status = "okay";
83 };
84
85 &pcie0 {
86         wifi@0,0 {
87                 reg = <0x0000 0 0 0 0>;
88                 mediatek,mtd-eeprom = <&radio 0x8000>;
89                 ieee80211-freq-limit = <5000000 6000000>;
90                 mtd-mac-address = <&rom 0xf100>;
91                 mtd-mac-address-increment = <(-1)>;
92         };
93 };