2019-07-03 21:22:31 +00:00
|
|
|
#include "mt7628an_tplink_8m.dtsi"
|
2018-03-17 17:47:51 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "tplink,tl-wr902ac-v3", "mediatek,mt7628an-soc";
|
|
|
|
model = "TP-Link TL-WR902AC v3";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
2018-03-17 17:47:51 +00:00
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
|
2018-03-17 17:47:51 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sw1 {
|
|
|
|
label = "sw1";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
2018-03-17 17:47:51 +00:00
|
|
|
linux,code = <BTN_0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sw2 {
|
|
|
|
label = "sw2";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
|
2018-03-17 17:47:51 +00:00
|
|
|
linux,code = <BTN_1>;
|
|
|
|
};
|
2018-07-09 10:54:18 +00:00
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
|
2018-07-09 10:54:18 +00:00
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2018-03-17 17:47:51 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
lan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:lan";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:power";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
usb {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:usb";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
|
2018-08-13 15:14:08 +00:00
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wan";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wlan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wlan";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wps";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "i2s", "p0led_an", "p2led_an", "p4led_an", "uart1", "wdt", "wled_an";
|
|
|
|
function = "gpio";
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
2018-07-21 14:19:46 +00:00
|
|
|
};
|
2018-03-17 17:47:51 +00:00
|
|
|
|
2018-07-21 14:19:46 +00:00
|
|
|
&pcie0 {
|
|
|
|
mt76@0,0 {
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
mediatek,mtd-eeprom = <&factory 0x28000>;
|
|
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cells = <&macaddr_factory_f100>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2021-07-12 19:42:41 +00:00
|
|
|
mac-address-increment = <(-1)>;
|
2018-03-17 17:47:51 +00:00
|
|
|
};
|
|
|
|
};
|