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>
7 #include <dt-bindings/leds/common.h>
11 /delete-property/ bootargs;
15 led-boot = &led_status_green;
16 led-failsafe = &led_status_green;
17 led-running = &led_status_green;
18 led-upgrade = &led_status_green;
19 label-mac-device = ð0;
23 compatible = "gpio-keys";
25 pinctrl-names = "default";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
35 compatible = "gpio-leds";
38 function = LED_FUNCTION_STATUS;
39 color = <LED_COLOR_ID_RED>;
40 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
43 led_status_green: status_green {
44 function = LED_FUNCTION_STATUS;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
50 function = LED_FUNCTION_STATUS;
51 color = <LED_COLOR_ID_BLUE>;
52 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
57 compatible = "linux,wdt-gpio";
58 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
60 /* hw_margin_ms is actually 300s but driver limits it to 60s */
61 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>;
113 compatible = "fixed-layout";
114 #address-cells = <1>;
117 macaddr_art_0: macaddr@0 {
118 compatible = "mac-base";
120 #nvmem-cell-cells = <1>;
131 phy-handle = <&swphy4>;
133 nvmem-cells = <&macaddr_art_0 0>;
134 nvmem-cell-names = "mac-address";
138 /* Workaround: keep the Ethernet interfaces order/mapping correct
139 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target)
141 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
143 nvmem-cells = <&macaddr_art_0 1>;
144 nvmem-cell-names = "mac-address";
150 mtd-cal-data = <&art 0x1000>;
151 nvmem-cells = <&macaddr_art_0 2>;
152 nvmem-cell-names = "mac-address";