ath79: add support for GL.iNet 6408/6416 (GL.iNet V1)
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_glinet_64xx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar9331.dtsi"
7
8 / {
9 aliases {
10 serial0 = &uart;
11 label-mac-device = &wmac;
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 linux,code = <KEY_RESTART>;
20 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
21 debounce-interval = <60>;
22 };
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 wlan {
29 label = "gl-inet:red:wlan";
30 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
31 linux,default-trigger = "phy0tpt";
32 };
33
34 lan {
35 label = "gl-inet:green:lan";
36 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
37 };
38 };
39
40 reg_usb_vbus: reg_usb_vbus {
41 compatible = "regulator-fixed";
42 regulator-name = "usb_vbus";
43 regulator-min-microvolt = <5000000>;
44 regulator-max-microvolt = <5000000>;
45 enable-active-high;
46 };
47 };
48
49 &eth0 {
50 status = "okay";
51
52 mtd-mac-address = <&uboot 0x1fc00>;
53
54 gmac-config {
55 device = <&gmac>;
56
57 switch-phy-addr-swap = <0>;
58 switch-phy-swap = <0>;
59 };
60 };
61
62 &eth1 {
63 status = "okay";
64
65 mtd-mac-address = <&uboot 0x1fc00>;
66 };
67
68 &gpio {
69 status = "okay";
70 };
71
72 &uart {
73 status = "okay";
74 };
75
76 &usb {
77 dr_mode = "host";
78 vbus-supply = <&reg_usb_vbus>;
79 status = "okay";
80 };
81
82 &usb_phy {
83 status = "okay";
84 };
85
86 &wmac {
87 status = "okay";
88
89 mtd-cal-data = <&art 0x1000>;
90 mtd-mac-address = <&uboot 0x1fc00>;
91 };