1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include <dt-bindings/clock/ath79-clk.h>
6 compatible = "qca,qca9557";
17 compatible = "mips,mips74Kc";
18 clocks = <&pll ATH79_CLK_CPU>;
24 compatible = "fixed-clock";
26 clock-output-names = "ref";
27 clock-frequency = <40000000>;
32 ddr_ctrl: memory-controller@18000000 {
33 compatible = "qca,ar9557-ddr-controller",
34 "qca,ar7240-ddr-controller";
35 reg = <0x18000000 0x100>;
37 #qca,ddr-wb-channel-cells = <1>;
41 compatible = "ns16550a";
42 reg = <0x18020000 0x20>;
46 clocks = <&pll ATH79_CLK_REF>;
56 usb_phy0: usb-phy@18030000 {
57 compatible ="qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
59 reset-names = "usb-phy", "usb-suspend-override";
60 resets = <&rst 4>, <&rst 3>;
68 compatible = "qca,qca9550-usb-phy", "qca,ar7200-usb-phy";
70 reset-names = "usb-phy", "usb-suspend-override";
71 resets = <&rst2 4>, <&rst2 3>;
79 compatible = "qca,ar9557-gpio",
81 reg = <0x18040000 0x28>;
90 #interrupt-cells = <2>;
93 pinmux: pinmux@1804002c {
94 compatible = "pinctrl-single";
96 reg = <0x1804002c 0x40>;
100 pinctrl-single,bit-per-mux;
101 pinctrl-single,register-width = <32>;
102 pinctrl-single,function-mask = <0x1>;
103 #pinctrl-cells = <2>;
105 jtag_disable_pins: pinmux_jtag_disable_pins {
106 pinctrl-single,bits = <0x40 0x2 0x2>;
110 pll: pll-controller@18050000 {
111 compatible = "qca,ar9557-pll",
113 reg = <0x18050000 0x50>;
116 clock-output-names = "cpu", "ddr", "ahb";
122 compatible = "qca,ar7130-wdt";
123 reg = <0x18060008 0x8>;
127 clocks = <&pll ATH79_CLK_AHB>;
131 rst: reset-controller@1806001c {
132 compatible = "qca,qca9550-reset",
135 reg = <0x1806001c 0x4>;
138 interrupt-parent = <&cpuintc>;
140 intc2: interrupt-controller@2 {
141 compatible = "qca,ar9340-intc";
143 interrupt-parent = <&cpuintc>;
146 interrupt-controller;
147 #interrupt-cells = <1>;
149 qca,int-status-addr = <0xac>;
150 qca,pending-bits = <0xf>, /* wmac */
151 <0x1f0>; /* pcie rc 0 */
154 intc3: interrupt-controller@3 {
155 compatible = "qca,ar9340-intc";
157 interrupt-parent = <&cpuintc>;
160 interrupt-controller;
161 #interrupt-cells = <1>;
163 qca,int-status-addr = <0xac>;
164 qca,pending-bits = <0x1f000>, /* pcie rc 1 */
165 <0x1000000>, /* usb1 */
166 <0x10000000>; /* usb2 */
170 rst2: reset-controller@180600c0 {
171 compatible = "qca,qca9550-reset",
174 reg = <0x180600c0 0x4>;
179 pcie0: pcie-controller@180c0000 {
180 compatible = "qcom,ar7240-pci";
181 #address-cells = <3>;
183 bus-range = <0x0 0x0>;
184 reg = <0x180c0000 0x1000>, /* CRP */
185 <0x180f0000 0x100>, /* CTRL */
186 <0x14000000 0x1000>; /* CFG */
187 reg-names = "crp_base", "ctrl_base", "cfg_base";
188 ranges = <0x2000000 0 0x10000000 0x10000000 0 0x04000000 /* pci memory */
189 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
190 interrupt-parent = <&intc2>;
193 interrupt-controller;
194 #interrupt-cells = <1>;
196 interrupt-map-mask = <0 0 0 1>;
197 interrupt-map = <0 0 0 0 &pcie0 0>;
201 pcie1: pcie-controller@18250000 {
202 compatible = "qcom,ar7240-pci";
203 #address-cells = <3>;
205 bus-range = <0x0 0x0>;
206 reg = <0x18250000 0x1000>, /* CRP */
207 <0x18280000 0x100>, /* CTRL */
208 <0x16000000 0x1000>; /* CFG */
209 reg-names = "crp_base", "ctrl_base", "cfg_base";
210 ranges = <0x2000000 0 0x12000000 0x12000000 0 0x02000000 /* pci memory */
211 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
212 interrupt-parent = <&intc3>;
215 interrupt-controller;
216 #interrupt-cells = <1>;
218 interrupt-map-mask = <0 0 0 1>;
219 interrupt-map = <0 0 0 0 &pcie1 0>;
223 gmac: gmac@18070000 {
224 compatible = "qca,qca9550-gmac";
225 reg = <0x18070000 0x14>;
228 wmac: wmac@18100000 {
229 compatible = "qca,qca9550-wmac";
230 reg = <0x18100000 0x10000>;
232 interrupt-parent = <&intc2>;
240 compatible = "generic-ehci";
241 reg = <0x1b000000 0x1fc>;
243 interrupt-parent = <&intc3>;
246 reset-names = "usb-host";
248 has-transaction-translator;
249 caps-offset = <0x100>;
251 phy-names = "usb-phy0";
258 compatible = "generic-ehci";
259 reg = <0x1b400000 0x1fc>;
261 interrupt-parent = <&intc3>;
264 reset-names = "usb-host";
266 has-transaction-translator;
267 caps-offset = <0x100>;
269 phy-names = "usb-phy1";
276 compatible = "qca,ar9557-spi", "qca,ar7100-spi";
277 reg = <0x1f000000 0x10>;
279 clocks = <&pll ATH79_CLK_AHB>;
284 #address-cells = <1>;
292 reset-names = "mdio";
296 compatible = "qca,qca9550-eth", "syscon", "simple-mfd";
298 pll-data = <0x82000101 0x80000101 0x80001313>;
307 reset-names = "mdio";
311 compatible = "qca,qca9550-eth", "syscon", "simple-mfd";
313 pll-data = <0x82000101 0x80000101 0x80001313>;