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