ramips: dts: rt3050: reset FE and ESW cores together
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_humax_e10.dts
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 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 compatible = "humax,e10", "mediatek,mt7621-soc";
11 model = "HUMAX E10";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac1;
19 };
20
21 gpio-export {
22 compatible = "gpio-export";
23
24 gpio-usb-power {
25 gpio-export,name = "power:usb";
26 gpio-export,output = <1>;
27 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 label = "green:power";
36 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
37 };
38
39 pairing {
40 label = "green:pairing";
41 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
42 };
43
44 wlan {
45 label = "green:wlan";
46 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
47 };
48
49 wps {
50 label = "green:wps";
51 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
52 };
53 };
54
55 keys {
56 compatible = "gpio-keys";
57
58 wps-reset {
59 label = "wps_reset";
60 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
62 };
63 };
64 };
65
66 &spi0 {
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <50000000>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 partition@0 {
80 label = "u-boot";
81 reg = <0x0 0x30000>;
82 read-only;
83 };
84
85 partition@30000 {
86 label = "u-boot-env";
87 reg = <0x30000 0x10000>;
88 read-only;
89 };
90
91 factory: partition@40000 {
92 label = "factory";
93 reg = <0x40000 0x30000>;
94 read-only;
95
96 nvmem-layout {
97 compatible = "fixed-layout";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 eeprom_factory_0: eeprom@0 {
102 reg = <0x0 0x4da8>;
103 };
104
105 eeprom_factory_8000: eeprom@8000 {
106 reg = <0x8000 0x4da8>;
107 };
108
109 macaddr_factory_10007: macaddr@10007 {
110 reg = <0x10007 0x6>;
111 };
112
113 macaddr_factory_1000d: macaddr@1000d {
114 reg = <0x1000d 0x6>;
115 };
116 };
117 };
118
119 partition@70000 {
120 compatible = "openwrt,uimage", "denx,uimage";
121 openwrt,offset = <FW_EDIMAX_OFFSET>;
122 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
123 label = "firmware";
124 reg = <0x70000 0xf90000>;
125 };
126 };
127 };
128 };
129
130 &pcie {
131 status = "okay";
132 };
133
134 &pcie0 {
135 wifi@0,0 {
136 compatible = "mediatek,mt76";
137 reg = <0x0000 0 0 0 0>;
138 nvmem-cells = <&eeprom_factory_0>;
139 nvmem-cell-names = "eeprom";
140 ieee80211-freq-limit = <2400000 2500000>;
141 };
142 };
143
144 &pcie1 {
145 wifi@0,0 {
146 compatible = "mediatek,mt76";
147 reg = <0x0000 0 0 0 0>;
148 nvmem-cells = <&eeprom_factory_8000>;
149 nvmem-cell-names = "eeprom";
150 ieee80211-freq-limit = <5000000 6000000>;
151 };
152 };
153
154 &gmac0 {
155 nvmem-cells = <&macaddr_factory_10007>;
156 nvmem-cell-names = "mac-address";
157 };
158
159 &gmac1 {
160 status = "okay";
161 label = "wan";
162 phy-handle = <&ethphy0>;
163
164 nvmem-cells = <&macaddr_factory_1000d>;
165 nvmem-cell-names = "mac-address";
166 };
167
168 &mdio {
169 ethphy0: ethernet-phy@0 {
170 reg = <0>;
171 };
172 };
173
174 &switch0 {
175 ports {
176 port@1 {
177 status = "okay";
178 label = "lan";
179 };
180 };
181 };
182
183 &state_default {
184 gpio {
185 groups = "jtag", "uart2", "uart3", "wdt";
186 function = "gpio";
187 };
188 };