1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 /delete-property/ bootargs;
14 led-boot = &led_power_blue;
15 led-failsafe = &led_power_blue;
16 led-running = &led_power_blue;
17 led-upgrade = &led_power_blue;
18 label-mac-device = ð0;
22 compatible = "gpio-keys";
24 pinctrl-names = "default";
25 pinctrl-0 = <&jtag_disable_pins>;
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
35 compatible = "gpio-leds";
37 led_power_blue: power_blue {
39 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
50 label = "yellow:wifi";
51 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
66 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
71 compatible = "linux,wdt-gpio";
72 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
74 /* hw_margin_ms is actually 300s but driver limits it to 60s */
75 hw_margin_ms = <60000>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <25000000>;
88 /* partitions are passed via bootloader */
90 compatible = "fixed-partitions";
96 reg = <0x000000 0x040000>;
101 label = "u-boot-env";
102 reg = <0x040000 0x040000>;
107 reg = <0x080000 0x140000>;
113 reg = <0x1c0000 0x700000>;
118 reg = <0x8c0000 0x700000>;
121 art: partition@fc0000 {
123 reg = <0xfc0000 0x040000>;
127 compatible = "fixed-layout";
128 #address-cells = <1>;
131 macaddr_art_0: macaddr@0 {
132 compatible = "mac-base";
134 #nvmem-cell-cells = <1>;
137 macaddr_art_6: macaddr@6 {
149 phy-handle = <&swphy4>;
151 nvmem-cells = <&macaddr_art_0 0>;
152 nvmem-cell-names = "mac-address";
156 /* Workaround: keep the Ethernet interfaces order/mapping correct
157 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target)
159 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
161 nvmem-cells = <&macaddr_art_6>;
162 nvmem-cell-names = "mac-address";
168 mtd-cal-data = <&art 0x1000>;
169 nvmem-cells = <&macaddr_art_0 2>;
170 nvmem-cell-names = "mac-address";