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>;
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <25000000>;
70 /* partitions are passed via bootloader */
72 compatible = "fixed-partitions";
78 reg = <0x000000 0x040000>;
84 reg = <0x040000 0x040000>;
89 reg = <0x080000 0x140000>;
95 reg = <0x1c0000 0x700000>;
100 reg = <0x8c0000 0x700000>;
103 art: partition@fc0000 {
105 reg = <0xfc0000 0x040000>;
115 phy-handle = <&swphy4>;
117 nvmem-cells = <&macaddr_art_0>;
118 nvmem-cell-names = "mac-address";
122 /* Workaround: keep the Ethernet interfaces order/mapping correct
123 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target)
125 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
127 nvmem-cells = <&macaddr_art_0>;
128 nvmem-cell-names = "mac-address";
129 mac-address-increment = <1>;
135 mtd-cal-data = <&art 0x1000>;
136 nvmem-cells = <&macaddr_art_0>;
137 nvmem-cell-names = "mac-address";
138 mac-address-increment = <2>;
142 compatible = "nvmem-cells";
143 #address-cells = <1>;
146 macaddr_art_0: macaddr@0 {