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";
28 compatible = "qcom,qca-gcnt";
33 compatible = "qcom,tcsr";
34 reg = <0x1949000 0x100>;
35 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
39 compatible = "qcom,tcsr";
40 reg = <0x1953000 0x1000>;
41 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
45 compatible = "qcom,tcsr";
46 reg = <0x1957000 0x100>;
47 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
52 compatible = "gpio-keys";
56 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
62 compatible = "spi-gpio";
66 sck-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
67 mosi-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
68 num-chipselects = <0>;
71 compatible = "fairchild,74hc595";
75 registers-number = <1>;
76 spi-max-frequency = <1000000>;
81 compatible = "gpio-leds";
83 led_power_amber: led-0 {
84 color = <LED_COLOR_ID_AMBER>;
85 function = LED_FUNCTION_POWER;
86 gpios = <&ssr 6 GPIO_ACTIVE_LOW>;
90 led_power_green: led-1 {
91 color = <LED_COLOR_ID_GREEN>;
92 function = LED_FUNCTION_POWER;
93 gpios = <&ssr 5 GPIO_ACTIVE_LOW>;
97 /* 2.4GHz blue - activity */
98 color = <LED_COLOR_ID_BLUE>;
99 function = LED_FUNCTION_WLAN;
100 function-enumerator = <0>;
101 gpios = <&ssr 4 GPIO_ACTIVE_LOW>;
102 linux,default-trigger = "phy0tpt";
106 /* 2.4GHz green - link */
107 color = <LED_COLOR_ID_GREEN>;
108 function = LED_FUNCTION_WLAN;
109 function-enumerator = <0>;
110 gpios = <&ssr 3 GPIO_ACTIVE_LOW>;
111 linux,default-trigger = "phy0radio";
115 /* 5GHz blue - activity */
116 color = <LED_COLOR_ID_BLUE>;
117 function = LED_FUNCTION_WLAN;
118 function-enumerator = <1>;
119 gpios = <&ssr 2 GPIO_ACTIVE_LOW>;
120 linux,default-trigger = "phy1tpt";
124 /* 5GHz green - link */
125 color = <LED_COLOR_ID_GREEN>;
126 function = LED_FUNCTION_WLAN;
127 function-enumerator = <1>;
128 gpios = <&ssr 1 GPIO_ACTIVE_LOW>;
129 linux,default-trigger = "phy1radio";
133 color = <LED_COLOR_ID_GREEN>;
134 function = LED_FUNCTION_ACTIVITY;
135 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";