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_green;
19 led-failsafe = &led_power_red;
20 led-running = &led_power_green;
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_green: power_green {
44 label = "green:power";
45 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
49 led_power_red: power_red {
51 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
55 label = "orange:power";
56 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
60 label = "green:rssihigh";
61 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
65 label = "green:rssimedium";
66 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
70 label = "orange:rssilow";
71 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
75 label = "green:rssilow";
76 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
81 compatible = "mtd-concat";
83 devices = <&fwconcat0 &fwconcat1>;
86 compatible = "fixed-partitions";
102 /* rsvd = Remapping Range / NAND Erase-Size */
103 /* rsvd = 0x800000 / 0x20000 */
104 mediatek,bmt-max-reserved-blocks = <64>;
105 /* Remapping should include raw-nand we operate upon without UBI layer. */
106 /* This includes (at least) the kernel which has to be loaded by U-Boot.*/
107 mediatek,bmt-remap-range =
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
116 label = "bootloader";
123 reg = <0x80000 0x80000>;
127 factory: partition@100000 {
129 reg = <0x100000 0x80000>;
132 compatible = "nvmem-cells";
133 #address-cells = <1>;
136 macaddr_factory_4: macaddr@4 {
143 reg = <0x180000 0x0800000>;
146 fwconcat0: partition@980000 {
148 reg = <0x980000 0x2c00000>;
152 label = "manufacture";
153 reg = <0x3580000 0x400000>;
159 reg = <0x3980000 0x680000>;
163 fwconcat1: partition@4000000 {
165 reg = <0x4000000 0x3800000>;
176 compatible = "mediatek,mt76";
177 reg = <0x0000 0 0 0 0>;
178 mediatek,mtd-eeprom = <&factory 0x0>;
179 mediatek,disable-radar-background;
184 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
188 nvmem-cells = <&macaddr_factory_4>;
189 nvmem-cell-names = "mac-address";