1 // SPDX-License-Identifier: MIT, GPL-2.0 or later
2 /* Copyright (c) 2023, Ruslan Isaev <legale.legale@gmail.com> */
6 #include "ipq6018-512m.dtsi"
7 #include "ipq6018-cp-cpu.dtsi"
8 #include "ipq6018-ess.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
14 model = "Yuncore FAP650";
15 compatible = "yuncore,fap650", "qcom,ipq6018";
23 label-mac-device = &dp5;
24 serial0 = &blsp1_uart3;
25 led-boot = &led_system;
26 led-failsafe = &led_system;
27 led-running = &led_system;
28 led-upgrade = &led_system;
32 stdout-path = "serial0:115200n8";
33 bootargs-append = " root=/dev/ubiblock0_1";
37 compatible = "gpio-keys";
41 gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
47 compatible = "gpio-leds";
50 color = <LED_COLOR_ID_RED>;
51 function = LED_FUNCTION_STATUS;
52 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
56 color = <LED_COLOR_ID_GREEN>;
57 function = LED_FUNCTION_WLAN_2GHZ;
58 gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
62 color = <LED_COLOR_ID_BLUE>;
63 function = LED_FUNCTION_WLAN_5GHZ;
64 gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
70 pinctrl-0 = <&serial_3_pins>;
71 pinctrl-names = "default";
76 mdio_pins: mdio-pins {
95 pinctrl-0 = <&mdio_pins>;
96 pinctrl-names = "default";
97 reset-gpios = <&tlmm 75 GPIO_ACTIVE_LOW>;
98 reset-delay-us = <10000>;
99 reset-post-delay-us = <50000>;
101 ethernet-phy-package@0 {
102 #address-cells = <1>;
104 compatible = "qcom,qca8075-package";
107 qcom,package-mode = "psgmii";
109 qca8075_0: ethernet-phy@0 {
110 compatible = "ethernet-phy-ieee802.3-c22";
114 qca8075_1: ethernet-phy@1 {
115 compatible = "ethernet-phy-ieee802.3-c22";
119 qca8075_2: ethernet-phy@2 {
120 compatible = "ethernet-phy-ieee802.3-c22";
124 qca8075_3: ethernet-phy@3 {
125 compatible = "ethernet-phy-ieee802.3-c22";
129 qca8075_4: ethernet-phy@4 {
130 compatible = "ethernet-phy-ieee802.3-c22";
138 switch_lan_bmp = <(ESS_PORT1|ESS_PORT2|ESS_PORT3|ESS_PORT4)>; /* lan port bitmap */
139 switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
140 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
184 phy-handle = <&qca8075_0>;
190 phy-handle = <&qca8075_1>;
196 phy-handle = <&qca8075_2>;
202 phy-handle = <&qca8075_3>;
208 phy-handle = <&qca8075_4>;
221 #address-cells = <1>;
224 compatible = "jedec,spi-nor";
225 spi-max-frequency = <50000000>;
228 compatible = "fixed-partitions";
231 reg = <0x00000000 0x000c0000>;
236 reg = <0x000c0000 0x00010000>;
241 reg = <0x000d0000 0x00020000>;
242 label = "0:bootconfig";
246 reg = <0x000f0000 0x00020000>;
247 label = "0:bootconfig1";
251 reg = <0x00110000 0x001a0000>;
256 reg = <0x002b0000 0x001a0000>;
261 reg = <0x00450000 0x00010000>;
266 reg = <0x00460000 0x00010000>;
267 label = "0:devcfg_1";
271 reg = <0x00470000 0x00040000>;
276 reg = <0x004b0000 0x00040000>;
281 reg = <0x004f0000 0x00010000>;
286 reg = <0x00500000 0x00010000>;
291 reg = <0x00510000 0x00010000>;
292 label = "0:appsblenv";
296 reg = <0x00520000 0x000a0000>;
301 reg = <0x005c0000 0x000a0000>;
302 label = "0:appsbl_1";
306 reg = <0x00660000 0x00040000>;
319 nand-ecc-strength = <4>;
320 nand-ecc-step-size = <512>;
321 nand-bus-width = <8>;
324 compatible = "fixed-partitions";
325 #address-cells = <1>;
330 reg = <0x00000000 0x03c00000>;
335 reg = <0x03c00000 0x03c00000>;
342 qcom,ath11k-calibration-variant = "Yuncore-FAP650";
343 qcom,ath11k-fw-memory-mode = <1>;