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>
10 model = "Wallys DR531";
11 compatible = "wallys,dr531", "qca,qca9531";
14 label-mac-device = ð1;
16 led-failsafe = &led_sig4;
17 led-upgrade = &led_sig4;
21 compatible = "gpio-export";
24 gpio-export,name = "buzzer";
25 gpio-export,output = <0>;
26 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
31 compatible = "gpio-keys";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
42 compatible = "gpio-leds";
45 function = LED_FUNCTION_LAN;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
71 function = LED_FUNCTION_WAN;
72 color = <LED_COLOR_ID_GREEN>;
73 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
81 phy-handle = <&swphy4>;
82 nvmem-cells = <&macaddr_env_f818>;
83 nvmem-cell-names = "mac-address";
87 /* Workaround: keep the Ethernet interfaces order/mapping correct
88 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
89 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
91 nvmem-cells = <&macaddr_env_f810>;
92 nvmem-cell-names = "mac-address";
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <50000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
115 reg = <0x000000 0x030000>;
119 env: partition@30000 {
120 label = "u-boot-env";
121 reg = <0x030000 0x010000>;
124 compatible = "fixed-layout";
125 #address-cells = <1>;
128 macaddr_env_f810: macaddr@f810 {
132 macaddr_env_f818: macaddr@f818 {
139 label = "partition-table";
140 reg = <0x040000 0x010000>;
145 compatible = "denx,uimage";
147 reg = <0x050000 0x7a0000>;
150 art: partition@7f0000 {
152 reg = <0x7f0000 0x010000>;
170 mtd-cal-data = <&art 0x1000>;