1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dap-1620-b1", "mediatek,mt7621-soc";
10 model = "D-Link DAP-1620 B1";
13 label-mac-device = &gmac0;
15 led-boot = &led_status_red;
16 led-failsafe = &led_status_green;
17 led-running = &led_status_green;
18 led-upgrade = &led_status_red;
22 compatible = "gpio-keys";
26 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 debounce-interval = <60>;
33 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_WPS_BUTTON>;
39 compatible = "gpio-leds";
41 led_status_red: status_red {
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
46 led_status_green: status_green {
47 label = "green:status";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 label = "red:rssilow";
53 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
57 label = "green:rssilow";
58 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
62 label = "green:rssimed";
63 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
67 label = "green:rssihigh";
68 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <50000000>;
82 compatible = "fixed-partitions";
94 reg = <0x30000 0x10000>;
98 factory: partition@40000 {
100 reg = <0x40000 0x10000>;
103 compatible = "nvmem-cells";
104 #address-cells = <1>;
107 macaddr_factory_e000: macaddr@e000 {
113 compatible = "denx,uimage";
115 reg = <0x50000 0xfb0000>;
127 compatible = "mediatek,mt76";
128 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&factory 0x0>;
130 /* The correct MAC addresses are set in 10_fix_wifi_mac. */
135 nvmem-cells = <&macaddr_factory_e000>;
136 nvmem-cell-names = "mac-address";
149 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
154 groups = "uart3", "jtag", "wdt";