ipq40xx: add support for Aruba AP-365
[openwrt/openwrt.git] / target / linux / ipq40xx / files-4.19 / arch / arm / boot / dts / qcom-ipq4029-ap-303.dts
1 // SPDX-License-Identifier: GPL-2.0 OR MIT
2
3 #include "qcom-ipq4029-aruba-glenmorangie.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5
6 / {
7 model = "Aruba AP-303";
8 compatible = "aruba,ap-303";
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 wifi_green {
21 label = "ap-303:green:wifi";
22 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
23 linux,default-trigger = "phy0tpt";
24 };
25
26 wifi_amber {
27 label = "ap-303:amber:wifi";
28 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
29 linux,default-trigger = "phy1tpt";
30 };
31
32 led_system_red: system_red {
33 label = "ap-303:red:system";
34 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
35 };
36
37 led_system_green: system_green {
38 label = "ap-303:green:system";
39 gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
40 };
41 };
42 };
43
44 &tlmm {
45 /*
46 * In addition to the Pins listed below,
47 * the following GPIOs have "features":
48 * 54 - out - active low to force HW reset
49 * 41 - out - active low to reset TPM
50 * 43 - out - active low to reset BLE radio
51 * 19 - in - active high when DC powered
52 */
53
54 phy-reset {
55 line-name = "PHY-reset";
56 gpios = <42 GPIO_ACTIVE_HIGH>;
57 gpio-hog;
58 output-high;
59 };
60 };
61
62 &blsp1_spi1 {
63 pinctrl-0 = <&spi_0_pins>;
64 pinctrl-names = "default";
65 status = "okay";
66 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <24000000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 /*
79 * There is no partition map for the NOR flash
80 * in the stock firmware.
81 *
82 * All partitions here are based on offsets
83 * found in the U-Boot GPL code and information
84 * from smem.
85 */
86
87 partition@0 {
88 label = "sbl1";
89 reg = <0x0 0x40000>;
90 read-only;
91 };
92
93 partition@40000 {
94 label = "mibib";
95 reg = <0x40000 0x20000>;
96 read-only;
97 };
98
99 partition@60000 {
100 label = "qsee";
101 reg = <0x60000 0x60000>;
102 read-only;
103 };
104
105 partition@c0000 {
106 label = "cdt";
107 reg = <0xc0000 0x10000>;
108 read-only;
109 };
110
111 partition@d0000 {
112 label = "ddrparams";
113 reg = <0xd0000 0x10000>;
114 read-only;
115 };
116
117 partition@e0000 {
118 label = "ART";
119 reg = <0xe0000 0x10000>;
120 read-only;
121 };
122
123 partition@f0000 {
124 label = "appsbl";
125 reg = <0xf0000 0xf0000>;
126 read-only;
127 };
128
129 partition@1e0000 {
130 label = "mfginfo";
131 reg = <0x1e0000 0x10000>;
132 read-only;
133 };
134
135 partition@1f0000 {
136 label = "apcd";
137 reg = <0x1f0000 0x10000>;
138 read-only;
139 };
140
141 partition@200000 {
142 label = "osss";
143 reg = <0x200000 0x180000>;
144 read-only;
145 };
146
147 partition@380000 {
148 /* This is empty */
149 label = "appsblenv";
150 reg = <0x380000 0x10000>;
151 read-only;
152 };
153
154 partition@390000 {
155 label = "pds";
156 reg = <0x390000 0x10000>;
157 read-only;
158 };
159
160 partition@3a0000 {
161 label = "fcache";
162 reg = <0x3a0000 0x10000>;
163 read-only;
164 };
165
166 partition@3b0000 {
167 /* Called osss1 in smem */
168 label = "u-boot-env-bak";
169 reg = <0x3b0000 0x10000>;
170 read-only;
171 };
172
173 partition@3f0000 {
174 label = "u-boot-env";
175 reg = <0x3f0000 0x10000>;
176 read-only;
177 };
178 };
179 };
180 };