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 */
26 pinctrl-0 = <&mdio_pins>;
27 pinctrl-names = "default";
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
38 compatible = "qcom,tcsr";
39 reg = <0x194b000 0x100>;
40 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
45 compatible = "qcom,tcsr";
46 reg = <0x1953000 0x1000>;
47 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
51 compatible = "qcom,tcsr";
52 reg = <0x1957000 0x100>;
53 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
57 pinctrl-0 = <&serial_0_pins>;
58 pinctrl-names = "default";
63 pinctrl-0 = <&serial_1_pins>;
64 pinctrl-names = "default";
68 i2c@78b7000 { /* BLSP1 QUP2 */
69 pinctrl-0 = <&i2c_0_pins>;
70 pinctrl-names = "default";
80 compatible = "gpio-leds";
83 label = "green:wlan0";
84 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
88 label = "green:wlan1";
89 gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
93 function = LED_FUNCTION_USB;
94 color = <LED_COLOR_ID_GREEN>;
95 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
96 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
97 linux,default-trigger = "usbport";
101 label = "green:ctrl1";
102 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
106 label = "green:ctrl2";
107 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
111 label = "green:ctrl3";
112 gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
117 compatible = "gpio-keys";
121 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
122 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>;
208 #address-cells = <1>;
213 #trigger-source-cells = <0>;
218 #trigger-source-cells = <0>;
234 #address-cells = <1>;
239 #trigger-source-cells = <0>;