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>;
61 pinctrl-0 = <&serial_0_pins>;
62 pinctrl-names = "default";
67 pinctrl-0 = <&serial_1_pins>;
68 pinctrl-names = "default";
72 i2c@78b7000 { /* BLSP1 QUP2 */
73 pinctrl-0 = <&i2c_0_pins>;
74 pinctrl-names = "default";
88 compatible = "gpio-leds";
91 label = "green:wlan0";
92 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
96 label = "green:wlan1";
97 gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
101 function = LED_FUNCTION_USB;
102 color = <LED_COLOR_ID_GREEN>;
103 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
104 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
105 linux,default-trigger = "usbport";
109 label = "green:ctrl1";
110 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
114 label = "green:ctrl2";
115 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
119 label = "green:ctrl3";
120 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
125 compatible = "gpio-keys";
129 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_RESTART>;
149 i2c_0_pins: i2c-0-pinmux {
151 pins = "gpio20", "gpio21";
152 function = "blsp_i2c0";
157 mdio_pins: mdio_pinmux {
170 serial_0_pins: serial0-pinmux {
172 pins = "gpio16", "gpio17";
173 function = "blsp_uart0";
178 serial_1_pins: serial1_pinmux {
180 pins = "gpio8", "gpio9";
181 function = "blsp_uart1";
186 spi_0_pins: spi_0_pinmux {
188 function = "blsp_spi0";
189 pins = "gpio13", "gpio14", "gpio15";
190 drive-strength = <12>;
196 drive-strength = <2>;
207 #address-cells = <1>;
212 #trigger-source-cells = <0>;
217 #trigger-source-cells = <0>;
234 #address-cells = <1>;
239 #trigger-source-cells = <0>;