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>;
71 fw_pinmux: fw_pinmux {
106 spi_0_pins: spi_0_pinmux {
108 function = "blsp_spi0";
109 pins = "gpio13", "gpio14","gpio15";
116 pins = "gpio13", "gpio14","gpio15";
117 drive-strength = <12>;
122 drive-strength = <2>;
128 spi_1_pins: spi_1_pinmux {
130 function = "blsp_spi1";
131 pins = "gpio44", "gpio46","gpio47";
138 pins = "gpio44", "gpio46","gpio47";
139 drive-strength = <12>;
144 drive-strength = <2>;
150 serial_0_pins: serial0_pinmux {
152 pins = "gpio16", "gpio17";
153 function = "blsp_uart0";
158 serial_1_pins: serial1_pinmux {
160 pins = "gpio8", "gpio9", "gpio10", "gpio11";
161 function = "blsp_uart1";
166 i2c_0_pins: i2c_0_pinmux {
168 pins = "gpio20", "gpio21";
169 function = "blsp_i2c0";
174 i2c_1_pins: i2c_1_pinmux {
176 pins = "gpio34", "gpio35";
177 function = "blsp_i2c1";
182 sd_0_pins: sd_0_pinmux {
184 pins = "gpio23", "gpio24", "gpio25", "gpio26", "gpio29", "gpio30", "gpio31", "gpio32";
186 drive-strength = <10>;
193 drive-strength = <2>;
200 drive-strength = <10>;
206 mdio_pins: mdio_pinmux {
225 wifi1_1_pins: wifi2_pinmux {
238 pinctrl-0 = <&i2c_0_pins>;
239 pinctrl-names = "default";
243 compatible = "infineon,slb9645tt";
245 powered-while-suspended;
250 pinctrl-0 = <&i2c_1_pins>;
251 pinctrl-names = "default";
255 #address-cells = <1>;
257 compatible = "national,lp5523";
259 clock-mode = /bits/ 8 <1>;
264 chan-name = "LED0_Red";
265 led-cur = /bits/ 8 <0x64>;
266 max-cur = /bits/ 8 <0x78>;
267 color = <LED_COLOR_ID_RED>;
268 function = LED_FUNCTION_FAULT;
273 chan-name = "LED0_Green";
274 led-cur = /bits/ 8 <0x64>;
275 max-cur = /bits/ 8 <0x78>;
276 color = <LED_COLOR_ID_GREEN>;
281 chan-name = "LED0_Blue";
282 led-cur = /bits/ 8 <0x64>;
283 max-cur = /bits/ 8 <0x78>;
284 color = <LED_COLOR_ID_BLUE>;
285 function = LED_FUNCTION_POWER;
289 * openwrt isn't ready to handle multi-intensity leds yet
290 * # echo 255 255 255 > /sys/class/leds/tricolor/multi_intensity
291 * # echo 255 > /sys/class/leds/tricolor/brightness
294 function = LED_FUNCTION_POWER;
296 color = <LED_COLOR_ID_RGB>;
297 #address-cells = <1>;
302 chan-name = "tricolor";
303 led-cur = /bits/ 8 <0x64>;
304 max-cur = /bits/ 8 <0x78>;
305 color = <LED_COLOR_ID_RED>;
310 chan-name = "tricolor";
311 led-cur = /bits/ 8 <0x64>;
312 max-cur = /bits/ 8 <0x78>;
313 color = <LED_COLOR_ID_GREEN>;
318 chan-name = "tricolor";
319 led-cur = /bits/ 8 <0x64>;
320 max-cur = /bits/ 8 <0x78>;
321 color = <LED_COLOR_ID_BLUE>;
329 pinctrl-0 = <&spi_0_pins>;
330 pinctrl-names = "default";
332 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
335 compatible = "jedec,spi-nor";
337 spi-max-frequency = <24000000>;
342 pinctrl-0 = <&spi_1_pins>;
343 pinctrl-names = "default";
345 cs-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
348 * This "spidev" was included in the manufacturer device tree. I
349 * suspect it's the (unused; and removed from later HW spins) Zigbee
350 * radio -- SiliconLabs EM3581 Zigbee? There's no driver or binding for
351 * this at the moment.
354 compatible = "spidev";
356 spi-max-frequency = <24000000>;
361 pinctrl-0 = <&serial_0_pins>;
362 pinctrl-names = "default";
367 pinctrl-0 = <&serial_1_pins>;
368 pinctrl-names = "default";
378 pinctrl-0 = <&mdio_pins>;
379 pinctrl-names = "default";
388 pinctrl-0 = <&sd_0_pins>;
389 pinctrl-names = "default";
390 clock-frequency = <192000000>;
391 vqmmc-supply = <&vqmmc>;
439 qcom,ath10k-calibration-variant = "GO_GALE";
444 pinctrl-0 = <&wifi1_1_pins>;
445 pinctrl-names = "default";
446 qcom,ath10k-calibration-variant = "GO_GALE";