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 */
30 pinctrl-0 = <&mdio_pins>;
31 pinctrl-names = "default";
35 compatible = "qcom,tcsr";
36 reg = <0x1949000 0x100>;
37 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
42 compatible = "qcom,tcsr";
43 reg = <0x194b000 0x100>;
44 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 compatible = "qcom,tcsr";
50 reg = <0x1953000 0x1000>;
51 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
55 compatible = "qcom,tcsr";
56 reg = <0x1957000 0x100>;
57 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
69 #trigger-source-cells = <0>;
75 pinctrl-0 = <&serial_0_pins>;
76 pinctrl-names = "default";
81 pinctrl-0 = <&serial_1_pins>;
82 pinctrl-names = "default";
86 i2c@78b7000 { /* BLSP1 QUP2 */
87 pinctrl-0 = <&i2c_0_pins>;
88 pinctrl-names = "default";
102 #trigger-source-cells = <0>;
107 #trigger-source-cells = <0>;
121 compatible = "gpio-leds";
124 label = "green:wlan0";
125 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
129 label = "green:wlan1";
130 gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
134 function = LED_FUNCTION_USB;
135 color = <LED_COLOR_ID_GREEN>;
136 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
137 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
138 linux,default-trigger = "usbport";
142 label = "green:ctrl1";
143 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
147 label = "green:ctrl2";
148 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
152 label = "green:ctrl3";
153 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
158 compatible = "gpio-keys";
162 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
163 linux,code = <KEY_RESTART>;
182 i2c_0_pins: i2c-0-pinmux {
184 pins = "gpio20", "gpio21";
185 function = "blsp_i2c0";
190 mdio_pins: mdio_pinmux {
203 serial_0_pins: serial0-pinmux {
205 pins = "gpio16", "gpio17";
206 function = "blsp_uart0";
211 serial_1_pins: serial1_pinmux {
213 pins = "gpio8", "gpio9";
214 function = "blsp_uart1";
219 spi_0_pins: spi_0_pinmux {
221 function = "blsp_spi0";
222 pins = "gpio13", "gpio14", "gpio15";
223 drive-strength = <12>;
229 drive-strength = <2>;