1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2019, Robert Marko <robimarko@gmail.com> */
4 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "8devices Habanero DVK";
11 compatible = "8dev,habanero-dvk";
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_upgrade;
28 pinctrl-0 = <&mdio_pins>;
29 pinctrl-names = "default";
37 compatible = "qcom,qca-gcnt";
42 compatible = "qcom,tcsr";
43 reg = <0x1949000 0x100>;
44 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
50 compatible = "qcom,tcsr";
51 reg = <0x194b000 0x100>;
52 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
56 compatible = "qcom,tcsr";
57 reg = <0x1953000 0x1000>;
58 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
62 compatible = "qcom,tcsr";
63 reg = <0x1957000 0x100>;
64 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
93 compatible = "gpio-keys";
97 gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_RESTART>;
103 compatible = "gpio-leds";
106 label = "habanero-dvk:green:status";
107 gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
111 led_upgrade: upgrade {
112 label = "habanero-dvk:green:upgrade";
113 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
117 label = "habanero-dvk:green:wlan2g";
118 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
119 linux,default-trigger = "phy0tpt";
123 label = "habanero-dvk:green:wlan5g";
124 gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
125 linux,default-trigger = "phy1tpt";
137 pinctrl-0 = <&sd_pins>;
138 pinctrl-names = "default";
139 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
140 vqmmc-supply = <&vqmmc>;
148 mdio_pins: mdio_pinmux {
162 serial_pins: serial_pinmux {
164 pins = "gpio16", "gpio17";
165 function = "blsp_uart0";
170 spi_0_pins: spi_0_pinmux {
172 function = "blsp_spi0";
173 pins = "gpio13", "gpio14", "gpio15";
174 drive-strength = <12>;
181 drive-strength = <2>;
187 nand_pins: nand_pins {
189 pins = "gpio52", "gpio53", "gpio58", "gpio59";
195 pins = "gpio54", "gpio55", "gpio56", "gpio57",
196 "gpio60", "gpio62", "gpio63", "gpio64",
197 "gpio65", "gpio66", "gpio67", "gpio68",
207 pins = "gpio23", "gpio24", "gpio25", "gpio26",
208 "gpio28", "gpio29", "gpio30", "gpio31";
209 drive-strength = <10>;
215 drive-strength = <16>;
221 drive-strength = <10>;
234 pinctrl-0 = <&spi_0_pins>;
235 pinctrl-names = "default";
236 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
239 compatible = "jedec,spi-nor";
240 spi-max-frequency = <24000000>;
244 compatible = "fixed-partitions";
245 #address-cells = <1>;
250 reg = <0x00000000 0x00040000>;
255 reg = <0x00040000 0x00020000>;
260 reg = <0x00060000 0x00060000>;
265 reg = <0x000c0000 0x00010000>;
270 reg = <0x000d0000 0x00010000>;
274 label = "APPSBLENV"; /* uboot env */
275 reg = <0x000e0000 0x00010000>;
279 label = "APPSBL"; /* uboot */
280 reg = <0x000f0000 0x00080000>;
285 reg = <0x00170000 0x00010000>;
290 reg = <0x00180000 0x00040000>;
294 compatible = "denx,fit";
295 reg = <0x001c0000 0x01e40000>;
301 /* Some DVK boards ship without NAND */
305 pinctrl-0 = <&nand_pins>;
306 pinctrl-names = "default";
312 pinctrl-0 = <&serial_pins>;
313 pinctrl-names = "default";
323 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
324 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
326 /* Free slot for use */
328 reg = <0x00000000 0 0 0 0>;
329 #address-cells = <3>;
338 qcom,ath10k-calibration-variant = "8devices-Habanero";
344 qcom,ath10k-calibration-variant = "8devices-Habanero";