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;
29 pinctrl-0 = <&mdio_pins>;
30 pinctrl-names = "default";
34 compatible = "qcom,qca-gcnt";
39 compatible = "qcom,tcsr";
40 reg = <0x1949000 0x100>;
41 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
47 compatible = "qcom,tcsr";
48 reg = <0x194b000 0x100>;
49 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
53 compatible = "qcom,tcsr";
54 reg = <0x1953000 0x1000>;
55 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
59 compatible = "qcom,tcsr";
60 reg = <0x1957000 0x100>;
61 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
82 compatible = "gpio-keys";
86 gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
92 compatible = "gpio-leds";
95 label = "green:status";
96 gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
100 led_upgrade: upgrade {
101 label = "green:upgrade";
102 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
106 label = "green:wlan2g";
107 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
108 linux,default-trigger = "phy0tpt";
112 label = "green:wlan5g";
113 gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
114 linux,default-trigger = "phy1tpt";
126 pinctrl-0 = <&sd_pins>;
127 pinctrl-names = "default";
128 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
129 vqmmc-supply = <&vqmmc>;
137 mdio_pins: mdio_pinmux {
151 serial_pins: serial_pinmux {
153 pins = "gpio16", "gpio17";
154 function = "blsp_uart0";
159 spi_0_pins: spi_0_pinmux {
161 function = "blsp_spi0";
162 pins = "gpio13", "gpio14", "gpio15";
163 drive-strength = <12>;
170 drive-strength = <2>;
176 nand_pins: nand_pins {
178 pins = "gpio52", "gpio53", "gpio58", "gpio59";
184 pins = "gpio54", "gpio55", "gpio56", "gpio57",
185 "gpio60", "gpio62", "gpio63", "gpio64",
186 "gpio65", "gpio66", "gpio67", "gpio68",
196 pins = "gpio23", "gpio24", "gpio25", "gpio26",
197 "gpio28", "gpio29", "gpio30", "gpio31";
198 drive-strength = <10>;
204 drive-strength = <16>;
210 drive-strength = <10>;
223 pinctrl-0 = <&spi_0_pins>;
224 pinctrl-names = "default";
225 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
228 compatible = "jedec,spi-nor";
229 spi-max-frequency = <24000000>;
233 compatible = "fixed-partitions";
234 #address-cells = <1>;
239 reg = <0x00000000 0x00040000>;
244 reg = <0x00040000 0x00020000>;
249 reg = <0x00060000 0x00060000>;
254 reg = <0x000c0000 0x00010000>;
259 reg = <0x000d0000 0x00010000>;
263 label = "APPSBLENV"; /* uboot env */
264 reg = <0x000e0000 0x00010000>;
268 label = "APPSBL"; /* uboot */
269 reg = <0x000f0000 0x00080000>;
274 reg = <0x00170000 0x00010000>;
278 compatible = "fixed-layout";
279 #address-cells = <1>;
282 precal_art_1000: precal@1000 {
283 reg = <0x1000 0x2f20>;
286 precal_art_5000: precal@5000 {
287 reg = <0x5000 0x2f20>;
293 reg = <0x00180000 0x00040000>;
297 compatible = "denx,fit";
298 reg = <0x001c0000 0x01e40000>;
304 /* Some DVK boards ship without NAND */
308 pinctrl-0 = <&nand_pins>;
309 pinctrl-names = "default";
315 pinctrl-0 = <&serial_pins>;
316 pinctrl-names = "default";
326 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
327 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
329 /* Free slot for use */
331 reg = <0x00000000 0 0 0 0>;
332 #address-cells = <3>;
368 nvmem-cell-names = "pre-calibration";
369 nvmem-cells = <&precal_art_1000>;
370 qcom,ath10k-calibration-variant = "8devices-Habanero";
375 nvmem-cell-names = "pre-calibration";
376 nvmem-cells = <&precal_art_5000>;
377 qcom,ath10k-calibration-variant = "8devices-Habanero";