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>
10 model = "Netgear WAC510";
11 compatible = "netgear,wac510";
14 led-boot = &led_power_amber;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
18 label-mac-device = &gmac0;
22 bootargs-append = " root=/dev/ubiblock0_1";
35 compatible = "qcom,qca-gcnt";
40 compatible = "qcom,tcsr";
41 reg = <0x1949000 0x100>;
42 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
48 compatible = "qcom,tcsr";
49 reg = <0x194b000 0x100>;
50 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
54 compatible = "qcom,tcsr";
55 reg = <0x1953000 0x1000>;
56 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
60 compatible = "qcom,tcsr";
61 reg = <0x1957000 0x100>;
62 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
91 compatible = "gpio-keys";
95 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART>;
101 compatible = "spi-gpio";
102 #address-cells = <1>;
105 sck-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
106 mosi-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
107 num-chipselects = <0>;
110 compatible = "fairchild,74hc595";
114 registers-number = <1>;
115 spi-max-frequency = <1000000>;
120 compatible = "gpio-leds";
122 led_power_amber: power_amber {
123 label = "amber:power";
124 gpios = <&ssr 6 GPIO_ACTIVE_LOW>;
128 led_power_green: power_green {
129 label = "green:power";
130 gpios = <&ssr 5 GPIO_ACTIVE_LOW>;
134 label = "blue:wlan2g";
135 gpios = <&ssr 4 GPIO_ACTIVE_LOW>;
136 linux,default-trigger = "phy0tpt";
140 label = "green:wlan2g";
141 gpios = <&ssr 3 GPIO_ACTIVE_LOW>;
142 linux,default-trigger = "phy0radio";
146 label = "blue:wlan5g";
147 gpios = <&ssr 2 GPIO_ACTIVE_LOW>;
148 linux,default-trigger = "phy1tpt";
152 label = "green:wlan5g";
153 gpios = <&ssr 1 GPIO_ACTIVE_LOW>;
154 linux,default-trigger = "phy1radio";
159 gpios = <&ssr 0 GPIO_ACTIVE_LOW>;
169 mdio_pins: mdio_pinmux {
183 serial_pins: serial_pinmux {
185 pins = "gpio60", "gpio61";
186 function = "blsp_uart0";
191 spi_0_pins: spi_0_pinmux {
193 function = "blsp_spi0";
194 pins = "gpio55", "gpio56", "gpio57";
195 drive-strength = <12>;
201 pins = "gpio54", "gpio59";
202 drive-strength = <2>;
216 pinctrl-0 = <&spi_0_pins>;
217 pinctrl-names = "default";
218 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
219 <&tlmm 59 GPIO_ACTIVE_HIGH>;
222 compatible = "jedec,spi-nor";
223 spi-max-frequency = <50000000>;
227 compatible = "fixed-partitions";
228 #address-cells = <1>;
233 reg = <0x00000000 0x00040000>;
239 reg = <0x00040000 0x00020000>;
245 reg = <0x00060000 0x00060000>;
251 reg = <0x000c0000 0x00010000>;
256 label = "0:DDRPARAMS";
257 reg = <0x000d0000 0x00010000>;
262 label = "0:APPSBLENV";
263 reg = <0x000e0000 0x00010000>;
268 reg = <0x000f0000 0x000f0000>;
273 label = "0:MANUDATA";
274 reg = <0x001e0000 0x00010000>;
280 reg = <0x001f0000 0x00010000>;
287 compatible = "spi-nand";
289 spi-max-frequency = <48000000>;
292 compatible = "fixed-partitions";
293 #address-cells = <1>;
298 reg = <0x00000000 0x03800000>;
303 reg = <0x03800000 0x03800000>;
307 label = "var_config";
308 reg = <0x07000000 0x00f00000>;
314 reg = <0x07f00000 0x000c0000>;
324 pinctrl-0 = <&serial_pins>;
325 pinctrl-names = "default";
335 pinctrl-0 = <&mdio_pins>;
336 pinctrl-names = "default";
337 reset-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
338 reset-delay-us = <2000>;
342 qcom,forced_duplex = <1>;
343 qcom,forced_speed = <1000>;
344 qcom,phy_mdio_addr = <3>;
345 qcom,poll_required = <1>;
352 qcom,ath10k-calibration-variant = "Netgear-WAC510";
358 qcom,ath10k-calibration-variant = "Netgear-WAC510";