1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2021, Robert Marko <robimarko@gmail.com> */
4 #include "ipq8074-512m.dtsi"
5 #include "ipq8074-ac-cpu.dtsi"
6 #include "ipq8074-ess.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
12 serial0 = &blsp1_uart5;
13 led-boot = &led_system_yellow;
14 led-failsafe = &led_system_yellow;
15 led-running = &led_system_blue;
16 led-upgrade = &led_system_yellow;
17 label-mac-device = &dp2;
21 stdout-path = "serial0:115200n8";
22 bootargs-append = " root=/dev/ubiblock0_0";
26 compatible = "gpio-keys";
30 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
37 mdio_pins: mdio-pins {
78 * Bootloader will find the NAND DT node by the compatible and
79 * then "fixup" it by adding the partitions from the SMEM table
80 * using the legacy bindings thus making it impossible for us
81 * to change the partition table or utilize NVMEM for calibration.
82 * So add a dummy partitions node that bootloader will populate
83 * and set it as disabled so the kernel ignores it instead of
84 * printing warnings due to the broken way bootloader adds the
93 nand-ecc-strength = <4>;
94 nand-ecc-step-size = <512>;
98 compatible = "fixed-partitions";
104 reg = <0x0 0x100000>;
110 reg = <0x100000 0x100000>;
116 reg = <0x200000 0x300000>;
122 reg = <0x500000 0x80000>;
128 reg = <0x580000 0x80000>;
134 reg = <0x600000 0x80000>;
139 label = "0:appsblenv";
140 reg = <0x680000 0x80000>;
145 reg = <0x700000 0x100000>;
151 reg = <0x800000 0x80000>;
154 compatible = "nvmem-cells";
155 #address-cells = <1>;
158 macaddr_dp2: macaddr@6 {
162 macaddr_dp3: macaddr@c {
166 macaddr_dp4: macaddr@12 {
170 macaddr_dp5: macaddr@18 {
174 caldata_qca9889: caldata@4d000 {
175 reg = <0x33000 0x844>;
181 reg = <0x880000 0x80000>;
185 /* This is crash + crash_syslog parts combined */
187 reg = <0x900000 0x100000>;
190 /* Make the first rootfs a dedicated ubi partition for kernel */
192 label = "ubi_kernel";
193 reg = <0xa00000 0x23c0000>;
196 /* Place the real rootfs in the original second rootfs and
197 * expand it to the end of the nand
199 rootfs: partition@2dc0000 {
201 reg = <0x2dc0000 0xd240000>;
210 pinctrl-0 = <&mdio_pins>;
211 pinctrl-names = "default";
212 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
214 qca8075_1: ethernet-phy@1 {
215 compatible = "ethernet-phy-ieee802.3-c22";
219 qca8075_2: ethernet-phy@2 {
220 compatible = "ethernet-phy-ieee802.3-c22";
224 qca8075_3: ethernet-phy@3 {
225 compatible = "ethernet-phy-ieee802.3-c22";
229 qca8075_4: ethernet-phy@4 {
230 compatible = "ethernet-phy-ieee802.3-c22";
238 switch_lan_bmp = <(ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
239 switch_wan_bmp = <ESS_PORT2>; /* wan port bitmap */
240 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
268 phy-handle = <&qca8075_1>;
270 nvmem-cells = <&macaddr_dp2>;
271 nvmem-cell-names = "mac-address";
276 phy-handle = <&qca8075_2>;
278 nvmem-cells = <&macaddr_dp3>;
279 nvmem-cell-names = "mac-address";
284 phy-handle = <&qca8075_3>;
286 nvmem-cells = <&macaddr_dp4>;
287 nvmem-cell-names = "mac-address";
292 phy-handle = <&qca8075_4>;
294 nvmem-cells = <&macaddr_dp5>;
295 nvmem-cell-names = "mac-address";
301 qcom,ath11k-fw-memory-mode = <1>;