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-x1860-a1", "mediatek,mt7621-soc";
10 model = "D-Link DAP-X1860 A1";
13 bootargs = "console=ttyS0,115200";
17 label-mac-device = &gmac0;
18 led-boot = &led_power_orange;
19 led-failsafe = &led_power_red;
20 led-running = &led_power_orange;
21 led-upgrade = &led_power_red;
25 compatible = "gpio-keys";
29 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
35 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
41 compatible = "gpio-leds";
43 led_power_red: power_red {
45 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
48 led_power_orange: power_orange {
49 label = "orange:power";
50 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
55 label = "green:rssihigh";
56 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
60 label = "green:rssimedium";
61 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
65 label = "orange:rssilow";
66 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
70 label = "green:rssilow";
71 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
76 compatible = "mtd-concat";
78 devices = <&fwconcat0 &fwconcat1>;
81 compatible = "fixed-partitions";
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
104 label = "bootloader";
111 reg = <0x80000 0x80000>;
115 factory: partition@100000 {
117 reg = <0x100000 0x80000>;
120 compatible = "nvmem-cells";
121 #address-cells = <1>;
124 macaddr_factory_4: macaddr@4 {
131 reg = <0x180000 0x0800000>;
134 fwconcat0: partition@980000 {
136 reg = <0x980000 0x2c00000>;
140 label = "manufacture";
141 reg = <0x3580000 0x400000>;
147 reg = <0x3980000 0x680000>;
151 fwconcat1: partition@4000000 {
153 reg = <0x4000000 0x3800000>;
164 compatible = "mediatek,mt76";
165 reg = <0x0000 0 0 0 0>;
166 mediatek,mtd-eeprom = <&factory 0x0>;
167 mediatek,disable-radar-background;
172 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
176 nvmem-cells = <&macaddr_factory_4>;
177 nvmem-cell-names = "mac-address";