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;
19 label-mac-device = &gmac0;
23 bootargs-append = " root=/dev/ubiblock0_1";
36 compatible = "qcom,qca-gcnt";
41 compatible = "qcom,tcsr";
42 reg = <0x1949000 0x100>;
43 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
47 compatible = "qcom,tcsr";
48 reg = <0x1953000 0x1000>;
49 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
53 compatible = "qcom,tcsr";
54 reg = <0x1957000 0x100>;
55 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
76 compatible = "gpio-keys";
80 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_RESTART>;
86 compatible = "spi-gpio";
90 sck-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
91 mosi-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
92 num-chipselects = <0>;
95 compatible = "fairchild,74hc595";
99 registers-number = <1>;
100 spi-max-frequency = <1000000>;
105 compatible = "gpio-leds";
107 led_power_amber: led-0 {
108 label = "amber:power";
109 color = <LED_COLOR_ID_AMBER>;
110 function = LED_FUNCTION_POWER;
111 gpios = <&ssr 6 GPIO_ACTIVE_LOW>;
115 led_power_green: led-1 {
116 label = "green:power";
117 color = <LED_COLOR_ID_AMBER>;
118 function = LED_FUNCTION_POWER;
119 gpios = <&ssr 5 GPIO_ACTIVE_LOW>;
123 /* 2.4GHz blue - activity */
124 color = <LED_COLOR_ID_BLUE>;
125 function = LED_FUNCTION_WLAN;
126 function-enumerator = <0>;
127 gpios = <&ssr 4 GPIO_ACTIVE_LOW>;
128 linux,default-trigger = "phy0tpt";
132 /* 2.4GHz green - link */
133 color = <LED_COLOR_ID_GREEN>;
134 function = LED_FUNCTION_WLAN;
135 function-enumerator = <0>;
136 gpios = <&ssr 3 GPIO_ACTIVE_LOW>;
137 linux,default-trigger = "phy0radio";
141 /* 5GHz blue - activity */
142 color = <LED_COLOR_ID_BLUE>;
143 function = LED_FUNCTION_WLAN;
144 function-enumerator = <1>;
145 gpios = <&ssr 2 GPIO_ACTIVE_LOW>;
146 linux,default-trigger = "phy1tpt";
150 /* 5GHz green - link */
151 color = <LED_COLOR_ID_GREEN>;
152 function = LED_FUNCTION_WLAN;
153 function-enumerator = <1>;
154 gpios = <&ssr 1 GPIO_ACTIVE_LOW>;
155 linux,default-trigger = "phy1radio";
159 color = <LED_COLOR_ID_GREEN>;
160 function = LED_FUNCTION_ACTIVITY;
161 gpios = <&ssr 0 GPIO_ACTIVE_LOW>;
171 mdio_pins: mdio_pinmux {
185 serial_pins: serial_pinmux {
187 pins = "gpio60", "gpio61";
188 function = "blsp_uart0";
193 spi_0_pins: spi_0_pinmux {
195 function = "blsp_spi0";
196 pins = "gpio55", "gpio56", "gpio57";
197 drive-strength = <12>;
203 pins = "gpio54", "gpio59";
204 drive-strength = <2>;
218 pinctrl-0 = <&spi_0_pins>;
219 pinctrl-names = "default";
220 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
221 <&tlmm 59 GPIO_ACTIVE_HIGH>;
224 compatible = "jedec,spi-nor";
225 spi-max-frequency = <50000000>;
229 compatible = "fixed-partitions";
230 #address-cells = <1>;
235 reg = <0x00000000 0x00040000>;
241 reg = <0x00040000 0x00020000>;
247 reg = <0x00060000 0x00060000>;
253 reg = <0x000c0000 0x00010000>;
258 label = "0:DDRPARAMS";
259 reg = <0x000d0000 0x00010000>;
264 label = "0:APPSBLENV";
265 reg = <0x000e0000 0x00010000>;
270 reg = <0x000f0000 0x000f0000>;
275 label = "0:MANUDATA";
276 reg = <0x001e0000 0x00010000>;
278 compatible = "nvmem-cells";
279 #address-cells = <1>;
282 macaddr_manudata_6: macaddr@6 {
289 reg = <0x001f0000 0x00010000>;
291 compatible = "nvmem-cells";
292 #address-cells = <1>;
295 precal_art_1000: precal@1000 {
296 reg = <0x1000 0x2f20>;
299 precal_art_5000: precal@5000 {
300 reg = <0x5000 0x2f20>;
307 compatible = "spi-nand";
309 spi-max-frequency = <48000000>;
312 compatible = "fixed-partitions";
313 #address-cells = <1>;
318 reg = <0x00000000 0x03800000>;
323 reg = <0x03800000 0x03800000>;
327 label = "var_config";
328 reg = <0x07000000 0x00f00000>;
334 reg = <0x07f00000 0x000c0000>;
344 pinctrl-0 = <&serial_pins>;
345 pinctrl-names = "default";
355 pinctrl-0 = <&mdio_pins>;
356 pinctrl-names = "default";
357 reset-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
358 reset-delay-us = <2000>;
362 qcom,forced_duplex = <1>;
363 qcom,forced_speed = <1000>;
364 qcom,phy_mdio_addr = <3>;
365 qcom,poll_required = <1>;
371 nvmem-cell-names = "pre-calibration", "mac-address";
372 nvmem-cells = <&precal_art_1000>, <&macaddr_manudata_6>;
373 qcom,ath10k-calibration-variant = "Netgear-WAC510";
378 nvmem-cell-names = "pre-calibration", "mac-address";
379 nvmem-cells = <&precal_art_5000>, <&macaddr_manudata_6>;
380 mac-address-increment = <16>;
381 qcom,ath10k-calibration-variant = "Netgear-WAC510";