1 // SPDX-License-Identifier: GPL-2.0 OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
9 model = "EZVIZ CS-W3-WD1200G EUP";
10 compatible = "ezviz,cs-w3-wd1200g-eup";
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_green;
26 pinctrl-0 = <&mdio_pins>;
27 pinctrl-names = "default";
28 reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
29 reset-delay-us = <5000>;
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 compatible = "qcom,tcsr";
44 reg = <0x194b000 0x100>;
45 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>;
78 compatible = "gpio-leds";
80 led_status_red: status_red {
81 label = "cs-w3-wd1200g-eup:red:status";
82 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
85 led_status_green: status_green {
86 label = "cs-w3-wd1200g-eup:green:status";
87 gpios = <&tlmm 3 GPIO_ACTIVE_LOW>;
90 led_status_blue: status_blue {
91 label = "cs-w3-wd1200g-eup:blue:status";
92 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
97 compatible = "gpio-keys";
101 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_RESTART>;
108 serial_pins: serial_pinmux {
110 pins = "gpio60", "gpio61";
111 function = "blsp_uart0";
116 mdio_pins: mdio_pinmux {
130 spi_0_pins: spi_0_pinmux {
132 function = "blsp_spi0";
133 pins = "gpio55", "gpio56", "gpio57";
134 drive-strength = <12>;
140 drive-strength = <2>;
152 pinctrl-0 = <&spi_0_pins>;
153 pinctrl-names = "default";
155 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
158 compatible = "jedec,spi-nor";
160 spi-max-frequency = <24000000>;
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
169 reg = <0x00000000 0x00040000>;
175 reg = <0x00040000 0x00020000>;
181 reg = <0x00060000 0x00060000>;
187 reg = <0x000c0000 0x00010000>;
193 reg = <0x000d0000 0x00010000>;
199 reg = <0x000e0000 0x00010000>;
205 reg = <0x000f0000 0x00080000>;
211 reg = <0x00170000 0x00010000>;
216 compatible = "denx,fit";
218 reg = <0x00180000 0x00e80000>;
225 pinctrl-0 = <&serial_pins>;
226 pinctrl-names = "default";
236 qcom,ath10k-calibration-variant = "ezviz-cs-w3-wd1200g-eup";
241 qcom,ath10k-calibration-variant = "ezviz-cs-w3-wd1200g-eup";