1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (c) 2022, Karol Przybylski <itor@o2.pl>
4 * Copyright (c) 2023, Andre Valentin <avalentin@marcant.net>
9 #include "ipq8074.dtsi"
10 #include "ipq8074-hk-cpu.dtsi"
11 #include "ipq8074-ess.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/leds/common.h>
14 #include <dt-bindings/input/input.h>
18 model = "Zyxel NBG7815";
19 compatible = "zyxel,nbg7815", "qcom,ipq8074";
22 serial0 = &blsp1_uart5;
23 serial1 = &blsp1_uart3;
24 /* Alias as required by u-boot to patch MAC addresses */
26 label-mac-device = &dp1;
30 stdout-path = "serial0:115200n8";
34 compatible = "gpio-keys";
38 linux,code = <KEY_RESTART>;
39 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
45 mdio_pins: mdio-pins {
89 pinctrl-0 = <&spi_0_pins>;
90 pinctrl-names = "default";
95 * Bootloader will find the NAND DT node by the compatible and
96 * then "fixup" it by adding the partitions from the SMEM table
97 * using the legacy bindings thus making it impossible for us
98 * to change the partition table or utilize NVMEM for calibration.
99 * So add a dummy partitions node that bootloader will populate
100 * and set it as disabled so the kernel ignores it instead of
101 * printing warnings due to the broken way bootloader adds the
110 #address-cells = <1>;
113 compatible = "jedec,spi-nor";
114 spi-max-frequency = <50000000>;
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
129 reg = <0x50000 0x10000>;
134 label = "0:bootconfig";
135 reg = <0x60000 0x20000>;
140 label = "0:bootconfig1";
141 reg = <0x80000 0x20000>;
147 reg = <0xa0000 0x180000>;
153 reg = <0x220000 0x180000>;
159 reg = <0x3a0000 0x10000>;
164 label = "0:devcfg_1";
165 reg = <0x3b0000 0x10000>;
171 reg = <0x3c0000 0x10000>;
177 reg = <0x3d0000 0x10000>;
183 reg = <0x3e0000 0x40000>;
189 reg = <0x420000 0x40000>;
195 reg = <0x460000 0x10000>;
201 reg = <0x470000 0x10000>;
207 reg = <0x480000 0xc0000>;
212 label = "0:appsbl_1";
213 reg = <0x540000 0xc0000>;
218 compatible = "u-boot,env";
219 label = "0:appsblenv";
220 reg = <0x600000 0x10000>;
222 macaddr_lan: ethaddr {
223 #nvmem-cell-cells = <1>;
229 reg = <0x610000 0x40000>;
234 label = "0:ethphyfw";
235 reg = <0x650000 0x80000>;
241 reg = <0x6d0000 0x10000>;
247 reg = <0x6e0000 0x10000>;
252 reg = <0x6f0000 0x110000>;
261 pinctrl-0 = <&mdio_pins>;
262 pinctrl-names = "default";
263 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
265 qca8075_1: ethernet-phy@0 {
266 compatible = "ethernet-phy-ieee802.3-c22";
270 qca8075_2: ethernet-phy@1 {
271 compatible = "ethernet-phy-ieee802.3-c22";
275 qca8075_3: ethernet-phy@2 {
276 compatible = "ethernet-phy-ieee802.3-c22";
280 qca8075_4: ethernet-phy@3 {
281 compatible = "ethernet-phy-ieee802.3-c22";
285 qca8081: ethernet-phy@4{
286 compatible = "ethernet-phy-id004d.d101";
288 reset-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
291 aqr113c: ethernet-phy@5 {
292 compatible = "ethernet-phy-ieee802.3-c45";
294 reset-gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
301 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>;
302 switch_wan_bmp = <ESS_PORT6>;
303 switch_mac_mode = <0x0>;
304 switch_mac_mode1 = <0xf>;
305 switch_mac_mode2 = <0xd>;
333 port_mac_sel = "QGMAC_PORT";
338 ethernet-phy-ieee802.3-c45;
350 phy-handle = <&qca8075_1>;
352 nvmem-cells = <&macaddr_lan 0>;
353 nvmem-cell-names = "mac-address";
358 phy-handle = <&qca8075_2>;
360 nvmem-cells = <&macaddr_lan 0>;
361 nvmem-cell-names = "mac-address";
366 phy-handle = <&qca8075_3>;
368 nvmem-cells = <&macaddr_lan 0>;
369 nvmem-cell-names = "mac-address";
374 phy-handle = <&qca8075_4>;
376 nvmem-cells = <&macaddr_lan 0>;
377 nvmem-cell-names = "mac-address";
382 phy-handle = <&qca8081>;
384 nvmem-cells = <&macaddr_lan 1>;
385 nvmem-cell-names = "mac-address";
390 phy-handle = <&aqr113c>;
392 nvmem-cells = <&macaddr_lan 0>;
393 nvmem-cell-names = "mac-address";
397 pinctrl-0 = <&i2c_0_pins>;
398 pinctrl-names = "default";
402 compatible = "ti,tmp103";
409 /* unstable, problem with the hs400 > h200 speed switch */
410 /delete-property/ mmc-hs400-1_8v;
413 vqmmc-supply = <&l11>;
443 qcom,ath11k-calibration-variant = "Zyxel-NBG7815";