ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.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 #include <dt-bindings/leds/common.h>
8
9 / {
10 keys {
11 compatible = "gpio-keys";
12
13 reset {
14 label = "reset";
15 linux,code = <KEY_RESTART>;
16 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
17 debounce-interval = <60>;
18 };
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 wlan {
25 function = LED_FUNCTION_WLAN;
26 color = <LED_COLOR_ID_RED>;
27 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 linux,default-trigger = "phy0tpt";
29 };
30
31 lan {
32 function = LED_FUNCTION_LAN;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
35 };
36 };
37
38 reg_usb_vbus: reg_usb_vbus {
39 compatible = "regulator-fixed";
40 regulator-name = "usb_vbus";
41 regulator-min-microvolt = <5000000>;
42 regulator-max-microvolt = <5000000>;
43 enable-active-high;
44 };
45 };
46
47 &eth0 {
48 status = "okay";
49
50 gmac-config {
51 device = <&gmac>;
52
53 switch-phy-addr-swap = <0>;
54 switch-phy-swap = <0>;
55 };
56 };
57
58 &eth1 {
59 status = "okay";
60 };
61
62 &usb {
63 dr_mode = "host";
64 vbus-supply = <&reg_usb_vbus>;
65 status = "okay";
66 };
67
68 &usb_phy {
69 status = "okay";
70 };
71
72 &wmac {
73 status = "okay";
74 };