72a50c922e25ed63573cd46d9506e774ec823d24
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9557_engenius_eap1200h.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.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 = "engenius,eap1200h", "qca,qca9557";
11 model = "EnGenius EAP1200H";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "amber:power";
37 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40
41 wifi2g {
42 label = "blue:wifi2g";
43 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy1tpt";
45 };
46
47 wifi5g {
48 label = "green:wifi5g";
49 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy0tpt";
51 };
52
53 wps {
54 label = "blue:wps";
55 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
56 };
57 };
58
59 virtual_flash {
60 compatible = "mtd-concat";
61
62 devices = <&fwconcat0 &fwconcat1>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 compatible = "openwrt,uimage", "denx,uimage";
71 openwrt,ih-magic = <IH_MAGIC_OKLI>;
72 label = "firmware";
73 reg = <0x0 0x0>;
74 };
75 };
76 };
77 };
78
79 &uart {
80 status = "okay";
81 };
82
83 &spi {
84 status = "okay";
85
86 flash@0 {
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <40000000>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 partition@0 {
97 label = "u-boot";
98 reg = <0x000000 0x040000>;
99 read-only;
100 };
101
102 partition@40000 {
103 label = "u-boot-env";
104 reg = <0x040000 0x010000>;
105 };
106
107 partition@50000 {
108 label = "custom";
109 reg = <0x050000 0x050000>;
110 read-only;
111 };
112
113 partition@a0000 {
114 label = "loader";
115 reg = <0x0a0000 0x010000>;
116 read-only;
117 };
118
119 fwconcat1: partition@b0000 {
120 label = "fwconcat1";
121 reg = <0x0b0000 0x170000>;
122 };
123
124 partition@220000 {
125 label = "fakeroot";
126 reg = <0x220000 0x010000>;
127 read-only;
128 };
129
130 fwconcat0: partition@230000 {
131 label = "fwconcat0";
132 reg = <0x230000 0xb40000>;
133 };
134
135 partition@d70000 {
136 label = "failsafe";
137 reg = <0xd70000 0x280000>;
138 read-only;
139 };
140
141 art: partition@ff0000 {
142 label = "art";
143 reg = <0xff0000 0x010000>;
144 read-only;
145 };
146 };
147 };
148 };
149
150 &mdio0 {
151 status = "okay";
152
153 phy5: ethernet-phy@5 {
154 reg = <5>;
155 eee-broken-100tx;
156 eee-broken-1000t;
157 };
158 };
159
160 &eth0 {
161 status = "okay";
162
163 mtd-mac-address = <&art 0x0>;
164
165 phy-handle = <&phy5>;
166 phy-mode = "rgmii-id";
167
168 pll-data = <0x82000000 0x80000101 0x80001313>;
169 };
170
171 &pcie0 {
172 status = "okay";
173
174 wifi@0,0,0 {
175 compatible = "qcom,ath10k";
176 reg = <0x0 0 0 0 0>;
177 qca,no-eeprom;
178 };
179 };
180
181 &wmac {
182 status = "okay";
183
184 mtd-cal-data = <&art 0x1000>;
185 mtd-mac-address = <&art 0x0>;
186 mtd-mac-address-increment = <1>;
187 };