tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / ar9331_glinet_64xx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 reset {
13 label = "reset";
14 linux,code = <KEY_RESTART>;
15 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
16 debounce-interval = <60>;
17 };
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wlan {
24 label = "red:wlan";
25 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
26 linux,default-trigger = "phy0tpt";
27 };
28
29 lan {
30 label = "green:lan";
31 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
32 };
33 };
34
35 reg_usb_vbus: reg_usb_vbus {
36 compatible = "regulator-fixed";
37 regulator-name = "usb_vbus";
38 regulator-min-microvolt = <5000000>;
39 regulator-max-microvolt = <5000000>;
40 enable-active-high;
41 };
42 };
43
44 &eth0 {
45 status = "okay";
46
47 gmac-config {
48 device = <&gmac>;
49
50 switch-phy-addr-swap = <0>;
51 switch-phy-swap = <0>;
52 };
53 };
54
55 &eth1 {
56 status = "okay";
57 };
58
59 &usb {
60 dr_mode = "host";
61 vbus-supply = <&reg_usb_vbus>;
62 status = "okay";
63 };
64
65 &usb_phy {
66 status = "okay";
67 };
68
69 &wmac {
70 status = "okay";
71 };