ath79: make TP-Link revision naming consistent
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_glinet_gl-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         aliases {
10                 led-boot = &led_status;
11                 led-failsafe = &led_status;
12                 led-running = &led_status;
13                 led-upgrade = &led_status;
14         };
15
16         keys {
17                 compatible = "gpio-keys-polled";
18                 poll-interval = <20>;
19                 pinctrl-names = "default";
20                 pinctrl-0 = <&jtag_disable_pins>;
21
22                 button0 {
23                         label = "reset";
24                         linux,code = <KEY_RESTART>;
25                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
26                 };
27
28                 button1 {
29                         label = "button right";
30                         linux,code = <BTN_0>;
31                         gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
32                 };
33
34                 button3 {
35                         label = "button left";
36                         linux,code = <BTN_1>;
37                         gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
38                 };
39         };
40
41         leds {
42                 compatible = "gpio-leds";
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                 led_status: status {
56                         label = "gl-ar300m:red:status";
57                         gpios = <&gpio 12 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
76 &usb_phy {
77         status = "okay";
78 };
79
80 &eth0 {
81         status = "okay";
82         mtd-mac-address = <&art 0x0>;
83         phy-handle = <&swphy4>;
84 };
85
86 &eth1 {
87         mtd-mac-address = <&art 0x0>;
88         mtd-mac-address-increment = <1>;
89 };
90
91 &wmac {
92         status = "okay";
93         mtd-cal-data = <&art 0x1000>;
94         mtd-mac-address = <&art 0x1002>;
95 };