1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/clock/ath79-clk.h>
8 compatible = "qca,ar9340";
14 bootargs = "console=ttyS0,115200";
23 compatible = "mips,mips74Kc";
24 clocks = <&pll ATH79_CLK_CPU>;
36 compatible = "fixed-clock";
37 clock-output-names = "ref";
42 compatible = "simple-bus";
49 compatible = "simple-bus";
55 ddr_ctrl: memory-controller@18000000 {
56 compatible = "qca,ar9340-ddr-controller",
57 "qca,ar7240-ddr-controller";
58 reg = <0x18000000 0x12c>;
60 #qca,ddr-wb-channel-cells = <1>;
64 compatible = "ns16550a";
65 reg = <0x18020000 0x2c>;
69 clocks = <&pll ATH79_CLK_REF>;
80 compatible = "qca,ar9340-gpio";
81 reg = <0x18040000 0x2c>;
90 #interrupt-cells = <2>;
93 pinmux: pinmux@1804002c {
94 compatible = "pinctrl-single";
96 reg = <0x1804002c 0x44>;
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,ar9340-pll", "syscon";
112 reg = <0x18050000 0x4c>;
117 clock-output-names = "cpu", "ddr", "ahb";
121 compatible = "qca,ar9340-wdt", "qca,ar7130-wdt";
122 reg = <0x18060008 0x8>;
126 clocks = <&pll ATH79_CLK_AHB>;
130 rst: reset-controller@1806001c {
131 compatible = "qca,ar9340-reset", "qca,ar7100-reset";
132 reg = <0x1806001c 0x4>;
138 nand: nand@1b000200 {
139 compatible = "qca,ar934x-nand";
140 reg = <0x1b000200 0xb8>;
143 interrupt-parent = <&miscintc>;
146 reset-names = "nand";
148 nand-ecc-mode = "hw";
150 #address-cells = <1>;
156 gmac: gmac@18070000 {
157 compatible = "qca,ar9340-gmac";
158 reg = <0x18070000 0x14>;
161 wmac: wmac@18100000 {
162 compatible = "qca,ar9340-wmac";
163 reg = <0x18100000 0x20000>;
169 compatible = "generic-ehci";
170 reg = <0x1b000000 0x1d8>;
174 reset-names = "usb-host";
176 has-transaction-translator;
177 caps-offset = <0x100>;
179 phy-names = "usb-phy";
186 compatible = "qca,ar9340-spi", "qca,ar7100-spi";
187 reg = <0x1f000000 0x1c>;
189 clocks = <&pll ATH79_CLK_AHB>;
192 #address-cells = <1>;
200 compatible = "qca,ar9340-usb-phy", "qca,ar7200-usb-phy";
202 reset-names = "usb-phy", "usb-suspend-override";
203 resets = <&rst 4>, <&rst 3>;
212 compatible = "qca,ar9340-mdio";
216 compatible = "qca,ar9340-eth", "syscon";
218 pll-data = <0x16000000 0x00000101 0x00001616>;
219 pll-reg = <0x4 0x2c 17>;
221 resets = <&rst 9>, <&rst 22>;
222 reset-names = "mac", "mdio";
228 compatible = "qca,ar9340-mdio";
230 reset-names = "mdio";
233 builtin_switch: switch0@1f {
234 compatible = "qca,ar8229";
238 reset-names = "switch";
240 qca,mib-poll-interval = <500>;
244 #address-cells = <1>;
247 swphy0: ethernet-phy@0 {
252 swphy4: ethernet-phy@4 {
261 compatible = "qca,ar9340-eth", "syscon";