1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * D-Link DWR-96x Common Board Description
4 * Copyright 2022 Pawel Dembicki <paweldembicki@gmail.com>
6 #include "mt7620a.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11 #include <dt-bindings/mtd/partitions/uimage.h>
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
22 compatible = "gpio-keys";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
39 compatible = "gpio-leds";
42 function = LED_FUNCTION_STATUS;
43 color = <LED_COLOR_ID_GREEN>;
44 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
48 function = LED_FUNCTION_WAN;
49 color = <LED_COLOR_ID_GREEN>;
50 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
54 function = LED_FUNCTION_LAN;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
61 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
65 label = "green:signal";
66 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
71 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
76 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
81 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
85 label = "green:wlan5g";
86 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
87 linux,default-trigger = "phy0tpt";
91 label = "green:wlan2g";
92 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
93 linux,default-trigger = "phy1tpt";
124 compatible = "mediatek,mt76";
125 reg = <0x0000 0 0 0 0>;
126 ieee80211-freq-limit = <5000000 6000000>;
134 compatible = "jedec,spi-nor";
136 spi-max-frequency = <50000000>;
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
150 compatible = "openwrt,uimage", "denx,uimage";
151 openwrt,ih-magic = <IH_MAGIC_OKLI>;
152 openwrt,offset = <0x10000>;
154 reg = <0x10000 0xfe0000>;
159 reg = <0xff0000 0x10000>;
163 compatible = "fixed-layout";
164 #address-cells = <1>;
167 eeprom_config_e08e: eeprom@e08e {
168 reg = <0xe08e 0x200>;
171 eeprom_config_e29e: eeprom@e29e {
172 reg = <0xe29e 0x200>;
175 macaddr_config_e50e: macaddr@e50e {
176 compatible = "mac-base";
178 #nvmem-cell-cells = <1>;
188 groups = "i2c", "wled", "spi refclk", "uartf", "ephy";