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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "dlink,dap-x1860-a1", "mediatek,mt7621-soc";
11 model = "D-Link DAP-X1860 A1";
14 bootargs = "console=ttyS0,115200";
18 label-mac-device = &gmac0;
19 led-boot = &led_power_green;
20 led-failsafe = &led_power_red;
21 led-running = &led_power_green;
22 led-upgrade = &led_power_red;
26 compatible = "gpio-keys";
30 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 compatible = "gpio-leds";
44 led_power_green: power_green {
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
51 led_power_red: power_red {
52 function = LED_FUNCTION_POWER;
53 color = <LED_COLOR_ID_RED>;
54 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
58 function = LED_FUNCTION_POWER;
59 color = <LED_COLOR_ID_ORANGE>;
60 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
64 label = "green:rssihigh";
65 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
69 label = "green:rssimedium";
70 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
74 label = "orange:rssilow";
75 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
79 label = "green:rssilow";
80 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
85 compatible = "mtd-concat";
87 devices = <&fwconcat0 &fwconcat1>;
90 compatible = "fixed-partitions";
106 /* rsvd = Remapping Range / NAND Erase-Size */
107 /* rsvd = 0x800000 / 0x20000 */
108 mediatek,bmt-max-reserved-blocks = <64>;
109 /* Remapping should include raw-nand we operate upon without UBI layer. */
110 /* This includes (at least) the kernel which has to be loaded by U-Boot.*/
111 mediatek,bmt-remap-range =
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
120 label = "bootloader";
127 reg = <0x80000 0x80000>;
131 factory: partition@100000 {
133 reg = <0x100000 0x80000>;
137 compatible = "fixed-layout";
138 #address-cells = <1>;
141 eeprom_factory_0: eeprom@0 {
145 macaddr_factory_4: macaddr@4 {
149 precal_factory_e10: precal@e10 {
150 reg = <0xe10 0x19c10>;
157 reg = <0x180000 0x0800000>;
160 fwconcat0: partition@980000 {
162 reg = <0x980000 0x2c00000>;
166 label = "manufacture";
167 reg = <0x3580000 0x400000>;
173 reg = <0x3980000 0x680000>;
177 fwconcat1: partition@4000000 {
179 reg = <0x4000000 0x3800000>;
190 compatible = "mediatek,mt76";
191 reg = <0x0000 0 0 0 0>;
192 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
193 nvmem-cell-names = "eeprom", "precal";
194 mediatek,disable-radar-background;
199 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
203 nvmem-cells = <&macaddr_factory_4>;
204 nvmem-cell-names = "mac-address";