f31e74b0516001daeea0f69e5ea1ce39d6b3be91
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_asus_rt-acx5p.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 reset {
13 label = "reset";
14 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
15 linux,code = <KEY_RESTART>;
16 };
17
18 wps {
19 label = "wps";
20 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_WPS_BUTTON>;
22 };
23 };
24 };
25
26 &i2c {
27 status = "okay";
28 };
29
30 &sdhci {
31 status = "okay";
32 };
33
34 &nand {
35 status = "okay";
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "u-boot";
44 reg = <0x0 0xe0000>;
45 read-only;
46 };
47
48 partition@e0000 {
49 label = "u-boot-env";
50 reg = <0xe0000 0x100000>;
51 read-only;
52 };
53
54 factory: partition@1e0000 {
55 label = "factory";
56 reg = <0x1e0000 0x100000>;
57 read-only;
58 };
59
60 factory2: partition@2e0000 {
61 label = "factory2";
62 reg = <0x2e0000 0x100000>;
63 read-only;
64 };
65
66 partition@3e0000 {
67 label = "kernel";
68 reg = <0x3e0000 0x400000>;
69 };
70
71 partition@7e0000 {
72 label = "ubi";
73 reg = <0x7e0000 0x2e00000>;
74 };
75
76 partition@35e0000 {
77 label = "firmware2";
78 reg = <0x35e0000 0x3200000>;
79 };
80 };
81 };
82
83 &pcie {
84 status = "okay";
85 };
86
87 &pcie0 {
88 wifi0: wifi@0,0 {
89 compatible = "pci14c3,7615";
90 reg = <0x0000 0 0 0 0>;
91 mediatek,mtd-eeprom = <&factory 0x0000>;
92 ieee80211-freq-limit = <2400000 2500000>;
93 };
94 };
95
96 &pcie1 {
97 wifi1: wifi@0,0 {
98 compatible = "pci14c3,7615";
99 reg = <0x0000 0 0 0 0>;
100 mediatek,mtd-eeprom = <&factory 0x8000>;
101 ieee80211-freq-limit = <5000000 6000000>;
102 };
103 };
104
105 &gmac0 {
106 mtd-mac-address = <&factory 0xe000>;
107 };
108
109 &switch0 {
110 ports {
111 port@0 {
112 status = "okay";
113 label = "wan";
114 };
115
116 port@1 {
117 status = "okay";
118 label = "lan1";
119 };
120
121 port@2 {
122 status = "okay";
123 label = "lan2";
124 };
125
126 port@3 {
127 status = "okay";
128 label = "lan3";
129 };
130
131 port@4 {
132 status = "okay";
133 label = "lan4";
134 };
135 };
136 };
137
138 &state_default {
139 gpio {
140 groups = "uart2", "uart3", "i2c";
141 function = "gpio";
142 };
143 };