ipq40xx: consolidate DTS files
[oweals/openwrt.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4029-ap-365.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-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 = "ap-365:red:system";
22                         gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
23                 };
24
25                 led_system_green: system_green {
26                         label = "ap-365:green:system";
27                         gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
28                 };
29
30                 system_amber {
31                         label = "ap-365: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                                 read-only;
142                         };
143
144                         partition@f0000 {
145                                 label = "appsbl";
146                                 reg = <0xf0000 0x100000>;
147                                 read-only;
148                         };
149
150                         partition@1f0000 {
151                                 label = "ART";
152                                 reg = <0x1f0000 0x10000>;
153                                 read-only;
154                         };
155
156                         partition@200000 {
157                                 label = "osss";
158                                 reg = <0x200000 0x170000>;
159                                 read-only;
160                         };
161
162                         partition@370000 {
163                                 label = "pds";
164                                 reg = <0x370000 0x10000>;
165                                 read-only;
166                         };
167
168                         partition@380000 {
169                                 label = "apcd";
170                                 reg = <0x380000 0x10000>;
171                                 read-only;
172                         };
173
174                         partition@390000 {
175                                 label = "mfginfo";
176                                 reg = <0x390000 0x10000>;
177                                 read-only;
178                         };
179
180                         partition@3a0000 {
181                                 label = "fcache";
182                                 reg = <0x3a0000 0x10000>;
183                                 read-only;
184                         };
185
186                         partition@3b0000 {
187                                 label = "osss1";
188                                 reg = <0x3b0000 0x50000>;
189                                 read-only;
190                         };
191                 };
192         };
193 };