1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2022 Ray Wang
3 // Copyright (c) 2022 Ivan Pavlov
5 #include "mt7628an.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
11 compatible = "asus,rt-ac1200", "mediatek,mt7628an-soc";
12 model = "Asus RT-AC1200";
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 compatible = "gpio-keys";
26 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
42 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
46 label = "blue:wlan2g";
47 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
53 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
54 trigger-sources = <&ohci_port1>, <&ehci_port1>;
55 linux,default-trigger = "usbport";
60 compatible = "gpio-export";
64 gpio-export,name = "led_all";
65 gpio-export,output = <0>;
66 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <40000000>;
80 compatible = "fixed-partitions";
92 reg = <0x30000 0x10000>;
96 factory: partition@40000 {
98 reg = <0x40000 0x10000>;
101 compatible = "nvmem-cells";
102 #address-cells = <1>;
105 macaddr_factory_28: macaddr@28 {
111 compatible = "denx,uimage";
113 reg = <0x50000 0xfb0000>;
120 nvmem-cells = <&macaddr_factory_28>;
121 nvmem-cell-names = "mac-address";
125 mediatek,portmap = <0x3e>;
131 mediatek,mtd-eeprom = <&factory 0x0>;
140 compatible = "mediatek,mt76";
141 reg = <0x0000 0 0 0 0>;
142 mediatek,mtd-eeprom = <&factory 0x8000>;
143 ieee80211-freq-limit = <5000000 6000000>;
154 groups = "i2c", "spi cs1", "refclk", "wled_an";