ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_tplink_tl-wr710n.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 serial0 = &uart;
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 label-mac-device = &eth0;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_system: system {
33 label = "green:system";
34 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 reg_usb_vbus: regulator {
39 compatible = "regulator-fixed";
40 regulator-name = "usb_vbus";
41 regulator-min-microvolt = <5000000>;
42 regulator-max-microvolt = <5000000>;
43 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
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 mtd-mac-address-increment = <(-1)>;
66 };
67
68 &uart {
69 status = "okay";
70 };
71
72 &usb {
73 status = "okay";
74
75 dr_mode = "host";
76 vbus-supply = <&reg_usb_vbus>;
77 };
78
79 &usb_phy {
80 status = "okay";
81 };
82
83 &wmac {
84 status = "okay";
85
86 mtd-cal-data = <&art 0x1000>;
87 mtd-mac-address = <&uboot 0x1fc00>;
88 };