3d3dd87f9b2f2622944d0bd692b96aae9fb1bac2
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9330.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include <dt-bindings/clock/ath79-clk.h>
3 #include "ath79.dtsi"
4
5 / {
6 compatible = "qca,ar9330";
7
8 #address-cells = <1>;
9 #size-cells = <1>;
10
11 cpus {
12 #address-cells = <1>;
13 #size-cells = <0>;
14
15 cpu@0 {
16 device_type = "cpu";
17 compatible = "mips,mips24Kc";
18 clocks = <&pll ATH79_CLK_CPU>;
19 reg = <0>;
20 };
21 };
22
23 chosen {
24 bootargs = "console=ttyATH0,115200";
25 };
26
27 ahb {
28 apb {
29 ddr_ctrl: memory-controller@18000000 {
30 compatible = "qca,ar7240-ddr-controller";
31 reg = <0x18000000 0x100>;
32
33 #qca,ddr-wb-channel-cells = <1>;
34 };
35
36 uart: uart@18020000 {
37 compatible = "qca,ar9330-uart";
38 reg = <0x18020000 0x14>;
39
40 interrupts = <3>;
41
42 clocks = <&pll ATH79_CLK_REF>;
43 clock-names = "uart";
44
45 status = "disabled";
46 };
47
48 gpio: gpio@18040000 {
49 compatible = "qca,ar7100-gpio";
50 reg = <0x18040000 0x34>;
51 interrupts = <2>;
52
53 ngpios = <30>;
54
55 gpio-controller;
56 #gpio-cells = <2>;
57
58 interrupt-controller;
59 #interrupt-cells = <2>;
60
61 status = "disabled";
62 };
63
64 pll: pll-controller@18050000 {
65 compatible = "qca,ar9330-pll";
66 reg = <0x18050000 0x100>;
67
68 #clock-cells = <1>;
69 };
70
71 rst: reset-controller@1806001c {
72 compatible = "qca,ar7100-reset";
73 reg = <0x1806001c 0x4>;
74
75 #reset-cells = <1>;
76 };
77 };
78
79 usb: usb@1b000000 {
80 compatible = "chipidea,usb2";
81 reg = <0x1b000000 0x200>;
82
83 interrupts = <3>;
84 resets = <&rst 5>;
85 reset-names = "usb-host";
86
87 phy-names = "usb-phy";
88 phys = <&usb_phy>;
89
90 status = "disabled";
91 };
92
93 spi: spi@1f000000 {
94 compatible = "qca,ar7100-spi";
95 reg = <0x1f000000 0x10>;
96
97 clocks = <&pll ATH79_CLK_AHB>;
98 clock-names = "ahb";
99
100 #address-cells = <1>;
101 #size-cells = <0>;
102
103 status = "disabled";
104 };
105
106 gmac: gmac@18070000 {
107 compatible = "qca,ar9330-gmac";
108 reg = <0x18070000 0x4>;
109 };
110
111 wmac: wmac@18100000 {
112 compatible = "qca,ar9330-wmac";
113 reg = <0x18100000 0x20000>;
114
115 interrupts = <2>;
116
117 status = "disabled";
118 };
119 };
120
121 usb_phy: usb-phy {
122 compatible = "qca,ar7200-usb-phy";
123
124 reset-names = "usb-phy", "usb-suspend-override";
125 resets = <&rst 4>, <&rst 3>;
126
127 #phy-cells = <0>;
128
129 status = "disabled";
130 };
131 };
132
133 &cpuintc {
134 qca,ddr-wb-channel-interrupts = <2>, <3>;
135 qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>;
136 };
137
138 &eth0 {
139 compatible = "qca,ar9330-eth", "syscon";
140
141 pll-data = <0x00110000 0x00001099 0x00991099>;
142
143 resets = <&rst 9>;
144 reset-names = "mac";
145 };
146
147 &mdio0 {
148 regmap = <&eth1>;
149 builtin-switch;
150 resets = <&rst 23>;
151 reset-names = "mdio";
152 };
153
154 &mdio1 {
155 resets = <&rst 23>;
156 reset-names = "mdio";
157
158 builtin-switch;
159 };
160
161 &eth1 {
162 compatible = "qca,ar9330-eth", "syscon";
163
164 pll-data = <0x00110000 0x00001099 0x00991099>;
165 phy-mode = "gmii";
166
167 resets = <&rst 13>;
168 reset-names = "mac";
169 };