modules: Add kernel module for MV88E6xxx DSA switch
[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 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "green:system";
33 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 reg_usb_vbus: regulator {
38 compatible = "regulator-fixed";
39 regulator-name = "usb_vbus";
40 regulator-min-microvolt = <5000000>;
41 regulator-max-microvolt = <5000000>;
42 gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
43 enable-active-high;
44 };
45 };
46
47 &eth0 {
48 status = "okay";
49
50 mtd-mac-address = <&uboot 0x1fc00>;
51
52 gmac-config {
53 device = <&gmac>;
54
55 switch-phy-addr-swap = <0>;
56 switch-phy-swap = <0>;
57 };
58 };
59
60 &eth1 {
61 status = "okay";
62
63 mtd-mac-address = <&uboot 0x1fc00>;
64 mtd-mac-address-increment = <(-1)>;
65 };
66
67 &usb {
68 status = "okay";
69
70 dr_mode = "host";
71 vbus-supply = <&reg_usb_vbus>;
72 };
73
74 &usb_phy {
75 status = "okay";
76 };
77
78 &wmac {
79 status = "okay";
80
81 mtd-cal-data = <&art 0x1000>;
82 mtd-mac-address = <&uboot 0x1fc00>;
83 };