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