ath79: add support for TP-Link Archer A7
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_glinet_ar300m.dtsi
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca953x.dtsi"
7
8 / {
9         keys {
10                 compatible = "gpio-keys-polled";
11                 poll-interval = <20>;
12                 pinctrl-names = "default";
13                 pinctrl-0 = <&jtag_disable_pins>;
14
15                 button0 {
16                         label = "reset";
17                         linux,code = <KEY_RESTART>;
18                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
19                 };
20
21                 button1 {
22                         label = "button right";
23                         linux,code = <BTN_0>;
24                         gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
25                 };
26
27                 button3 {
28                         label = "button left";
29                         linux,code = <BTN_1>;
30                         gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
31                 };
32         };
33
34         leds {
35                 compatible = "gpio-leds";
36
37                 usb {
38                         label = "gl-ar300m:green:usb";
39                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
40                         trigger-sources = <&hub_port>;
41                         linux,default-trigger = "usbport";
42                 };
43
44                 wlan {
45                         label = "gl-ar300m:green:wlan";
46                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
47                         linux,default-trigger = "phy0tpt";
48                 };
49
50                 lan {
51                         label = "gl-ar300m:green:lan";
52                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
53                 };
54
55                 status {
56                         label = "gl-ar300m:green:status";
57                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
58                 };
59         };
60 };
61
62 &pcie0 {
63         status = "okay";
64 };
65
66 &uart {
67         status = "okay";
68 };
69
70 &usb0 {
71         #address-cells = <1>;
72         #size-cells = <0>;
73         status = "okay";
74
75         hub_port: port@1 {
76                 reg = <1>;
77                 #trigger-source-cells = <0>;
78         };
79 };
80
81 &usb_phy {
82         status = "okay";
83 };
84
85 &eth0 {
86         status = "okay";
87         mtd-mac-address = <&art 0x0>;
88         phy-handle = <&swphy4>;
89 };
90
91 &eth1 {
92         mtd-mac-address = <&art 0x6>;
93 };
94
95 &wmac {
96         status = "okay";
97         mtd-cal-data = <&art 0x1000>;
98         mtd-mac-address = <&art 0x1002>;
99 };