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