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>;
155 compatible = "fixed-layout";
156 #address-cells = <1>;
159 macaddr_dp2: macaddr@6 {
163 macaddr_dp3: macaddr@c {
167 macaddr_dp4: macaddr@12 {
171 macaddr_dp5: macaddr@18 {
175 caldata_qca9889: caldata@4d000 {
176 reg = <0x33000 0x844>;
183 reg = <0x880000 0x80000>;
187 /* This is crash + crash_syslog parts combined */
189 reg = <0x900000 0x100000>;
192 /* Make the first rootfs a dedicated ubi partition for kernel */
194 label = "ubi_kernel";
195 reg = <0xa00000 0x23c0000>;
198 /* Place the real rootfs in the original second rootfs and
199 * expand it to the end of the nand
201 rootfs: partition@2dc0000 {
203 reg = <0x2dc0000 0xd240000>;
212 pinctrl-0 = <&mdio_pins>;
213 pinctrl-names = "default";
214 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
216 qca8075_1: ethernet-phy@1 {
217 compatible = "ethernet-phy-ieee802.3-c22";
221 qca8075_2: ethernet-phy@2 {
222 compatible = "ethernet-phy-ieee802.3-c22";
226 qca8075_3: ethernet-phy@3 {
227 compatible = "ethernet-phy-ieee802.3-c22";
231 qca8075_4: ethernet-phy@4 {
232 compatible = "ethernet-phy-ieee802.3-c22";
240 switch_lan_bmp = <(ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
241 switch_wan_bmp = <ESS_PORT2>; /* wan port bitmap */
242 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
270 phy-handle = <&qca8075_1>;
272 nvmem-cells = <&macaddr_dp2>;
273 nvmem-cell-names = "mac-address";
278 phy-handle = <&qca8075_2>;
280 nvmem-cells = <&macaddr_dp3>;
281 nvmem-cell-names = "mac-address";
286 phy-handle = <&qca8075_3>;
288 nvmem-cells = <&macaddr_dp4>;
289 nvmem-cell-names = "mac-address";
294 phy-handle = <&qca8075_4>;
296 nvmem-cells = <&macaddr_dp5>;
297 nvmem-cell-names = "mac-address";
303 qcom,ath11k-fw-memory-mode = <1>;