ath79: drop num-cs for SPI controller
[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 = "orange:power";
40 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
41 };
42
43 led_power_white: power_white {
44 label = "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 flash@0 {
122 compatible = "jedec,spi-nor";
123 reg = <0>;
124 spi-max-frequency = <25000000>;
125
126 partitions {
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 partition@0 {
132 label = "u-boot";
133 reg = <0x000000 0x80000>;
134 read-only;
135 };
136
137 partition@80000 {
138 label = "u-boot-env";
139 reg = <0x80000 0x10000>;
140 read-only;
141 };
142
143 hw_info: partition@90000 {
144 label = "hw-info";
145 reg = <0x90000 0x10000>;
146 read-only;
147 };
148
149 partition@a0000 {
150 label = "boot-info";
151 reg = <0xa0000 0x10000>;
152 read-only;
153 };
154
155 partition@b0000 {
156 label = "boot-sinfo";
157 reg = <0xb0000 0x10000>;
158 read-only;
159 };
160 };
161 };
162 };
163
164 &wmac {
165 status = "okay";
166
167 mtd-mac-address = <&hw_info 0x0>;
168 mtd-mac-address-increment = <1>;
169 };
170
171 &nand {
172 status = "okay";
173
174 partitions {
175 compatible = "fixed-partitions";
176 #address-cells = <1>;
177 #size-cells = <1>;
178
179 partition@0 {
180 label = "u-boot1";
181 reg = <0x0 0x400000>;
182 read-only;
183 };
184
185 partition@400000 {
186 label = "u-boot-env1";
187 reg = <0x400000 0x400000>;
188 read-only;
189 };
190
191 partition@800000 {
192 label = "kernel";
193 reg = <0x800000 0x500000>;
194 };
195
196 partition@d00000 {
197 label = "ubi";
198 reg = <0xd00000 0x6f00000>;
199 };
200
201 partition@2e00000 {
202 label = "wifi-info";
203 reg = <0x7c00000 0x400000>;
204 read-only;
205 };
206 };
207 };
208
209 &mdio0 {
210 status = "okay";
211
212 phy0: ethernet-phy@0 {
213 reg = <0>;
214 };
215 };
216
217 &eth0 {
218 status = "okay";
219
220 pll-data = <0x06000000 0x00000101 0x00001313>;
221
222 mtd-mac-address = <&hw_info 0x0>;
223
224 phy-mode = "rgmii-id";
225 phy-handle = <&phy0>;
226
227 gmac-config {
228 device = <&gmac>;
229 rgmii-gmac0 = <1>;
230 rxd-delay = <1>;
231 rxdv-delay = <1>;
232 };
233 };