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