ath79: use "fixed-layout" for Embedded Wireless devices
[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 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25 };
26
27 leds {
28 compatible = "gpio-leds";
29
30 led_system: system {
31 label = "green:system";
32 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
33 };
34 };
35
36 reg_usb_vbus: regulator {
37 compatible = "regulator-fixed";
38 regulator-name = "usb_vbus";
39 regulator-min-microvolt = <5000000>;
40 regulator-max-microvolt = <5000000>;
41 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
42 enable-active-high;
43 };
44 };
45
46 &eth0 {
47 status = "okay";
48
49 gmac-config {
50 device = <&gmac>;
51
52 switch-phy-addr-swap = <0>;
53 switch-phy-swap = <0>;
54 };
55 };
56
57 &eth1 {
58 status = "okay";
59 };
60
61 &usb {
62 status = "okay";
63
64 dr_mode = "host";
65 vbus-supply = <&reg_usb_vbus>;
66 };
67
68 &usb_phy {
69 status = "okay";
70 };
71
72 &wmac {
73 status = "okay";
74 };