ipq40xx: dynamically build board-2.bin for Mikrotik
[openwrt/staging/chunkeey.git] / target / linux / ipq40xx / files / 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 compatible = "nvmem-cells";
154 #address-cells = <1>;
155 #size-cells = <1>;
156
157 precal_art_1000: precal@1000 {
158 reg = <0x1000 0x2f20>;
159 };
160
161 precal_art_5000: precal@5000 {
162 reg = <0x5000 0x2f20>;
163 };
164 };
165
166 partition@200000 {
167 label = "osss";
168 reg = <0x200000 0x170000>;
169 read-only;
170 };
171
172 partition@370000 {
173 label = "pds";
174 reg = <0x370000 0x10000>;
175 read-only;
176 };
177
178 partition@380000 {
179 label = "apcd";
180 reg = <0x380000 0x10000>;
181 read-only;
182 };
183
184 partition@390000 {
185 label = "mfginfo";
186 reg = <0x390000 0x10000>;
187 read-only;
188 compatible = "nvmem-cells";
189 #address-cells = <1>;
190 #size-cells = <1>;
191
192 macaddr_mfginfo_1d: macaddr@1d {
193 reg = <0x1d 0x6>;
194 };
195 };
196
197 partition@3a0000 {
198 label = "fcache";
199 reg = <0x3a0000 0x10000>;
200 read-only;
201 };
202
203 partition@3b0000 {
204 label = "osss1";
205 reg = <0x3b0000 0x50000>;
206 read-only;
207 };
208 };
209 };
210 };