ath79: rename tl-archer-c7 to archer-c7
[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                 #address-cells = <1>;
15                 #size-cells = <0>;
16                 poll-interval = <20>;
17                 pinctrl-names = "default";
18                 pinctrl-0 = <&jtag_disable_pins>;
19
20                 button@0 {
21                         label = "reset";
22                         linux,code = <KEY_RESTART>;
23                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
24                 };
25
26                 button@1 {
27                         label = "button right";
28                         linux,code = <BTN_0>;
29                         gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
30                 };
31
32                 button@3 {
33                         label = "button left";
34                         linux,code = <BTN_1>;
35                         gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
36                 };
37         };
38
39         leds {
40                 compatible = "gpio-leds";
41
42                 usb {
43                         label = "gl-ar300m:green:usb";
44                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
45                         trigger-sources = <&hub_port>;
46                         linux,default-trigger = "usbport";
47                 };
48
49                 wlan {
50                         label = "gl-ar300m:green:wlan";
51                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
52                         linux,default-trigger = "phy0tpt";
53                 };
54
55                 lan {
56                         label = "gl-ar300m:green:lan";
57                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
58                 };
59
60                 status {
61                         label = "gl-ar300m:green:status";
62                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
63                 };
64         };
65 };
66
67 &pcie0 {
68         status = "okay";
69 };
70
71 &uart {
72         status = "okay";
73 };
74
75 &usb0 {
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 };