ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_sunvalley_filehub.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 aliases {
11 label-mac-device = &ethernet;
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22 };
23
24 virtual_flash {
25 compatible = "mtd-concat";
26
27 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
28
29 partitions {
30 compatible = "fixed-partitions";
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 compatible = "openwrt,uimage", "denx,uimage";
36 openwrt,ih-magic = <IH_MAGIC_OKLI>;
37 label = "firmware";
38 reg = <0x0 0x0>;
39 };
40 };
41 };
42 };
43
44 &gpio2 {
45 status = "okay";
46 };
47
48 &gpio3 {
49 status = "okay";
50 };
51
52 &i2c {
53 status = "okay";
54 };
55
56 &spi0 {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <50000000>;
63 m25p,fast-read;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x0 0x30000>;
73 read-only;
74 };
75
76 partition@30000 {
77 label = "config";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86 };
87
88 partition@50000 {
89 label = "loader";
90 reg = <0x50000 0x10000>;
91 read-only;
92 };
93
94 fwconcat1: partition@60000 {
95 label = "fwconcat1";
96 reg = <0x60000 0x170000>;
97 };
98
99 partition@1d0000 {
100 label = "u-boot-env";
101 reg = <0x1d0000 0x10000>;
102 };
103
104 fwconcat2: partition@1e0000 {
105 label = "fwconcat2";
106 reg = <0x1e0000 0x20000>;
107 };
108
109 fwconcat0: partition@200000 {
110 label = "fwconcat0";
111 reg = <0x200000 0x600000>;
112 };
113 };
114 };
115 };
116
117 &ehci {
118 status = "okay";
119 };
120
121 &ohci {
122 status = "okay";
123 };
124
125 &ethernet {
126 mtd-mac-address = <&factory 0x28>;
127 };
128
129 &wmac {
130 ralink,mtd-eeprom = <&factory 0x0>;
131 };
132
133 &state_default {
134 gpio {
135 groups = "wled", "ephy";
136 function = "gpio";
137 };
138 };