ramips: mt76x8: fix bogus mediatek,portmap
[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";
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                 led_power: power {
40                         label = "archer-c50-v4:green:power";
41                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
42                 };
43
44                 wlan2 {
45                         label = "archer-c50-v4:green:wlan2g";
46                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
47                 };
48
49                 wlan5 {
50                         label = "archer-c50-v4:green:wlan5g";
51                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
52                 };
53
54                 lan {
55                         label = "archer-c50-v4:green:lan";
56                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
57                 };
58
59                 wan {
60                         label = "archer-c50-v4:green:wan";
61                         gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
62                 };
63
64                 wan_orange {
65                         label = "archer-c50-v4:orange:wan";
66                         gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
67                 };
68
69                 wps {
70                         label = "archer-c50-v4:green:wps";
71                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
72                 };
73         };
74 };
75
76 &state_default {
77         gpio {
78                 ralink,group = "i2c", "p0led_an", "p1led_an", "p2led_an",
79                                    "p3led_an", "p4led_an", "wdt", "wled_an";
80                 ralink,function = "gpio";
81         };
82 };
83
84 &pcie {
85         status = "okay";
86 };
87
88 &pcie0 {
89         wifi@0,0 {
90                 reg = <0x0000 0 0 0 0>;
91                 mediatek,mtd-eeprom = <&radio 0x8000>;
92                 ieee80211-freq-limit = <5000000 6000000>;
93                 mtd-mac-address = <&rom 0xf100>;
94                 mtd-mac-address-increment = <(-1)>;
95         };
96 };