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>;
133 compatible = "fixed-layout";
134 #address-cells = <1>;
137 eeprom_factory_0: eeprom@0 {
141 macaddr_factory_4: macaddr@4 {
145 precal_factory_e10: precal@e10 {
146 reg = <0xe10 0x19c10>;
153 reg = <0x180000 0x0800000>;
156 fwconcat0: partition@980000 {
158 reg = <0x980000 0x2c00000>;
162 label = "manufacture";
163 reg = <0x3580000 0x400000>;
169 reg = <0x3980000 0x680000>;
173 fwconcat1: partition@4000000 {
175 reg = <0x4000000 0x3800000>;
186 compatible = "mediatek,mt76";
187 reg = <0x0000 0 0 0 0>;
188 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
189 nvmem-cell-names = "eeprom", "precal";
190 mediatek,disable-radar-background;
195 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
199 nvmem-cells = <&macaddr_factory_4>;
200 nvmem-cell-names = "mac-address";