1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "mediatek,mt7621-soc";
12 label-mac-device = &gmac0;
13 led-boot = &led_power_white;
14 led-failsafe = &led_power_orange;
15 led-running = &led_power_white;
16 led-upgrade = &led_power_orange;
20 compatible = "gpio-keys";
24 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RFKILL>;
36 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 compatible = "gpio-leds";
44 led_power_orange: power_orange {
45 gpios = <&gpio_expander 0 GPIO_ACTIVE_LOW>;
46 label = "orange:power";
49 led_power_white: power_white {
50 gpios = <&gpio_expander 1 GPIO_ACTIVE_LOW>;
51 label = "white:power";
55 gpios = <&gpio_expander 2 GPIO_ACTIVE_LOW>;
60 gpios = <&gpio_expander 3 GPIO_ACTIVE_LOW>;
65 gpios = <&gpio_expander 4 GPIO_ACTIVE_LOW>;
66 label = "white:wlan2g";
67 linux,default-trigger = "phy0radio";
71 gpios = <&gpio_expander 5 GPIO_ACTIVE_LOW>;
72 label = "white:wlan5g";
73 linux,default-trigger = "phy1radio";
77 gpios = <&gpio_expander 7 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "usbport";
80 trigger-sources = <&xhci_ehci_port1>;
84 gpios = <&gpio_expander 8 GPIO_ACTIVE_LOW>;
85 label = "orange:lan1";
89 gpios = <&gpio_expander 9 GPIO_ACTIVE_LOW>;
94 gpios = <&gpio_expander 10 GPIO_ACTIVE_LOW>;
95 label = "orange:lan2";
99 gpios = <&gpio_expander 11 GPIO_ACTIVE_LOW>;
100 label = "white:lan2";
104 gpios = <&gpio_expander 12 GPIO_ACTIVE_LOW>;
105 label = "orange:lan3";
109 gpios = <&gpio_expander 13 GPIO_ACTIVE_LOW>;
110 label = "white:lan3";
114 gpios = <&gpio_expander 14 GPIO_ACTIVE_LOW>;
115 label = "orange:lan4";
119 gpios = <&gpio_expander 15 GPIO_ACTIVE_LOW>;
120 label = "white:lan4";
124 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
129 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
130 label = "white:wlan";
137 groups = "uart3", "uart2", "jtag", "wdt";
148 compatible = "mediatek,mt76";
150 mediatek,mtd-eeprom = <&factory 0x0>;
151 ieee80211-freq-limit = <2400000 2500000>;
157 compatible = "mediatek,mt76";
159 mediatek,mtd-eeprom = <&factory 0x8000>;
160 ieee80211-freq-limit = <5000000 6000000>;
165 mtd-mac-address = <&factory 0x4>;
193 mtd-mac-address = <&factory 0x4>;
194 mtd-mac-address-increment = <2>;
202 gpio_expander: i2c0gpio-expander@20{
204 #interrupt-cells = <2>;
205 compatible = "semtech,sx1503q";
216 compatible = "fixed-partitions";
217 #address-cells = <1>;
222 reg = <0x0 0x100000>;
227 label = "SC PART_MAP";
228 reg = <0x100000 0x100000>;
234 reg = <0x200000 0x400000>;
239 reg = <0x600000 0x2800000>;
244 reg = <0x2e00000 0x1800000>;
248 factory: partition@4600000 {
250 reg = <0x4600000 0x200000>;
256 reg = <0x4800000 0x3800000>;