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";
33 compatible = "qcom,qca-gcnt";
38 compatible = "qcom,tcsr";
39 reg = <0x1949000 0x100>;
40 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
46 compatible = "qcom,tcsr";
47 reg = <0x194b000 0x100>;
48 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
52 compatible = "qcom,tcsr";
53 reg = <0x1953000 0x1000>;
54 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
58 compatible = "qcom,tcsr";
59 reg = <0x1957000 0x100>;
60 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
81 compatible = "gpio-keys";
85 gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_RESTART>;
91 compatible = "gpio-leds";
94 label = "green:status";
95 gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
99 led_upgrade: upgrade {
100 label = "green:upgrade";
101 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
105 label = "green:wlan2g";
106 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
107 linux,default-trigger = "phy0tpt";
111 label = "green:wlan5g";
112 gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
113 linux,default-trigger = "phy1tpt";
125 pinctrl-0 = <&sd_pins>;
126 pinctrl-names = "default";
127 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
128 vqmmc-supply = <&vqmmc>;
136 mdio_pins: mdio_pinmux {
150 serial_pins: serial_pinmux {
152 pins = "gpio16", "gpio17";
153 function = "blsp_uart0";
158 spi_0_pins: spi_0_pinmux {
160 function = "blsp_spi0";
161 pins = "gpio13", "gpio14", "gpio15";
162 drive-strength = <12>;
169 drive-strength = <2>;
175 nand_pins: nand_pins {
177 pins = "gpio52", "gpio53", "gpio58", "gpio59";
183 pins = "gpio54", "gpio55", "gpio56", "gpio57",
184 "gpio60", "gpio62", "gpio63", "gpio64",
185 "gpio65", "gpio66", "gpio67", "gpio68",
195 pins = "gpio23", "gpio24", "gpio25", "gpio26",
196 "gpio28", "gpio29", "gpio30", "gpio31";
197 drive-strength = <10>;
203 drive-strength = <16>;
209 drive-strength = <10>;
222 pinctrl-0 = <&spi_0_pins>;
223 pinctrl-names = "default";
224 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
227 compatible = "jedec,spi-nor";
228 spi-max-frequency = <24000000>;
232 compatible = "fixed-partitions";
233 #address-cells = <1>;
238 reg = <0x00000000 0x00040000>;
243 reg = <0x00040000 0x00020000>;
248 reg = <0x00060000 0x00060000>;
253 reg = <0x000c0000 0x00010000>;
258 reg = <0x000d0000 0x00010000>;
262 label = "APPSBLENV"; /* uboot env */
263 reg = <0x000e0000 0x00010000>;
267 label = "APPSBL"; /* uboot */
268 reg = <0x000f0000 0x00080000>;
273 reg = <0x00170000 0x00010000>;
275 compatible = "nvmem-cells";
276 #address-cells = <1>;
279 precal_art_1000: precal@1000 {
280 reg = <0x1000 0x2f20>;
283 precal_art_5000: precal@5000 {
284 reg = <0x5000 0x2f20>;
289 reg = <0x00180000 0x00040000>;
293 compatible = "denx,fit";
294 reg = <0x001c0000 0x01e40000>;
300 /* Some DVK boards ship without NAND */
304 pinctrl-0 = <&nand_pins>;
305 pinctrl-names = "default";
311 pinctrl-0 = <&serial_pins>;
312 pinctrl-names = "default";
322 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
323 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
325 /* Free slot for use */
327 reg = <0x00000000 0 0 0 0>;
328 #address-cells = <3>;
336 nvmem-cell-names = "pre-calibration";
337 nvmem-cells = <&precal_art_1000>;
338 qcom,ath10k-calibration-variant = "8devices-Habanero";
343 nvmem-cell-names = "pre-calibration";
344 nvmem-cells = <&precal_art_5000>;
345 qcom,ath10k-calibration-variant = "8devices-Habanero";