mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 23:12:48 +00:00
93 lines
1.4 KiB
Plaintext
93 lines
1.4 KiB
Plaintext
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||
|
|
||
|
#include <dt-bindings/gpio/gpio.h>
|
||
|
#include <dt-bindings/input/input.h>
|
||
|
|
||
|
#include "ar9331.dtsi"
|
||
|
|
||
|
/ {
|
||
|
aliases {
|
||
|
serial0 = &uart;
|
||
|
led-boot = &led_system;
|
||
|
led-failsafe = &led_system;
|
||
|
led-running = &led_system;
|
||
|
led-upgrade = &led_system;
|
||
|
};
|
||
|
|
||
|
keys {
|
||
|
compatible = "gpio-keys-polled";
|
||
|
poll-interval = <20>;
|
||
|
|
||
|
reset {
|
||
|
label = "reset";
|
||
|
linux,code = <KEY_RESTART>;
|
||
|
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||
|
debounce-interval = <60>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
leds {
|
||
|
compatible = "gpio-leds";
|
||
|
|
||
|
led_system: system {
|
||
|
label = "tl-wr710n:green:system";
|
||
|
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
reg_usb_vbus: regulator {
|
||
|
compatible = "regulator-fixed";
|
||
|
regulator-name = "usb_vbus";
|
||
|
regulator-min-microvolt = <5000000>;
|
||
|
regulator-max-microvolt = <5000000>;
|
||
|
gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
|
||
|
enable-active-high;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
ð0 {
|
||
|
status = "okay";
|
||
|
|
||
|
mtd-mac-address = <&uboot 0x1fc00>;
|
||
|
|
||
|
gmac-config {
|
||
|
device = <&gmac>;
|
||
|
|
||
|
switch-phy-addr-swap = <0>;
|
||
|
switch-phy-swap = <0>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
ð1 {
|
||
|
status = "okay";
|
||
|
|
||
|
mtd-mac-address = <&uboot 0x1fc00>;
|
||
|
mtd-mac-address-increment = <(-1)>;
|
||
|
};
|
||
|
|
||
|
&gpio {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&uart {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&usb {
|
||
|
status = "okay";
|
||
|
|
||
|
dr_mode = "host";
|
||
|
vbus-supply = <®_usb_vbus>;
|
||
|
};
|
||
|
|
||
|
&usb_phy {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&wmac {
|
||
|
status = "okay";
|
||
|
|
||
|
mtd-cal-data = <&art 0x1000>;
|
||
|
mtd-mac-address = <&uboot 0x1fc00>;
|
||
|
};
|