ramips: rename to GnuBee GB-PC1 and GnuBee GB-PC2
[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
97 partition@70000 {
98 compatible = "openwrt,uimage", "denx,uimage";
99 openwrt,offset = <FW_EDIMAX_OFFSET>;
100 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
101 label = "firmware";
102 reg = <0x70000 0xf90000>;
103 };
104 };
105 };
106 };
107
108 &pcie {
109 status = "okay";
110 };
111
112 &pcie0 {
113 wifi@0,0 {
114 compatible = "mediatek,mt76";
115 reg = <0x0000 0 0 0 0>;
116 mediatek,mtd-eeprom = <&factory 0x0000>;
117 ieee80211-freq-limit = <2400000 2500000>;
118 };
119 };
120
121 &pcie1 {
122 wifi@0,0 {
123 compatible = "mediatek,mt76";
124 reg = <0x0000 0 0 0 0>;
125 mediatek,mtd-eeprom = <&factory 0x8000>;
126 ieee80211-freq-limit = <5000000 6000000>;
127 };
128 };
129
130 &gmac0 {
131 nvmem-cells = <&macaddr_factory_10007>;
132 nvmem-cell-names = "mac-address";
133 };
134
135 &gmac1 {
136 status = "okay";
137 label = "wan";
138 phy-handle = <&ethphy0>;
139
140 nvmem-cells = <&macaddr_factory_1000d>;
141 nvmem-cell-names = "mac-address";
142 };
143
144 &mdio {
145 ethphy0: ethernet-phy@0 {
146 reg = <0>;
147 };
148 };
149
150 &switch0 {
151 ports {
152 port@1 {
153 status = "okay";
154 label = "lan";
155 };
156 };
157 };
158
159 &state_default {
160 gpio {
161 groups = "jtag", "uart2", "uart3", "wdt";
162 function = "gpio";
163 };
164 };
165
166 &factory {
167 compatible = "nvmem-cells";
168 #address-cells = <1>;
169 #size-cells = <1>;
170
171 macaddr_factory_10007: macaddr@10007 {
172 reg = <0x10007 0x6>;
173 };
174
175 macaddr_factory_1000d: macaddr@1000d {
176 reg = <0x1000d 0x6>;
177 };
178 };