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/leds/common.h>
8 #include <dt-bindings/soc/qcom,tcsr.h>
11 model = "8devices Habanero DVK";
12 compatible = "8dev,habanero-dvk";
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_upgrade;
30 pinctrl-0 = <&mdio_pins>;
31 pinctrl-names = "default";
35 compatible = "qcom,qca-gcnt";
40 compatible = "qcom,tcsr";
41 reg = <0x1949000 0x100>;
42 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
48 compatible = "qcom,tcsr";
49 reg = <0x194b000 0x100>;
50 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
54 compatible = "qcom,tcsr";
55 reg = <0x1953000 0x1000>;
56 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
60 compatible = "qcom,tcsr";
61 reg = <0x1957000 0x100>;
62 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
75 compatible = "gpio-keys";
79 gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 compatible = "gpio-leds";
88 function = LED_FUNCTION_STATUS;
89 color = <LED_COLOR_ID_GREEN>;
90 gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
94 led_upgrade: upgrade {
95 label = "green:upgrade";
96 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
100 label = "green:wlan2g";
101 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
102 linux,default-trigger = "phy0tpt";
106 label = "green:wlan5g";
107 gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
108 linux,default-trigger = "phy1tpt";
120 pinctrl-0 = <&sd_pins>;
121 pinctrl-names = "default";
122 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
123 vqmmc-supply = <&vqmmc>;
131 mdio_pins: mdio_pinmux {
145 serial_pins: serial_pinmux {
147 pins = "gpio16", "gpio17";
148 function = "blsp_uart0";
153 spi_0_pins: spi_0_pinmux {
155 function = "blsp_spi0";
156 pins = "gpio13", "gpio14", "gpio15";
157 drive-strength = <12>;
164 drive-strength = <2>;
170 nand_pins: nand_pins {
172 pins = "gpio52", "gpio53", "gpio58", "gpio59";
178 pins = "gpio54", "gpio55", "gpio56", "gpio57",
179 "gpio60", "gpio62", "gpio63", "gpio64",
180 "gpio65", "gpio66", "gpio67", "gpio68",
190 pins = "gpio23", "gpio24", "gpio25", "gpio26",
191 "gpio28", "gpio29", "gpio30", "gpio31";
192 drive-strength = <10>;
198 drive-strength = <16>;
204 drive-strength = <10>;
217 pinctrl-0 = <&spi_0_pins>;
218 pinctrl-names = "default";
219 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
222 compatible = "jedec,spi-nor";
223 spi-max-frequency = <24000000>;
227 compatible = "fixed-partitions";
228 #address-cells = <1>;
233 reg = <0x00000000 0x00040000>;
238 reg = <0x00040000 0x00020000>;
243 reg = <0x00060000 0x00060000>;
248 reg = <0x000c0000 0x00010000>;
253 reg = <0x000d0000 0x00010000>;
257 label = "APPSBLENV"; /* uboot env */
258 reg = <0x000e0000 0x00010000>;
262 label = "APPSBL"; /* uboot */
263 reg = <0x000f0000 0x00080000>;
268 reg = <0x00170000 0x00010000>;
272 compatible = "fixed-layout";
273 #address-cells = <1>;
276 precal_art_1000: precal@1000 {
277 reg = <0x1000 0x2f20>;
280 precal_art_5000: precal@5000 {
281 reg = <0x5000 0x2f20>;
287 reg = <0x00180000 0x00040000>;
291 compatible = "denx,fit";
292 reg = <0x001c0000 0x01e40000>;
298 /* Some DVK boards ship without NAND */
302 pinctrl-0 = <&nand_pins>;
303 pinctrl-names = "default";
309 pinctrl-0 = <&serial_pins>;
310 pinctrl-names = "default";
320 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
321 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
323 /* Free slot for use */
325 reg = <0x00000000 0 0 0 0>;
326 #address-cells = <3>;
362 nvmem-cell-names = "pre-calibration";
363 nvmem-cells = <&precal_art_1000>;
364 qcom,ath10k-calibration-variant = "8devices-Habanero";
369 nvmem-cell-names = "pre-calibration";
370 nvmem-cells = <&precal_art_5000>;
371 qcom,ath10k-calibration-variant = "8devices-Habanero";