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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "dlink,dap-1325-a1", "mediatek,mt7628an-soc";
11 model = "D-Link DAP-1325 A1";
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_green;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_red;
21 compatible = "gpio-leds";
23 led_status_red: status_red {
24 function = LED_FUNCTION_STATUS;
25 color = <LED_COLOR_ID_RED>;
26 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
29 led_status_green: status_green {
30 function = LED_FUNCTION_STATUS;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
36 label = "green:wifi-high";
37 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
41 label = "green:wifi-mid";
42 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
46 label = "green:wifi-low";
47 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
51 label = "red:wifi-verylow";
52 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys";
61 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
67 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
75 groups = "refclk", "gpio", "wled_an", "i2s", "uart1", "wdt";
81 nvmem-cells = <&macaddr_factory_28>;
82 nvmem-cell-names = "mac-address";
88 nvmem-cells = <&eeprom_factory_0>;
89 nvmem-cell-names = "eeprom";
91 nvmem-cells = <&macaddr_factory_28>;
92 nvmem-cell-names = "mac-address";
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <50000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
115 label = "u-boot-env";
116 reg = <0x30000 0x10000>;
122 reg = <0x40000 0x10000>;
126 compatible = "fixed-layout";
127 #address-cells = <1>;
130 eeprom_factory_0: eeprom@0 {
134 macaddr_factory_28: macaddr@28 {
141 compatible = "denx,uimage";
143 reg = <0x50000 0x7b0000>;