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 color = <LED_COLOR_ID_AMBER>;
97 function = LED_FUNCTION_POWER;
98 gpios = <&ssr 6 GPIO_ACTIVE_LOW>;
102 led_power_green: led-1 {
103 color = <LED_COLOR_ID_GREEN>;
104 function = LED_FUNCTION_POWER;
105 gpios = <&ssr 5 GPIO_ACTIVE_LOW>;
109 /* 2.4GHz blue - activity */
110 color = <LED_COLOR_ID_BLUE>;
111 function = LED_FUNCTION_WLAN;
112 function-enumerator = <0>;
113 gpios = <&ssr 4 GPIO_ACTIVE_LOW>;
114 linux,default-trigger = "phy0tpt";
118 /* 2.4GHz green - link */
119 color = <LED_COLOR_ID_GREEN>;
120 function = LED_FUNCTION_WLAN;
121 function-enumerator = <0>;
122 gpios = <&ssr 3 GPIO_ACTIVE_LOW>;
123 linux,default-trigger = "phy0radio";
127 /* 5GHz blue - activity */
128 color = <LED_COLOR_ID_BLUE>;
129 function = LED_FUNCTION_WLAN;
130 function-enumerator = <1>;
131 gpios = <&ssr 2 GPIO_ACTIVE_LOW>;
132 linux,default-trigger = "phy1tpt";
136 /* 5GHz green - link */
137 color = <LED_COLOR_ID_GREEN>;
138 function = LED_FUNCTION_WLAN;
139 function-enumerator = <1>;
140 gpios = <&ssr 1 GPIO_ACTIVE_LOW>;
141 linux,default-trigger = "phy1radio";
145 color = <LED_COLOR_ID_GREEN>;
146 function = LED_FUNCTION_ACTIVITY;
147 gpios = <&ssr 0 GPIO_ACTIVE_LOW>;
157 mdio_pins: mdio_pinmux {
171 serial_pins: serial_pinmux {
173 pins = "gpio60", "gpio61";
174 function = "blsp_uart0";
179 spi_0_pins: spi_0_pinmux {
181 function = "blsp_spi0";
182 pins = "gpio55", "gpio56", "gpio57";
183 drive-strength = <12>;
189 pins = "gpio54", "gpio59";
190 drive-strength = <2>;
204 pinctrl-0 = <&spi_0_pins>;
205 pinctrl-names = "default";
206 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
207 <&tlmm 59 GPIO_ACTIVE_HIGH>;
210 compatible = "jedec,spi-nor";
211 spi-max-frequency = <50000000>;
215 compatible = "fixed-partitions";
216 #address-cells = <1>;
221 reg = <0x00000000 0x00040000>;
227 reg = <0x00040000 0x00020000>;
233 reg = <0x00060000 0x00060000>;
239 reg = <0x000c0000 0x00010000>;
244 label = "0:DDRPARAMS";
245 reg = <0x000d0000 0x00010000>;
250 label = "0:APPSBLENV";
251 reg = <0x000e0000 0x00010000>;
256 reg = <0x000f0000 0x000f0000>;
261 label = "0:MANUDATA";
262 reg = <0x001e0000 0x00010000>;
266 compatible = "fixed-layout";
267 #address-cells = <1>;
270 macaddr_manudata_6: macaddr@6 {
271 compatible = "mac-base";
273 #nvmem-cell-cells = <1>;
280 reg = <0x001f0000 0x00010000>;
284 compatible = "fixed-layout";
285 #address-cells = <1>;
288 precal_art_1000: precal@1000 {
289 reg = <0x1000 0x2f20>;
292 precal_art_5000: precal@5000 {
293 reg = <0x5000 0x2f20>;
301 compatible = "spi-nand";
303 spi-max-frequency = <48000000>;
306 compatible = "fixed-partitions";
307 #address-cells = <1>;
312 reg = <0x00000000 0x03800000>;
317 reg = <0x03800000 0x03800000>;
321 label = "var_config";
322 reg = <0x07000000 0x00f00000>;
328 reg = <0x07f00000 0x000c0000>;
338 pinctrl-0 = <&serial_pins>;
339 pinctrl-names = "default";
367 pinctrl-0 = <&mdio_pins>;
368 pinctrl-names = "default";
369 reset-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
370 reset-delay-us = <2000>;
375 nvmem-cell-names = "pre-calibration", "mac-address";
376 nvmem-cells = <&precal_art_1000>, <&macaddr_manudata_6 0>;
377 qcom,ath10k-calibration-variant = "Netgear-WAC510";
382 nvmem-cell-names = "pre-calibration", "mac-address";
383 nvmem-cells = <&precal_art_5000>, <&macaddr_manudata_6 16>;
384 qcom,ath10k-calibration-variant = "Netgear-WAC510";