ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / ar9344_aerohive_hiveap-121.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9344.dtsi"
8
9 / {
10 compatible = "aerohive,hiveap-121", "qca,ar9344";
11 model = "Aerohive HiveAP 121";
12
13 aliases {
14 led-boot = &led_power_white;
15 led-failsafe = &led_power_orange;
16 led-running = &led_power_white;
17 led-upgrade = &led_power_orange;
18 label-mac-device = &eth0;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,9600";
23 };
24
25 keys {
26 compatible = "gpio-keys";
27
28 reset {
29 label = "Reset button";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_power_orange: power_orange {
40 label = "hiveap-121:orange:power";
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 };
43
44 led_power_white: power_white {
45 label = "hiveap-121:white:power";
46 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
47 };
48 };
49
50 i2c {
51 compatible = "i2c-gpio";
52 gpios = <&gpio 13 GPIO_ACTIVE_HIGH /* sda */
53 &gpio 12 GPIO_ACTIVE_HIGH /* scl */
54 >;
55 #address-cells = <1>;
56 #size-cells = <0>;
57
58 tpm@29 {
59 compatible = "atmel,at97sc3204t";
60 reg = <0x29>;
61 };
62 };
63 };
64
65 &ref {
66 clock-frequency = <40000000>;
67 };
68
69 &uart {
70 status = "okay";
71 };
72
73 &gpio {
74 status = "okay";
75
76 pinctrl-names = "default";
77 pinctrl-0 = <&jtag_disable_pins>;
78
79 gpio_ext_lna0 {
80 gpio-hog;
81 gpios = <20 0>;
82 output-low;
83 line-name = "hiveap-121:ext:lna0";
84 };
85
86 gpio_ext_lna1 {
87 gpio-hog;
88 gpios = <19 0>;
89 output-low;
90 line-name = "hiveap-121:ext:lna1";
91 };
92
93 gpio_usb_power {
94 gpio-hog;
95 gpios = <15 0>;
96 output-high;
97 line-name = "hiveap-121:power:usb";
98 };
99 };
100
101 &usb {
102 status = "okay";
103 };
104
105 &usb_phy {
106 status = "okay";
107 };
108
109 &pcie {
110 status = "okay";
111
112 wifi@0,0 {
113 compatible = "pci168c,0030";
114 reg = <0x0000 0 0 0 0>;
115
116 mtd-mac-address = <&hw_info 0x0>;
117 mtd-mac-address-increment = <2>;
118 };
119 };
120
121 &spi {
122 status = "okay";
123
124 num-cs = <1>;
125
126 flash@0 {
127 compatible = "jedec,spi-nor";
128 reg = <0>;
129 spi-max-frequency = <25000000>;
130
131 partitions {
132 compatible = "fixed-partitions";
133 #address-cells = <1>;
134 #size-cells = <1>;
135
136 partition@0 {
137 label = "u-boot";
138 reg = <0x000000 0x80000>;
139 read-only;
140 };
141
142 partition@80000 {
143 label = "u-boot-env";
144 reg = <0x80000 0x10000>;
145 read-only;
146 };
147
148 hw_info: partition@90000 {
149 label = "hw-info";
150 reg = <0x90000 0x10000>;
151 read-only;
152 };
153
154 partition@a0000 {
155 label = "boot-info";
156 reg = <0xa0000 0x10000>;
157 read-only;
158 };
159
160 partition@b0000 {
161 label = "boot-sinfo";
162 reg = <0xb0000 0x10000>;
163 read-only;
164 };
165 };
166 };
167 };
168
169 &wmac {
170 status = "okay";
171
172 mtd-mac-address = <&hw_info 0x0>;
173 mtd-mac-address-increment = <1>;
174 };
175
176 &nand {
177 status = "okay";
178
179 partitions {
180 compatible = "fixed-partitions";
181 #address-cells = <1>;
182 #size-cells = <1>;
183
184 partition@0 {
185 label = "u-boot1";
186 reg = <0x0 0x400000>;
187 read-only;
188 };
189
190 partition@400000 {
191 label = "u-boot-env1";
192 reg = <0x400000 0x400000>;
193 read-only;
194 };
195
196 partition@800000 {
197 label = "kernel";
198 reg = <0x800000 0x500000>;
199 };
200
201 partition@d00000 {
202 label = "ubi";
203 reg = <0xd00000 0x6f00000>;
204 };
205
206 partition@2e00000 {
207 label = "wifi-info";
208 reg = <0x7c00000 0x400000>;
209 read-only;
210 };
211 };
212 };
213
214 &mdio0 {
215 status = "okay";
216
217 phy0: ethernet-phy@0 {
218 reg = <0>;
219 };
220 };
221
222 &eth0 {
223 status = "okay";
224
225 pll-data = <0x06000000 0x00000101 0x00001313>;
226
227 mtd-mac-address = <&hw_info 0x0>;
228
229 phy-mode = "rgmii-id";
230 phy-handle = <&phy0>;
231
232 gmac-config {
233 device = <&gmac>;
234 rgmii-gmac0 = <1>;
235 rxd-delay = <1>;
236 rxdv-delay = <1>;
237 };
238 };