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/mtd/partitions/uimage.h>
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
21 compatible = "gpio-keys";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
41 label = "green:status";
42 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
61 label = "green:signal";
62 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
67 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
72 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
77 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
81 label = "green:wlan5g";
82 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "phy0tpt";
87 label = "green:wlan2g";
88 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
89 linux,default-trigger = "phy1tpt";
120 compatible = "mediatek,mt76";
121 reg = <0x0000 0 0 0 0>;
122 ieee80211-freq-limit = <5000000 6000000>;
130 compatible = "jedec,spi-nor";
132 spi-max-frequency = <50000000>;
135 compatible = "fixed-partitions";
136 #address-cells = <1>;
146 compatible = "openwrt,uimage", "denx,uimage";
147 openwrt,ih-magic = <IH_MAGIC_OKLI>;
148 openwrt,offset = <0x10000>;
150 reg = <0x10000 0xfe0000>;
153 config: partition@ff0000 {
155 reg = <0xff0000 0x10000>;
159 compatible = "fixed-layout";
160 #address-cells = <1>;
163 eeprom_config_e08e: eeprom@e08e {
164 reg = <0xe08e 0x200>;
167 eeprom_config_e29e: eeprom@e29e {
168 reg = <0xe29e 0x200>;
171 macaddr_config_e50e: macaddr@e50e {
182 groups = "i2c", "wled", "spi refclk", "uartf", "ephy";