ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_accton_wr6202.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "accton,wr6202", "ralink,rt3052-soc";
8 model = "Accton WR6202";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 leds {
15 compatible = "gpio-leds";
16
17 wps {
18 label = "blue:wps";
19 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
20 };
21
22 3g {
23 label = "blue:3g";
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37
38 wps {
39 label = "wps";
40 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 };
43 };
44
45 flash@1f000000 {
46 compatible = "cfi-flash";
47 reg = <0x1f000000 0x800000>;
48 bank-width = <2>;
49 device-width = <2>;
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "u-boot";
58 reg = <0x0 0x30000>;
59 read-only;
60 };
61
62 partition@30000 {
63 label = "u-boot-env";
64 reg = <0x30000 0x10000>;
65 read-only;
66 };
67
68 factory: partition@40000 {
69 label = "factory";
70 reg = <0x40000 0x10000>;
71 read-only;
72 };
73
74 partition@50000 {
75 compatible = "denx,uimage";
76 label = "firmware";
77 reg = <0x50000 0x7b0000>;
78 };
79 };
80 };
81
82 gpio_export {
83 compatible = "gpio-export";
84 #size-cells = <0>;
85
86 usb {
87 gpio-export,name = "usb";
88 gpio-export,output = <0>;
89 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
90 };
91 };
92 };
93
94 &state_default {
95 gpio {
96 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
97 function = "gpio";
98 };
99 };
100
101 &ethernet {
102 mtd-mac-address = <&factory 0x28>;
103 };
104
105 &esw {
106 mediatek,portmap = <0x3e>;
107 };
108
109 &wmac {
110 ralink,mtd-eeprom = <&factory 0x0>;
111 };
112
113 &otg {
114 status = "okay";
115 };