1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2016, 2018 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2016 Google, Inc
7 #include "qcom-ipq4019.dtsi"
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/leds/common.h>
13 model = "Google WiFi (Gale)";
14 compatible = "google,wifi", "google,gale-v2", "qcom,ipq4019";
17 label-mac-device = &gmac0;
18 led-boot = &led0_blue;
19 led-failsafe = &led0_red;
20 led-running = &led0_blue;
21 led-upgrade = &led0_red;
26 * rootwait: in case we're booting from slow/async USB storage.
28 bootargs-append = " rootwait";
29 stdout-path = &blsp1_uart1;
33 device_type = "memory";
34 reg = <0x80000000 0x20000000>; /* 512MB */
40 * Factory bootloader (depthcharge) will fail to boot
41 * if this exact path (soc/edma@c080000/gmac0) doesn't
48 * Factory bootloader (depthcharge) will fail to boot
49 * if this exact path (soc/edma@c080000/gmac1) doesn't
58 compatible = "gpio-keys";
59 pinctrl-0 = <&fw_pinmux>;
60 pinctrl-names = "default";
64 gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
75 fw_pinmux: fw_pinmux {
110 spi_0_pins: spi_0_pinmux {
112 function = "blsp_spi0";
113 pins = "gpio13", "gpio14","gpio15";
120 pins = "gpio13", "gpio14","gpio15";
121 drive-strength = <12>;
126 drive-strength = <2>;
132 spi_1_pins: spi_1_pinmux {
134 function = "blsp_spi1";
135 pins = "gpio44", "gpio46","gpio47";
142 pins = "gpio44", "gpio46","gpio47";
143 drive-strength = <12>;
148 drive-strength = <2>;
154 serial_0_pins: serial0_pinmux {
156 pins = "gpio16", "gpio17";
157 function = "blsp_uart0";
162 serial_1_pins: serial1_pinmux {
164 pins = "gpio8", "gpio9", "gpio10", "gpio11";
165 function = "blsp_uart1";
170 i2c_0_pins: i2c_0_pinmux {
172 pins = "gpio20", "gpio21";
173 function = "blsp_i2c0";
178 i2c_1_pins: i2c_1_pinmux {
180 pins = "gpio34", "gpio35";
181 function = "blsp_i2c1";
186 sd_0_pins: sd_0_pinmux {
188 pins = "gpio23", "gpio24", "gpio25", "gpio26", "gpio29", "gpio30", "gpio31", "gpio32";
190 drive-strength = <10>;
197 drive-strength = <2>;
204 drive-strength = <10>;
210 mdio_pins: mdio_pinmux {
229 wifi1_1_pins: wifi2_pinmux {
242 pinctrl-0 = <&i2c_0_pins>;
243 pinctrl-names = "default";
247 compatible = "infineon,slb9645tt";
249 powered-while-suspended;
254 pinctrl-0 = <&i2c_1_pins>;
255 pinctrl-names = "default";
259 #address-cells = <1>;
261 compatible = "national,lp5523";
263 clock-mode = /bits/ 8 <1>;
268 chan-name = "LED0_Red";
269 led-cur = /bits/ 8 <0x64>;
270 max-cur = /bits/ 8 <0x78>;
271 color = <LED_COLOR_ID_RED>;
272 function = LED_FUNCTION_FAULT;
277 chan-name = "LED0_Green";
278 led-cur = /bits/ 8 <0x64>;
279 max-cur = /bits/ 8 <0x78>;
280 color = <LED_COLOR_ID_GREEN>;
285 chan-name = "LED0_Blue";
286 led-cur = /bits/ 8 <0x64>;
287 max-cur = /bits/ 8 <0x78>;
288 color = <LED_COLOR_ID_BLUE>;
289 function = LED_FUNCTION_POWER;
293 * openwrt isn't ready to handle multi-intensity leds yet
294 * # echo 255 255 255 > /sys/class/leds/tricolor/multi_intensity
295 * # echo 255 > /sys/class/leds/tricolor/brightness
298 function = LED_FUNCTION_POWER;
300 color = <LED_COLOR_ID_RGB>;
301 #address-cells = <1>;
306 chan-name = "tricolor";
307 led-cur = /bits/ 8 <0x64>;
308 max-cur = /bits/ 8 <0x78>;
309 color = <LED_COLOR_ID_RED>;
314 chan-name = "tricolor";
315 led-cur = /bits/ 8 <0x64>;
316 max-cur = /bits/ 8 <0x78>;
317 color = <LED_COLOR_ID_GREEN>;
322 chan-name = "tricolor";
323 led-cur = /bits/ 8 <0x64>;
324 max-cur = /bits/ 8 <0x78>;
325 color = <LED_COLOR_ID_BLUE>;
333 pinctrl-0 = <&spi_0_pins>;
334 pinctrl-names = "default";
336 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
339 compatible = "jedec,spi-nor";
341 spi-max-frequency = <24000000>;
346 pinctrl-0 = <&spi_1_pins>;
347 pinctrl-names = "default";
349 cs-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
352 * This "spidev" was included in the manufacturer device tree. I
353 * suspect it's the (unused; and removed from later HW spins) Zigbee
354 * radio -- SiliconLabs EM3581 Zigbee? There's no driver or binding for
355 * this at the moment.
358 compatible = "spidev";
360 spi-max-frequency = <24000000>;
365 pinctrl-0 = <&serial_0_pins>;
366 pinctrl-names = "default";
371 pinctrl-0 = <&serial_1_pins>;
372 pinctrl-names = "default";
382 pinctrl-0 = <&mdio_pins>;
383 pinctrl-names = "default";
392 pinctrl-0 = <&sd_0_pins>;
393 pinctrl-names = "default";
394 clock-frequency = <192000000>;
395 vqmmc-supply = <&vqmmc>;
443 qcom,ath10k-calibration-variant = "GO_GALE";
448 pinctrl-0 = <&wifi1_1_pins>;
449 pinctrl-names = "default";
450 qcom,ath10k-calibration-variant = "GO_GALE";