1 // SPDX-License-Identifier: GPL-2.0-only 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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "EZVIZ CS-W3-WD1200G EUP";
11 compatible = "ezviz,cs-w3-wd1200g-eup";
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_red;
16 led-running = &led_status_blue;
17 led-upgrade = &led_status_green;
27 pinctrl-0 = <&mdio_pins>;
28 pinctrl-names = "default";
29 reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
30 reset-delay-us = <5000>;
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
40 compatible = "qcom,tcsr";
41 reg = <0x194b000 0x100>;
42 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
46 compatible = "qcom,tcsr";
47 reg = <0x1953000 0x1000>;
48 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
52 compatible = "qcom,tcsr";
53 reg = <0x1957000 0x100>;
54 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
63 compatible = "gpio-leds";
65 led_status_red: status_red {
66 function = LED_FUNCTION_STATUS;
67 color = <LED_COLOR_ID_RED>;
68 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
71 led_status_green: status_green {
72 function = LED_FUNCTION_STATUS;
73 color = <LED_COLOR_ID_GREEN>;
74 gpios = <&tlmm 3 GPIO_ACTIVE_LOW>;
77 led_status_blue: status_blue {
78 function = LED_FUNCTION_STATUS;
79 color = <LED_COLOR_ID_BLUE>;
80 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
85 compatible = "gpio-keys";
89 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RESTART>;
100 serial_pins: serial_pinmux {
102 pins = "gpio60", "gpio61";
103 function = "blsp_uart0";
108 mdio_pins: mdio_pinmux {
122 spi_0_pins: spi_0_pinmux {
124 function = "blsp_spi0";
125 pins = "gpio55", "gpio56", "gpio57";
126 drive-strength = <12>;
132 drive-strength = <2>;
144 pinctrl-0 = <&spi_0_pins>;
145 pinctrl-names = "default";
147 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
150 compatible = "jedec,spi-nor";
152 spi-max-frequency = <24000000>;
155 compatible = "fixed-partitions";
156 #address-cells = <1>;
161 reg = <0x00000000 0x00040000>;
167 reg = <0x00040000 0x00020000>;
173 reg = <0x00060000 0x00060000>;
179 reg = <0x000c0000 0x00010000>;
185 reg = <0x000d0000 0x00010000>;
191 reg = <0x000e0000 0x00010000>;
197 reg = <0x000f0000 0x00080000>;
203 reg = <0x00170000 0x00010000>;
207 compatible = "fixed-layout";
208 #address-cells = <1>;
211 macaddr_art_0: macaddr@0 {
215 macaddr_art_6: macaddr@6 {
219 precal_art_1000: precal@1000 {
220 reg = <0x1000 0x2f20>;
223 precal_art_5000: precal@5000 {
224 reg = <0x5000 0x2f20>;
230 compatible = "denx,fit";
232 reg = <0x00180000 0x00e80000>;
239 pinctrl-0 = <&serial_pins>;
240 pinctrl-names = "default";
250 nvmem-cells = <&macaddr_art_0>;
251 nvmem-cell-names = "mac-address";
276 nvmem-cells = <&macaddr_art_6>;
277 nvmem-cell-names = "mac-address";
286 qcom,ath10k-calibration-variant = "ezviz-cs-w3-wd1200g-eup";
287 nvmem-cell-names = "pre-calibration";
288 nvmem-cells = <&precal_art_1000>;
293 qcom,ath10k-calibration-variant = "ezviz-cs-w3-wd1200g-eup";
294 nvmem-cell-names = "pre-calibration";
295 nvmem-cells = <&precal_art_5000>;