ath79: add support for ON Networks N150R
[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         memory@0 {
13                 device_type = "memory";
14                 reg = <0x0 0x8000000>;
15         };
16
17         extosc: ref {
18                 compatible = "fixed-clock";
19                 #clock-cells = <0>;
20                 clock-output-names = "ref";
21                 clock-frequency = <25000000>;
22         };
23
24         keys {
25                 compatible = "gpio-keys-polled";
26                 #address-cells = <1>;
27                 #size-cells = <0>;
28                 poll-interval = <20>;
29                 pinctrl-names = "default";
30                 pinctrl-0 = <&jtag_disable_pins>;
31
32                 button@0 {
33                         label = "reset";
34                         linux,code = <KEY_RESTART>;
35                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
36                 };
37
38                 button@1 {
39                         label = "button right";
40                         linux,code = <BTN_0>;
41                         gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
42                 };
43
44                 button@3 {
45                         label = "button left";
46                         linux,code = <BTN_1>;
47                         gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
48                 };
49         };
50
51         leds {
52                 compatible = "gpio-leds";
53
54                 usb {
55                         label = "gl-ar300m:green:usb";
56                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57                         trigger-sources = <&hub_port>;
58                         linux,default-trigger = "usbport";
59                 };
60
61                 wlan {
62                         label = "gl-ar300m:green:wlan";
63                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
64                         linux,default-trigger = "phy0tpt";
65                 };
66
67                 lan {
68                         label = "gl-ar300m:green:lan";
69                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
70                 };
71
72                 status {
73                         label = "gl-ar300m:green:status";
74                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
75                 };
76         };
77 };
78
79 &pcie0 {
80         status = "okay";
81 };
82
83 &uart {
84         status = "okay";
85 };
86
87 &usb0 {
88         status = "okay";
89
90         hub_port: port@1 {
91                 reg = <1>;
92                 #trigger-soruce-cells = <0>;
93         };
94 };
95
96 &usb_phy {
97         status = "okay";
98 };
99
100 &pll {
101         clocks = <&extosc>;
102 };
103
104 &mdio0 {
105         status = "okay";
106
107         phy4: ethernet-phy@4 {
108                 reg = <4>;
109                 phy-mode = "mii";
110         };
111 };
112
113 &mdio1 {
114         status = "okay";
115 };
116
117 &eth0 {
118         status = "okay";
119
120         mtd-mac-address = <&art 0x0>;
121         phy-handle = <&phy4>;
122         phy-mode = "mii";
123 };
124
125 &eth1 {
126         status = "okay";
127
128         mtd-mac-address = <&art 0x6>;
129         phy-mode = "gmii";
130
131         fixed-link {
132                 speed = <1000>;
133                 full-duplex;
134         };
135 };
136
137 &wmac {
138         status = "okay";
139         mtd-cal-data = <&art 0x1000>;
140         mtd-mac-address = <&art 0x1002>;
141 };