ramips: mt76x8: fix bogus mediatek,portmap
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wr842n-v5.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,tl-wr842n-v5", "mediatek,mt7628an-soc";
10         model = "TP-Link TL-WR842N v5";
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 14 GPIO_ACTIVE_LOW>;
25                         linux,code = <KEY_RESTART>;
26                 };
27
28                 rfkill {
29                         label = "rfkill";
30                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
31                         linux,code = <KEY_RFKILL>;
32                 };
33         };
34
35         leds {
36                 compatible = "gpio-leds";
37
38                 lan {
39                         label = "tl-wr842n-v5:green:lan";
40                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
41                 };
42
43                 led_power: power {
44                         label = "tl-wr842n-v5:green:power";
45                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
46                 };
47
48                 usb {
49                         label = "tl-wr842n-v5:green:usb";
50                         gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
51                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
52                         linux,default-trigger = "usbport";
53                 };
54
55                 wan {
56                         label = "tl-wr842n-v5:green:wan";
57                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
58                 };
59
60                 wan_amber {
61                         label = "tl-wr842n-v5:amber:wan";
62                         gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
63                 };
64
65                 wlan {
66                         label = "tl-wr842n-v5:green:wlan";
67                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
68                 };
69
70                 wps {
71                         label = "tl-wr842n-v5:green:wps";
72                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
73                 };
74         };
75 };
76
77 &ehci {
78         status = "okay";
79 };
80
81 &ohci {
82         status = "okay";
83 };
84
85 &state_default {
86         gpio {
87                 ralink,group = "i2c", "i2s", "p2led_an", "refclk", "uart1", "wdt", "wled_an";
88                 ralink,function = "gpio";
89         };
90 };
91
92 &esw {
93         mediatek,portmap = <0x3e>;
94 };