ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_wrtnode_wrtnode2.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22 };
23
24 &spi0 {
25 status = "okay";
26
27 flash@0 {
28 compatible = "jedec,spi-nor";
29 reg = <0>;
30 spi-max-frequency = <10000000>;
31
32 partitions {
33 compatible = "fixed-partitions";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partition@0 {
38 label = "u-boot";
39 reg = <0x0 0x30000>;
40 read-only;
41 };
42
43 partition@30000 {
44 label = "u-boot-env";
45 reg = <0x30000 0x10000>;
46 read-only;
47 };
48
49 factory: partition@40000 {
50 label = "factory";
51 reg = <0x40000 0x10000>;
52 read-only;
53 };
54
55 partition@50000 {
56 compatible = "denx,uimage";
57 label = "firmware";
58 reg = <0x50000 0x1fb0000>;
59 };
60 };
61 };
62 };
63
64 &uart1 {
65 status = "okay";
66 };
67
68 &i2c {
69 status = "okay";
70 };
71
72 &ethernet {
73 mtd-mac-address = <&factory 0x4>;
74 };
75
76 &esw {
77 mediatek,portmap = <0x3e>;
78 };
79
80 &sdhci {
81 status = "okay";
82 };
83
84 &pcie {
85 status = "okay";
86 };
87
88 &wmac {
89 status = "okay";
90 };