1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include "ipq6018.dtsi"
6 #include "ipq6018-cp-cpu.dtsi"
7 #include "ipq6018-ess.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
13 model = "8devices Mango-DVK";
14 compatible = "8devices,mango-dvk", "qcom,ipq6018";
17 serial0 = &blsp1_uart3;
21 stdout-path = "serial0:115200n8";
25 compatible = "gpio-keys";
29 gpios = <&tlmm 79 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
35 compatible = "gpio-leds";
36 pinctrl-0 = <&led_pins>;
37 pinctrl-names = "default";
40 color = <LED_COLOR_ID_GREEN>;
41 function = LED_FUNCTION_WLAN;
42 function-enumerator = <0>;
43 gpios = <&tlmm 66 GPIO_ACTIVE_HIGH>;
44 linux,default-trigger = "phy0radio";
48 color = <LED_COLOR_ID_GREEN>;
49 function = LED_FUNCTION_WLAN;
50 function-enumerator = <1>;
51 gpios = <&tlmm 67 GPIO_ACTIVE_HIGH>;
52 linux,default-trigger = "phy1radio";
58 mdio_pins: mdio-pins {
74 spi_0_pins: spi-0-pins {
75 pins = "gpio38", "gpio39", "gpio40", "gpio41";
76 function = "blsp0_spi";
83 pins = "gpio66", "gpio67";
101 pinctrl-0 = <&serial_3_pins>;
102 pinctrl-names = "default";
107 pinctrl-0 = <&spi_0_pins>;
108 pinctrl-names = "default";
112 #address-cells = <1>;
115 compatible = "jedec,spi-nor";
116 spi-max-frequency = <25000000>;
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
125 reg = <0x00000000 0x000c0000>;
130 reg = <0x000c0000 0x00010000>;
135 reg = <0x000d0000 0x001a0000>;
140 reg = <0x00270000 0x00010000>;
145 reg = <0x00280000 0x00020000>;
150 reg = <0x002a0000 0x00010000>;
154 label = "0:APPSBLENV";
155 reg = <0x002b0000 0x00010000>;
160 reg = <0x002c0000 0x000a0000>;
164 compatible = "nvmem-cells";
165 #address-cells = <1>;
168 reg = <0x00360000 0x00040000>;
170 macaddr_eth0: macaddr@0 {
174 macaddr_eth1: macaddr@6 {
178 macaddr_eth2: macaddr@c {
185 reg = <0x003a0000 0x00040000>;
190 reg = <0x003e0000 0x00100000>;
195 compatible = "denx,fit";
196 reg = <0x004e0000 0x1b20000>;
205 phy-handle = <&qca8072_1>;
206 nvmem-cells = <&macaddr_eth1>;
207 nvmem-cell-names = "mac-address";
214 phy-handle = <&qca8072_0>;
215 nvmem-cells = <&macaddr_eth0>;
216 nvmem-cell-names = "mac-address";
223 phy-handle = <&qca8081>;
224 nvmem-cells = <&macaddr_eth2>;
225 nvmem-cell-names = "mac-address";
235 pinctrl-0 = <&mdio_pins>;
236 pinctrl-names = "default";
237 reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
238 reset-delay-us = <10000>;
239 reset-post-delay-us = <50000>;
241 ethernet-phy-package@0 {
242 #address-cells = <1>;
244 compatible = "qcom,qca8075-package";
247 qcom,package-mode = "psgmii";
249 qca8072_0: ethernet-phy@3 {
250 compatible = "ethernet-phy-ieee802.3-c22";
254 qca8072_1: ethernet-phy@4 {
255 compatible = "ethernet-phy-ieee802.3-c22";
260 qca8081: ethernet-phy@24 {
261 compatible = "ethernet-phy-id004d.d101";
263 reset-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
264 reset-assert-us = <10000>;
265 reset-deassert-us = <50000>;
270 pinctrl-0 = <&sd_pins>;
271 pinctrl-names = "default";
274 vqmmc-supply = <&ipq6018_l2>;
275 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
281 switch_lan_bmp = <(ESS_PORT3 | ESS_PORT4)>;
282 switch_wan_bmp = <ESS_PORT5>;
283 switch_mac_mode = <MAC_MODE_PSGMII>;
284 switch_mac_mode1 = <MAC_MODE_SGMII_PLUS>;
285 port3_pcs_channel = <4>;
299 port_mac_sel = "QGMAC_PORT";
314 nand-ecc-strength = <4>;
315 nand-ecc-step-size = <512>;
316 nand-bus-width = <8>;
319 compatible = "fixed-partitions";
320 #address-cells = <1>;
325 reg = <0x0000000 0x10000000>;
337 perst-gpio = <&tlmm 60 GPIO_ACTIVE_LOW>;
342 qcom,ath11k-calibration-variant = "8devices-Mango";