ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_intenso_memory2move.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "intenso,memory2move", "ralink,rt5350-soc";
8 model = "Intenso Memory 2 Move";
9
10 aliases {
11 led-boot = &led_wifi;
12 led-failsafe = &led_wifi;
13 led-running = &led_wifi;
14 led-upgrade = &led_wifi;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_wifi: wifi {
25 label = "blue:wifi";
26 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
27 };
28
29 wan {
30 label = "green:wan";
31 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 keys {
36 compatible = "gpio-keys-polled";
37 poll-interval = <20>;
38
39 power {
40 label = "power";
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_POWER>;
43 };
44
45 reset {
46 label = "reset";
47 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
49 };
50 };
51 };
52
53 &spi0 {
54 status = "okay";
55
56 flash@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <10000000>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "Bootloader";
68 reg = <0x0 0x30000>;
69 read-only;
70 };
71
72 partition@30000 {
73 label = "Config";
74 reg = <0x30000 0x10000>;
75 read-only;
76 };
77
78 factory: partition@40000 {
79 label = "factory";
80 reg = <0x40000 0x10000>;
81 read-only;
82 };
83
84 partition@50000 {
85 compatible = "denx,uimage";
86 label = "firmware";
87 reg = <0x50000 0x7b0000>;
88 };
89 };
90 };
91 };
92
93 &state_default {
94 gpio {
95 groups = "i2c", "uartf";
96 function = "gpio";
97 };
98 };
99
100 &ethernet {
101 mtd-mac-address = <&factory 0x28>;
102 };
103
104 &esw {
105 mediatek,portmap = <0x2f>;
106 };
107
108 &wmac {
109 ralink,mtd-eeprom = <&factory 0x0>;
110 };