ath79: update qca9533 to new irq driver
[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 &mdio0 {
89         status = "okay";
90
91         phy4: ethernet-phy@4 {
92                 reg = <4>;
93                 phy-mode = "mii";
94         };
95 };
96
97 &mdio1 {
98         status = "okay";
99 };
100
101 &eth0 {
102         status = "okay";
103
104         mtd-mac-address = <&art 0x0>;
105         phy-handle = <&phy4>;
106         phy-mode = "mii";
107 };
108
109 &eth1 {
110         status = "okay";
111
112         mtd-mac-address = <&art 0x6>;
113         phy-mode = "gmii";
114
115         fixed-link {
116                 speed = <1000>;
117                 full-duplex;
118         };
119 };
120
121 &wmac {
122         status = "okay";
123         mtd-cal-data = <&art 0x1000>;
124         mtd-mac-address = <&art 0x1002>;
125 };