2019-12-08 19:18:58 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
2020-09-25 19:52:57 +00:00
|
|
|
#include "ar9331.dtsi"
|
|
|
|
|
2019-12-08 19:18:58 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
2024-02-07 13:48:34 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2019-12-08 19:18:58 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
wlan {
|
2024-02-07 13:48:34 +00:00
|
|
|
function = LED_FUNCTION_WLAN;
|
|
|
|
color = <LED_COLOR_ID_RED>;
|
2019-12-08 19:18:58 +00:00
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
linux,default-trigger = "phy0tpt";
|
|
|
|
};
|
|
|
|
|
|
|
|
lan {
|
2024-02-07 13:48:34 +00:00
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
2019-12-08 19:18:58 +00:00
|
|
|
gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
reg_usb_vbus: reg_usb_vbus {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "usb_vbus";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
gmac-config {
|
|
|
|
device = <&gmac>;
|
|
|
|
|
|
|
|
switch-phy-addr-swap = <0>;
|
|
|
|
switch-phy-swap = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb {
|
|
|
|
dr_mode = "host";
|
|
|
|
vbus-supply = <®_usb_vbus>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
|
|
|
};
|