ath79: enable UART in SoC DTSI files
[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 "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &wmac;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 linux,code = <KEY_RESTART>;
19 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
20 debounce-interval = <60>;
21 };
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 wlan {
28 label = "red:wlan";
29 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
30 linux,default-trigger = "phy0tpt";
31 };
32
33 lan {
34 label = "green:lan";
35 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
36 };
37 };
38
39 reg_usb_vbus: reg_usb_vbus {
40 compatible = "regulator-fixed";
41 regulator-name = "usb_vbus";
42 regulator-min-microvolt = <5000000>;
43 regulator-max-microvolt = <5000000>;
44 enable-active-high;
45 };
46 };
47
48 &eth0 {
49 status = "okay";
50
51 mtd-mac-address = <&uboot 0x1fc00>;
52
53 gmac-config {
54 device = <&gmac>;
55
56 switch-phy-addr-swap = <0>;
57 switch-phy-swap = <0>;
58 };
59 };
60
61 &eth1 {
62 status = "okay";
63
64 mtd-mac-address = <&uboot 0x1fc00>;
65 };
66
67 &usb {
68 dr_mode = "host";
69 vbus-supply = <&reg_usb_vbus>;
70 status = "okay";
71 };
72
73 &usb_phy {
74 status = "okay";
75 };
76
77 &wmac {
78 status = "okay";
79
80 mtd-cal-data = <&art 0x1000>;
81 mtd-mac-address = <&uboot 0x1fc00>;
82 };