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>;
83 compatible = "gpio-keys";
87 gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
93 compatible = "gpio-leds";
96 function = LED_FUNCTION_STATUS;
97 color = <LED_COLOR_ID_GREEN>;
98 gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
102 led_upgrade: upgrade {
103 label = "green:upgrade";
104 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
108 label = "green:wlan2g";
109 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
110 linux,default-trigger = "phy0tpt";
114 label = "green:wlan5g";
115 gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
116 linux,default-trigger = "phy1tpt";
128 pinctrl-0 = <&sd_pins>;
129 pinctrl-names = "default";
130 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
131 vqmmc-supply = <&vqmmc>;
139 mdio_pins: mdio_pinmux {
153 serial_pins: serial_pinmux {
155 pins = "gpio16", "gpio17";
156 function = "blsp_uart0";
161 spi_0_pins: spi_0_pinmux {
163 function = "blsp_spi0";
164 pins = "gpio13", "gpio14", "gpio15";
165 drive-strength = <12>;
172 drive-strength = <2>;
178 nand_pins: nand_pins {
180 pins = "gpio52", "gpio53", "gpio58", "gpio59";
186 pins = "gpio54", "gpio55", "gpio56", "gpio57",
187 "gpio60", "gpio62", "gpio63", "gpio64",
188 "gpio65", "gpio66", "gpio67", "gpio68",
198 pins = "gpio23", "gpio24", "gpio25", "gpio26",
199 "gpio28", "gpio29", "gpio30", "gpio31";
200 drive-strength = <10>;
206 drive-strength = <16>;
212 drive-strength = <10>;
225 pinctrl-0 = <&spi_0_pins>;
226 pinctrl-names = "default";
227 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
230 compatible = "jedec,spi-nor";
231 spi-max-frequency = <24000000>;
235 compatible = "fixed-partitions";
236 #address-cells = <1>;
241 reg = <0x00000000 0x00040000>;
246 reg = <0x00040000 0x00020000>;
251 reg = <0x00060000 0x00060000>;
256 reg = <0x000c0000 0x00010000>;
261 reg = <0x000d0000 0x00010000>;
265 label = "APPSBLENV"; /* uboot env */
266 reg = <0x000e0000 0x00010000>;
270 label = "APPSBL"; /* uboot */
271 reg = <0x000f0000 0x00080000>;
276 reg = <0x00170000 0x00010000>;
280 compatible = "fixed-layout";
281 #address-cells = <1>;
284 precal_art_1000: precal@1000 {
285 reg = <0x1000 0x2f20>;
288 precal_art_5000: precal@5000 {
289 reg = <0x5000 0x2f20>;
295 reg = <0x00180000 0x00040000>;
299 compatible = "denx,fit";
300 reg = <0x001c0000 0x01e40000>;
306 /* Some DVK boards ship without NAND */
310 pinctrl-0 = <&nand_pins>;
311 pinctrl-names = "default";
317 pinctrl-0 = <&serial_pins>;
318 pinctrl-names = "default";
328 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
329 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
331 /* Free slot for use */
333 reg = <0x00000000 0 0 0 0>;
334 #address-cells = <3>;
370 nvmem-cell-names = "pre-calibration";
371 nvmem-cells = <&precal_art_1000>;
372 qcom,ath10k-calibration-variant = "8devices-Habanero";
377 nvmem-cell-names = "pre-calibration";
378 nvmem-cells = <&precal_art_5000>;
379 qcom,ath10k-calibration-variant = "8devices-Habanero";