1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2020, Robert Marko <robimarko@gmail.com> */
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 #include <dt-bindings/leds/common.h>
11 model = "Netgear WAC510";
12 compatible = "netgear,wac510";
15 led-boot = &led_power_amber;
16 led-failsafe = &led_power_amber;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_amber;
23 bootargs-append = " root=/dev/ubiblock0_1";
32 compatible = "qcom,qca-gcnt";
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
64 compatible = "gpio-keys";
68 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
74 compatible = "spi-gpio";
78 sck-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
79 mosi-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
80 num-chipselects = <0>;
83 compatible = "fairchild,74hc595";
87 registers-number = <1>;
88 spi-max-frequency = <1000000>;
93 compatible = "gpio-leds";
95 led_power_amber: led-0 {
96 label = "amber:power";
97 color = <LED_COLOR_ID_AMBER>;
98 function = LED_FUNCTION_POWER;
99 gpios = <&ssr 6 GPIO_ACTIVE_LOW>;
103 led_power_green: led-1 {
104 label = "green:power";
105 color = <LED_COLOR_ID_GREEN>;
106 function = LED_FUNCTION_POWER;
107 gpios = <&ssr 5 GPIO_ACTIVE_LOW>;
111 /* 2.4GHz blue - activity */
112 color = <LED_COLOR_ID_BLUE>;
113 function = LED_FUNCTION_WLAN;
114 function-enumerator = <0>;
115 gpios = <&ssr 4 GPIO_ACTIVE_LOW>;
116 linux,default-trigger = "phy0tpt";
120 /* 2.4GHz green - link */
121 color = <LED_COLOR_ID_GREEN>;
122 function = LED_FUNCTION_WLAN;
123 function-enumerator = <0>;
124 gpios = <&ssr 3 GPIO_ACTIVE_LOW>;
125 linux,default-trigger = "phy0radio";
129 /* 5GHz blue - activity */
130 color = <LED_COLOR_ID_BLUE>;
131 function = LED_FUNCTION_WLAN;
132 function-enumerator = <1>;
133 gpios = <&ssr 2 GPIO_ACTIVE_LOW>;
134 linux,default-trigger = "phy1tpt";
138 /* 5GHz green - link */
139 color = <LED_COLOR_ID_GREEN>;
140 function = LED_FUNCTION_WLAN;
141 function-enumerator = <1>;
142 gpios = <&ssr 1 GPIO_ACTIVE_LOW>;
143 linux,default-trigger = "phy1radio";
147 color = <LED_COLOR_ID_GREEN>;
148 function = LED_FUNCTION_ACTIVITY;
149 gpios = <&ssr 0 GPIO_ACTIVE_LOW>;
159 mdio_pins: mdio_pinmux {
173 serial_pins: serial_pinmux {
175 pins = "gpio60", "gpio61";
176 function = "blsp_uart0";
181 spi_0_pins: spi_0_pinmux {
183 function = "blsp_spi0";
184 pins = "gpio55", "gpio56", "gpio57";
185 drive-strength = <12>;
191 pins = "gpio54", "gpio59";
192 drive-strength = <2>;
206 pinctrl-0 = <&spi_0_pins>;
207 pinctrl-names = "default";
208 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
209 <&tlmm 59 GPIO_ACTIVE_HIGH>;
212 compatible = "jedec,spi-nor";
213 spi-max-frequency = <50000000>;
217 compatible = "fixed-partitions";
218 #address-cells = <1>;
223 reg = <0x00000000 0x00040000>;
229 reg = <0x00040000 0x00020000>;
235 reg = <0x00060000 0x00060000>;
241 reg = <0x000c0000 0x00010000>;
246 label = "0:DDRPARAMS";
247 reg = <0x000d0000 0x00010000>;
252 label = "0:APPSBLENV";
253 reg = <0x000e0000 0x00010000>;
258 reg = <0x000f0000 0x000f0000>;
263 label = "0:MANUDATA";
264 reg = <0x001e0000 0x00010000>;
266 compatible = "nvmem-cells";
267 #address-cells = <1>;
270 macaddr_manudata_6: macaddr@6 {
277 reg = <0x001f0000 0x00010000>;
279 compatible = "nvmem-cells";
280 #address-cells = <1>;
283 precal_art_1000: precal@1000 {
284 reg = <0x1000 0x2f20>;
287 precal_art_5000: precal@5000 {
288 reg = <0x5000 0x2f20>;
295 compatible = "spi-nand";
297 spi-max-frequency = <48000000>;
300 compatible = "fixed-partitions";
301 #address-cells = <1>;
306 reg = <0x00000000 0x03800000>;
311 reg = <0x03800000 0x03800000>;
315 label = "var_config";
316 reg = <0x07000000 0x00f00000>;
322 reg = <0x07f00000 0x000c0000>;
332 pinctrl-0 = <&serial_pins>;
333 pinctrl-names = "default";
361 pinctrl-0 = <&mdio_pins>;
362 pinctrl-names = "default";
363 reset-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
364 reset-delay-us = <2000>;
369 nvmem-cell-names = "pre-calibration", "mac-address";
370 nvmem-cells = <&precal_art_1000>, <&macaddr_manudata_6>;
371 qcom,ath10k-calibration-variant = "Netgear-WAC510";
376 nvmem-cell-names = "pre-calibration", "mac-address";
377 nvmem-cells = <&precal_art_5000>, <&macaddr_manudata_6>;
378 mac-address-increment = <16>;
379 qcom,ath10k-calibration-variant = "Netgear-WAC510";