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_status_green;
15 led-failsafe = &led_status_green;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_green;
18 label-mac-device = ð0;
22 compatible = "gpio-keys";
24 pinctrl-names = "default";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-leds";
38 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
41 led_status_green: status_green {
42 label = "green:status";
43 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
47 label = "blue:status";
48 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
53 compatible = "linux,wdt-gpio";
54 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
56 /* hw_margin_ms is actually 300s but driver limits it to 60s */
57 hw_margin_ms = <60000>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <25000000>;
74 /* partitions are passed via bootloader */
76 compatible = "fixed-partitions";
82 reg = <0x000000 0x040000>;
88 reg = <0x040000 0x040000>;
93 reg = <0x080000 0x140000>;
99 reg = <0x1c0000 0x700000>;
104 reg = <0x8c0000 0x700000>;
107 art: partition@fc0000 {
109 reg = <0xfc0000 0x040000>;
119 phy-handle = <&swphy4>;
121 mtd-mac-address = <&art 0x0>;
125 /* Workaround: keep the Ethernet interfaces order/mapping correct
126 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target)
128 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
130 mtd-mac-address = <&art 0x0>;
131 mtd-mac-address-increment = <1>;
137 mtd-cal-data = <&art 0x1000>;
138 mtd-mac-address = <&art 0x0>;
139 mtd-mac-address-increment = <2>;