1 /* SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (c) 2018 Peng Zhang <sd20@qxwlan.com>
7 #include "qcom-ipq4019.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/soc/qcom,tcsr.h>
15 model = "Qxwlan E2600AC";
16 compatible = "qcom,ipq4019";
19 device_type = "memory";
20 reg = <0x80000000 0x10000000>; /* 256MB */
25 compatible = "qcom,tcsr";
26 reg = <0x1949000 0x100>;
27 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
32 compatible = "qcom,tcsr";
33 reg = <0x194b000 0x100>;
34 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
39 compatible = "qcom,tcsr";
40 reg = <0x1953000 0x1000>;
41 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
45 compatible = "qcom,tcsr";
46 reg = <0x1957000 0x100>;
47 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
51 compatible = "gpio-leds";
54 label = "green:wlan0";
55 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
59 label = "green:wlan1";
60 gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
64 function = LED_FUNCTION_USB;
65 color = <LED_COLOR_ID_GREEN>;
66 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
67 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
68 linux,default-trigger = "usbport";
72 label = "green:ctrl1";
73 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
77 label = "green:ctrl2";
78 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
82 label = "green:ctrl3";
83 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
88 compatible = "gpio-keys";
92 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_RESTART>;
124 i2c_0_pins: i2c-0-pinmux {
126 pins = "gpio20", "gpio21";
127 function = "blsp_i2c0";
132 mdio_pins: mdio_pinmux {
145 serial_0_pins: serial0-pinmux {
147 pins = "gpio16", "gpio17";
148 function = "blsp_uart0";
153 serial_1_pins: serial1_pinmux {
155 pins = "gpio8", "gpio9";
156 function = "blsp_uart1";
161 spi_0_pins: spi_0_pinmux {
163 function = "blsp_spi0";
164 pins = "gpio13", "gpio14", "gpio15";
165 drive-strength = <12>;
171 drive-strength = <2>;
179 pinctrl-0 = <&serial_0_pins>;
180 pinctrl-names = "default";
185 pinctrl-0 = <&serial_1_pins>;
186 pinctrl-names = "default";
190 &blsp1_i2c3 { /* BLSP1 QUP2 */
191 pinctrl-0 = <&i2c_0_pins>;
192 pinctrl-names = "default";
201 #address-cells = <1>;
206 #trigger-source-cells = <0>;
211 #trigger-source-cells = <0>;
227 #address-cells = <1>;
232 #trigger-source-cells = <0>;
243 pinctrl-0 = <&mdio_pins>;
244 pinctrl-names = "default";