ipq40xx: drop redundant label with new LED color/function format
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-wap-ac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2020, Robert Marko <robimarko@gmail.com> */
3
4 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 memory {
11 device_type = "memory";
12 reg = <0x80000000 0x08000000>;
13 };
14
15 chosen {
16 stdout-path = "serial0:115200n8";
17 };
18
19 aliases {
20 led-boot = &led_user;
21 led-failsafe = &led_user;
22 led-running = &led_user;
23 led-upgrade = &led_user;
24 };
25
26 soc {
27 counter@4a1000 {
28 compatible = "qcom,qca-gcnt";
29 reg = <0x4a1000 0x4>;
30 };
31
32 tcsr@1949000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1949000 0x100>;
35 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
36 };
37
38 ess_tcsr@1953000 {
39 compatible = "qcom,tcsr";
40 reg = <0x1953000 0x1000>;
41 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
42 };
43
44 tcsr@1957000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1957000 0x100>;
47 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
48 };
49 };
50
51 keys {
52 compatible = "gpio-keys";
53
54 reset {
55 label = "reset";
56 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
58 };
59 };
60
61 leds {
62 compatible = "gpio-leds";
63
64 power {
65 label = "blue:power";
66 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
67 default-state = "keep";
68 };
69
70 led_user: user {
71 label = "green:user";
72 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
73 panic-indicator;
74 };
75 };
76 };
77
78 &prng {
79 status = "okay";
80 };
81
82 &tlmm {
83 serial_pins: serial_pinmux {
84 mux {
85 pins = "gpio60", "gpio61";
86 function = "blsp_uart0";
87 bias-disable;
88 };
89 };
90
91 spi_0_pins: spi_0_pinmux {
92 pin {
93 function = "blsp_spi0";
94 pins = "gpio55", "gpio56", "gpio57";
95 drive-strength = <2>;
96 bias-disable;
97 };
98 pin_cs {
99 function = "gpio";
100 pins = "gpio54";
101 drive-strength = <2>;
102 bias-disable;
103 output-high;
104 };
105 };
106 };
107
108 &blsp_dma {
109 status = "okay";
110 };
111
112 &blsp1_spi1 {
113 status = "okay";
114
115 pinctrl-0 = <&spi_0_pins>;
116 pinctrl-names = "default";
117 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
118
119 flash@0 {
120 reg = <0>;
121 compatible = "jedec,spi-nor";
122 spi-max-frequency = <40000000>;
123
124 partitions {
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
127 #size-cells = <1>;
128
129 partition@0 {
130 label = "Qualcomm";
131 reg = <0x0 0x80000>;
132 read-only;
133 };
134
135 partition@80000 {
136 compatible = "mikrotik,routerboot-partitions";
137 #address-cells = <1>;
138 #size-cells = <1>;
139 label = "RouterBoot";
140 reg = <0x80000 0x80000>;
141
142 hard_config {
143 read-only;
144 size = <0x2000>;
145 };
146
147 dtb_config {
148 read-only;
149 };
150
151 soft_config {
152 };
153 };
154
155 partition@100000 {
156 compatible = "mikrotik,minor";
157 label = "firmware";
158 reg = <0x100000 0xf00000>;
159 };
160 };
161 };
162 };
163
164 &blsp1_uart1 {
165 status = "okay";
166
167 pinctrl-0 = <&serial_pins>;
168 pinctrl-names = "default";
169 };
170
171 &cryptobam {
172 status = "okay";
173 };
174
175 &crypto {
176 status = "okay";
177 };
178
179 &watchdog {
180 status = "okay";
181 };
182
183 &mdio {
184 status = "okay";
185 };
186
187 &gmac {
188 status = "okay";
189 };
190
191 &switch {
192 status = "okay";
193 };
194
195 &swport4 {
196 status = "okay";
197 label = "sw-eth2";
198 };
199
200 &swport5 {
201 status = "okay";
202 label = "sw-eth1";
203 };
204
205 &wifi0 {
206 status = "okay";
207
208 qcom,ath10k-calibration-variant = "MikroTik-wAP-ac";
209 };
210
211 &wifi1 {
212 status = "okay";
213
214 qcom,ath10k-calibration-variant = "MikroTik-wAP-ac";
215 };