ath79: drop redundant status for gpio target-wide
[openwrt/staging/hauke.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 pinctrl-names = "default";
75 pinctrl-0 = <&jtag_disable_pins>;
76
77 gpio_ext_lna0 {
78 gpio-hog;
79 gpios = <20 0>;
80 output-low;
81 line-name = "hiveap-121:ext:lna0";
82 };
83
84 gpio_ext_lna1 {
85 gpio-hog;
86 gpios = <19 0>;
87 output-low;
88 line-name = "hiveap-121:ext:lna1";
89 };
90
91 gpio_usb_power {
92 gpio-hog;
93 gpios = <15 0>;
94 output-high;
95 line-name = "hiveap-121:power:usb";
96 };
97 };
98
99 &usb {
100 status = "okay";
101 };
102
103 &usb_phy {
104 status = "okay";
105 };
106
107 &pcie {
108 status = "okay";
109
110 wifi@0,0 {
111 compatible = "pci168c,0030";
112 reg = <0x0000 0 0 0 0>;
113
114 mtd-mac-address = <&hw_info 0x0>;
115 mtd-mac-address-increment = <2>;
116 };
117 };
118
119 &spi {
120 status = "okay";
121
122 num-cs = <1>;
123
124 flash@0 {
125 compatible = "jedec,spi-nor";
126 reg = <0>;
127 spi-max-frequency = <25000000>;
128
129 partitions {
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
132 #size-cells = <1>;
133
134 partition@0 {
135 label = "u-boot";
136 reg = <0x000000 0x80000>;
137 read-only;
138 };
139
140 partition@80000 {
141 label = "u-boot-env";
142 reg = <0x80000 0x10000>;
143 read-only;
144 };
145
146 hw_info: partition@90000 {
147 label = "hw-info";
148 reg = <0x90000 0x10000>;
149 read-only;
150 };
151
152 partition@a0000 {
153 label = "boot-info";
154 reg = <0xa0000 0x10000>;
155 read-only;
156 };
157
158 partition@b0000 {
159 label = "boot-sinfo";
160 reg = <0xb0000 0x10000>;
161 read-only;
162 };
163 };
164 };
165 };
166
167 &wmac {
168 status = "okay";
169
170 mtd-mac-address = <&hw_info 0x0>;
171 mtd-mac-address-increment = <1>;
172 };
173
174 &nand {
175 status = "okay";
176
177 partitions {
178 compatible = "fixed-partitions";
179 #address-cells = <1>;
180 #size-cells = <1>;
181
182 partition@0 {
183 label = "u-boot1";
184 reg = <0x0 0x400000>;
185 read-only;
186 };
187
188 partition@400000 {
189 label = "u-boot-env1";
190 reg = <0x400000 0x400000>;
191 read-only;
192 };
193
194 partition@800000 {
195 label = "kernel";
196 reg = <0x800000 0x500000>;
197 };
198
199 partition@d00000 {
200 label = "ubi";
201 reg = <0xd00000 0x6f00000>;
202 };
203
204 partition@2e00000 {
205 label = "wifi-info";
206 reg = <0x7c00000 0x400000>;
207 read-only;
208 };
209 };
210 };
211
212 &mdio0 {
213 status = "okay";
214
215 phy0: ethernet-phy@0 {
216 reg = <0>;
217 };
218 };
219
220 &eth0 {
221 status = "okay";
222
223 pll-data = <0x06000000 0x00000101 0x00001313>;
224
225 mtd-mac-address = <&hw_info 0x0>;
226
227 phy-mode = "rgmii-id";
228 phy-handle = <&phy0>;
229
230 gmac-config {
231 device = <&gmac>;
232 rgmii-gmac0 = <1>;
233 rxd-delay = <1>;
234 rxdv-delay = <1>;
235 };
236 };