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";
97 /* rsvd = Remapping Range / NAND Erase-Size */
98 /* rsvd = 0x800000 / 0x20000 */
99 mediatek,bmt-max-reserved-blocks = <64>;
100 /* Remapping should include raw-nand we operate upon without UBI layer. */
101 /* This includes (at least) the kernel which has to be loaded by U-Boot.*/
102 mediatek,bmt-remap-range =
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
111 label = "bootloader";
118 reg = <0x80000 0x80000>;
122 factory: partition@100000 {
124 reg = <0x100000 0x80000>;
127 compatible = "nvmem-cells";
128 #address-cells = <1>;
131 macaddr_factory_4: macaddr@4 {
138 reg = <0x180000 0x0800000>;
141 fwconcat0: partition@980000 {
143 reg = <0x980000 0x2c00000>;
147 label = "manufacture";
148 reg = <0x3580000 0x400000>;
154 reg = <0x3980000 0x680000>;
158 fwconcat1: partition@4000000 {
160 reg = <0x4000000 0x3800000>;
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173 mediatek,mtd-eeprom = <&factory 0x0>;
174 mediatek,disable-radar-background;
179 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
183 nvmem-cells = <&macaddr_factory_4>;
184 nvmem-cell-names = "mac-address";