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