ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_teltonika_rut5xx.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "teltonika,rut5xx", "ralink,rt3050-soc";
8 model = "Teltonika RUT5XX";
9
10 aliases {
11 led-boot = &led_status;
12 led-failsafe = &led_status;
13 led-running = &led_status;
14 led-upgrade = &led_status;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_status: status {
21 label = "green:status";
22 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys-polled";
28 poll-interval = <20>;
29
30 reset {
31 label = "reset";
32 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RESTART>;
34 };
35 };
36 };
37
38 &spi0 {
39 status = "okay";
40
41 flash@0 {
42 compatible = "jedec,spi-nor";
43 reg = <0>;
44 spi-max-frequency = <10000000>;
45
46 partitions {
47 compatible = "fixed-partitions";
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partition@0 {
52 label = "u-boot";
53 reg = <0x0 0x30000>;
54 read-only;
55 };
56
57 partition@30000 {
58 label = "u-boot-env";
59 reg = <0x30000 0x10000>;
60 read-only;
61 };
62
63 factory: partition@40000 {
64 label = "factory";
65 reg = <0x40000 0x10000>;
66 read-only;
67 };
68
69 partition@50000 {
70 compatible = "denx,uimage";
71 label = "firmware";
72 reg = <0x50000 0xfb0000>;
73 };
74 };
75 };
76 };
77
78 &state_default {
79 gpio {
80 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
81 function = "gpio";
82 };
83 };
84
85 &ethernet {
86 mtd-mac-address = <&factory 0x28>;
87 };
88
89 &esw {
90 mediatek,portmap = <0x3e>;
91 };
92
93 &wmac {
94 ralink,mtd-eeprom = <&factory 0x0>;
95 };
96
97 &otg {
98 status = "okay";
99 };