2018-12-18 07:00:52 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
2019-07-03 21:22:31 +00:00
|
|
|
#include "mt7628an_tplink_8m.dtsi"
|
2018-12-18 07:00:52 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "tplink,tl-wr802n-v4", "mediatek,mt7628an-soc";
|
|
|
|
model = "TP-Link TL-WR802N v4";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
2019-09-20 12:03:02 +00:00
|
|
|
compatible = "gpio-keys";
|
2018-12-18 07:00:52 +00:00
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
|
2018-12-18 07:00:52 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_power: power {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:power";
|
2020-04-09 09:10:03 +00:00
|
|
|
gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
|
2018-12-18 07:00:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-12-01 13:48:41 +00:00
|
|
|
&ehci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "refclk", "wdt";
|
|
|
|
function = "gpio";
|
2018-12-18 07:00:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cells = <&macaddr_factory_f100>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
};
|