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 {
128 compatible = "nvmem-cells";
130 reg = <0x100000 0x80000>;
131 #address-cells = <1>;
135 eeprom_factory_0: eeprom@0 {
139 macaddr_factory_4: macaddr@4 {
146 reg = <0x180000 0x0800000>;
149 fwconcat0: partition@980000 {
151 reg = <0x980000 0x2c00000>;
155 label = "manufacture";
156 reg = <0x3580000 0x400000>;
162 reg = <0x3980000 0x680000>;
166 fwconcat1: partition@4000000 {
168 reg = <0x4000000 0x3800000>;
179 compatible = "mediatek,mt76";
180 reg = <0x0000 0 0 0 0>;
181 nvmem-cells = <&eeprom_factory_0>;
182 nvmem-cell-names = "eeprom";
183 mediatek,disable-radar-background;
188 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
192 nvmem-cells = <&macaddr_factory_4>;
193 nvmem-cell-names = "mac-address";