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;
22 bootargs-append = " root=/dev/ubiblock0_1";
31 compatible = "qcom,qca-gcnt";
36 compatible = "qcom,tcsr";
37 reg = <0x1949000 0x100>;
38 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
42 compatible = "qcom,tcsr";
43 reg = <0x1953000 0x1000>;
44 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
48 compatible = "qcom,tcsr";
49 reg = <0x1957000 0x100>;
50 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
63 compatible = "gpio-keys";
67 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
73 compatible = "spi-gpio";
77 sck-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
78 mosi-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
79 num-chipselects = <0>;
82 compatible = "fairchild,74hc595";
86 registers-number = <1>;
87 spi-max-frequency = <1000000>;
92 compatible = "gpio-leds";
94 led_power_amber: led-0 {
95 label = "amber:power";
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 label = "green:power";
104 color = <LED_COLOR_ID_GREEN>;
105 function = LED_FUNCTION_POWER;
106 gpios = <&ssr 5 GPIO_ACTIVE_LOW>;
110 /* 2.4GHz blue - activity */
111 color = <LED_COLOR_ID_BLUE>;
112 function = LED_FUNCTION_WLAN;
113 function-enumerator = <0>;
114 gpios = <&ssr 4 GPIO_ACTIVE_LOW>;
115 linux,default-trigger = "phy0tpt";
119 /* 2.4GHz green - link */
120 color = <LED_COLOR_ID_GREEN>;
121 function = LED_FUNCTION_WLAN;
122 function-enumerator = <0>;
123 gpios = <&ssr 3 GPIO_ACTIVE_LOW>;
124 linux,default-trigger = "phy0radio";
128 /* 5GHz blue - activity */
129 color = <LED_COLOR_ID_BLUE>;
130 function = LED_FUNCTION_WLAN;
131 function-enumerator = <1>;
132 gpios = <&ssr 2 GPIO_ACTIVE_LOW>;
133 linux,default-trigger = "phy1tpt";
137 /* 5GHz green - link */
138 color = <LED_COLOR_ID_GREEN>;
139 function = LED_FUNCTION_WLAN;
140 function-enumerator = <1>;
141 gpios = <&ssr 1 GPIO_ACTIVE_LOW>;
142 linux,default-trigger = "phy1radio";
146 color = <LED_COLOR_ID_GREEN>;
147 function = LED_FUNCTION_ACTIVITY;
148 gpios = <&ssr 0 GPIO_ACTIVE_LOW>;
158 mdio_pins: mdio_pinmux {
172 serial_pins: serial_pinmux {
174 pins = "gpio60", "gpio61";
175 function = "blsp_uart0";
180 spi_0_pins: spi_0_pinmux {
182 function = "blsp_spi0";
183 pins = "gpio55", "gpio56", "gpio57";
184 drive-strength = <12>;
190 pins = "gpio54", "gpio59";
191 drive-strength = <2>;
205 pinctrl-0 = <&spi_0_pins>;
206 pinctrl-names = "default";
207 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
208 <&tlmm 59 GPIO_ACTIVE_HIGH>;
211 compatible = "jedec,spi-nor";
212 spi-max-frequency = <50000000>;
216 compatible = "fixed-partitions";
217 #address-cells = <1>;
222 reg = <0x00000000 0x00040000>;
228 reg = <0x00040000 0x00020000>;
234 reg = <0x00060000 0x00060000>;
240 reg = <0x000c0000 0x00010000>;
245 label = "0:DDRPARAMS";
246 reg = <0x000d0000 0x00010000>;
251 label = "0:APPSBLENV";
252 reg = <0x000e0000 0x00010000>;
257 reg = <0x000f0000 0x000f0000>;
262 label = "0:MANUDATA";
263 reg = <0x001e0000 0x00010000>;
265 compatible = "nvmem-cells";
266 #address-cells = <1>;
269 macaddr_manudata_6: macaddr@6 {
276 reg = <0x001f0000 0x00010000>;
278 compatible = "nvmem-cells";
279 #address-cells = <1>;
282 precal_art_1000: precal@1000 {
283 reg = <0x1000 0x2f20>;
286 precal_art_5000: precal@5000 {
287 reg = <0x5000 0x2f20>;
294 compatible = "spi-nand";
296 spi-max-frequency = <48000000>;
299 compatible = "fixed-partitions";
300 #address-cells = <1>;
305 reg = <0x00000000 0x03800000>;
310 reg = <0x03800000 0x03800000>;
314 label = "var_config";
315 reg = <0x07000000 0x00f00000>;
321 reg = <0x07f00000 0x000c0000>;
331 pinctrl-0 = <&serial_pins>;
332 pinctrl-names = "default";
342 pinctrl-0 = <&mdio_pins>;
343 pinctrl-names = "default";
344 reset-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
345 reset-delay-us = <2000>;
350 nvmem-cell-names = "pre-calibration", "mac-address";
351 nvmem-cells = <&precal_art_1000>, <&macaddr_manudata_6>;
352 qcom,ath10k-calibration-variant = "Netgear-WAC510";
357 nvmem-cell-names = "pre-calibration", "mac-address";
358 nvmem-cells = <&precal_art_5000>, <&macaddr_manudata_6>;
359 mac-address-increment = <16>;
360 qcom,ath10k-calibration-variant = "Netgear-WAC510";