ipq40xx: switch default to 6.6
[openwrt/staging/pepe2k.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4029-ap-365.dts
1 // SPDX-License-Identifier: GPL-2.0-only OR MIT
2
3 #include "qcom-ipq4029-aruba-glenmorangie.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5
6 / {
7 model = "Aruba AP-365";
8 compatible = "aruba,ap-365";
9
10 aliases {
11 led-boot = &led_system_green;
12 led-failsafe = &led_system_red;
13 led-running = &led_system_green;
14 led-upgrade = &led_system_red;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_system_red: system_red {
21 label = "red:system";
22 gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
23 };
24
25 led_system_green: system_green {
26 label = "green:system";
27 gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
28 };
29
30 system_amber {
31 label = "amber:system";
32 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
33 };
34 };
35
36 watchdog {
37 compatible = "linux,wdt-gpio";
38 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
39 hw_algo = "toggle";
40 hw_margin_ms = <1000>;
41 always-running;
42 };
43 };
44
45 &tlmm {
46 /*
47 * In addition to the Pins listed below,
48 * the following GPIOs have "features":
49 * 39 - out - pulse low to reset watchdog status flipflop
50 * 40 - out - active high to enable watchdog
51 * 41 - out - watchdog poke
52 * 42 - out - active low to reset BLE radio
53 * 43 - out - active low to reset TPM
54 * 47 - out - pulse low to reset warm reset status
55 * 54 - out - active low to force HW reset
56 * 18 - in - PHY interrupt line
57 * 45 - in - power monitor interrupt
58 * 48 - in - active low when cold reset
59 * 52 - in - active high when watchdog reset
60 */
61
62 phy-reset {
63 line-name = "PHY-reset";
64 gpios = <42 GPIO_ACTIVE_HIGH>;
65 gpio-hog;
66 output-high;
67 };
68 };
69
70 &i2c_0 {
71 power-monitor@40 {
72 /* No driver */
73 compatible = "isl,isl28022";
74 reg = <0x40>;
75 };
76
77 temperature-sensor@48 {
78 compatible = "adi,ad7416";
79 reg = <0x48>;
80 };
81 };
82
83 &blsp1_spi1 {
84 pinctrl-0 = <&spi_0_pins>;
85 pinctrl-names = "default";
86 status = "okay";
87 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <24000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 /*
100 * There is no partition map for the NOR flash
101 * in the stock firmware.
102 *
103 * All partitions here are based on offsets
104 * found in the U-Boot GPL code and information
105 * from smem.
106 */
107
108 partition@0 {
109 label = "sbl1";
110 reg = <0x0 0x40000>;
111 read-only;
112 };
113
114 partition@40000 {
115 label = "mibib";
116 reg = <0x40000 0x20000>;
117 read-only;
118 };
119
120 partition@60000 {
121 label = "qsee";
122 reg = <0x60000 0x60000>;
123 read-only;
124 };
125
126 partition@c0000 {
127 label = "cdt";
128 reg = <0xc0000 0x10000>;
129 read-only;
130 };
131
132 partition@d0000 {
133 label = "ddrparams";
134 reg = <0xd0000 0x10000>;
135 read-only;
136 };
137
138 partition@e0000 {
139 label = "u-boot-env";
140 reg = <0xe0000 0x10000>;
141 };
142
143 partition@f0000 {
144 label = "appsbl";
145 reg = <0xf0000 0x100000>;
146 read-only;
147 };
148
149 partition@1f0000 {
150 label = "ART";
151 reg = <0x1f0000 0x10000>;
152 read-only;
153
154 nvmem-layout {
155 compatible = "fixed-layout";
156 #address-cells = <1>;
157 #size-cells = <1>;
158
159 precal_art_1000: precal@1000 {
160 reg = <0x1000 0x2f20>;
161 };
162
163 precal_art_5000: precal@5000 {
164 reg = <0x5000 0x2f20>;
165 };
166 };
167 };
168
169 partition@200000 {
170 label = "osss";
171 reg = <0x200000 0x170000>;
172 read-only;
173 };
174
175 partition@370000 {
176 label = "pds";
177 reg = <0x370000 0x10000>;
178 read-only;
179 };
180
181 partition@380000 {
182 label = "apcd";
183 reg = <0x380000 0x10000>;
184 read-only;
185 };
186
187 partition@390000 {
188 label = "mfginfo";
189 reg = <0x390000 0x10000>;
190 read-only;
191
192 nvmem-layout {
193 compatible = "fixed-layout";
194 #address-cells = <1>;
195 #size-cells = <1>;
196
197 macaddr_mfginfo_1d: macaddr@1d {
198 compatible = "mac-base";
199 reg = <0x1d 0x6>;
200 #nvmem-cell-cells = <1>;
201 };
202 };
203 };
204
205 partition@3a0000 {
206 label = "fcache";
207 reg = <0x3a0000 0x10000>;
208 read-only;
209 };
210
211 partition@3b0000 {
212 label = "osss1";
213 reg = <0x3b0000 0x50000>;
214 read-only;
215 };
216 };
217 };
218 };
219
220 &wifi0 {
221 qcom,ath10k-calibration-variant = "Aruba-AP-365";
222 };
223
224 &wifi1 {
225 qcom,ath10k-calibration-variant = "Aruba-AP-365";
226 };
227