1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dap-1325-a1", "mediatek,mt7628an-soc";
10 model = "D-Link DAP-1325 A1";
13 led-boot = &led_status_green;
14 led-failsafe = &led_status_green;
15 led-running = &led_status_green;
16 led-upgrade = &led_status_red;
20 compatible = "gpio-leds";
22 led_status_red: status_red {
24 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
27 led_status_green: status_green {
28 label = "green:status";
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
33 label = "green:wifi-high";
34 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
38 label = "green:wifi-mid";
39 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
43 label = "green:wifi-low";
44 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
48 label = "red:wifi-verylow";
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
54 compatible = "gpio-keys";
58 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
64 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
72 groups = "refclk", "gpio", "wled_an", "i2s", "uart1", "wdt";
78 nvmem-cells = <&macaddr_factory_28>;
79 nvmem-cell-names = "mac-address";
85 mediatek,mtd-eeprom = <&factory 0x0>;
87 nvmem-cells = <&macaddr_factory_28>;
88 nvmem-cell-names = "mac-address";
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <50000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
116 factory: partition@40000 {
118 reg = <0x40000 0x10000>;
123 compatible = "denx,uimage";
125 reg = <0x50000 0x7b0000>;
132 compatible = "nvmem-cells";
133 #address-cells = <1>;
136 macaddr_factory_28: macaddr@28 {