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 nvmem-cells = <&eeprom_factory_0>;
86 nvmem-cell-names = "eeprom";
88 nvmem-cells = <&macaddr_factory_28>;
89 nvmem-cell-names = "mac-address";
96 compatible = "jedec,spi-nor";
98 spi-max-frequency = <50000000>;
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
112 label = "u-boot-env";
113 reg = <0x30000 0x10000>;
117 factory: partition@40000 {
119 reg = <0x40000 0x10000>;
123 compatible = "fixed-layout";
124 #address-cells = <1>;
127 eeprom_factory_0: eeprom@0 {
131 macaddr_factory_28: macaddr@28 {
138 compatible = "denx,uimage";
140 reg = <0x50000 0x7b0000>;