1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include <dt-bindings/clock/ath79-clk.h>
6 compatible = "qca,ar7240";
12 bootargs = "console=ttyS0,115200";
21 compatible = "mips,mips24Kc";
22 clocks = <&pll ATH79_CLK_CPU>;
29 ddr_ctrl: memory-controller@18000000 {
30 compatible = "qca,ar9132-ddr-controller",
31 "qca,ar7240-ddr-controller";
32 reg = <0x18000000 0x100>;
34 #qca,ddr-wb-channel-cells = <1>;
38 compatible = "ns16550a";
39 reg = <0x18020000 0x20>;
42 clocks = <&pll ATH79_CLK_AHB>;
53 compatible = "qca,ar7240-gpio",
55 reg = <0x18040000 0x30>;
64 #interrupt-cells = <2>;
67 pinmux: pinmux@18040028 {
68 compatible = "pinctrl-single";
70 reg = <0x18040028 0x8>;
72 pinctrl-single,bit-per-mux;
73 pinctrl-single,register-width = <32>;
74 pinctrl-single,function-mask = <0x1>;
77 jtag_disable_pins: pinmux_jtag_disable_pins {
78 pinctrl-single,bits = <0x0 0x1 0x1>;
81 switch_led_disable_pins: pinmux_switch_led_disable_pins {
82 pinctrl-single,bits = <0x0 0x0 0xf8>;
85 clks_disable_pins: pinmux_clks_disable_pins {
86 pinctrl-single,bits = <0x0 0x0 0x81f00>;
90 pll: pll-controller@18050000 {
91 compatible = "qca,ar7240-pll", "syscon";
92 reg = <0x18050000 0x3c>;
95 /* The board must provides the ref clock */
98 clock-output-names = "cpu", "ddr", "ahb";
102 compatible = "qca,ar7130-wdt";
103 reg = <0x18060008 0x8>;
107 clocks = <&pll ATH79_CLK_AHB>;
111 rst: reset-controller@1806001c {
112 compatible = "qca,ar7240-reset",
114 reg = <0x1806001c 0x4>;
119 pcie: pcie-controller@180c0000 {
120 compatible = "qcom,ar7240-pci";
121 #address-cells = <3>;
123 bus-range = <0x0 0x0>;
124 reg = <0x180c0000 0x1000>, /* CRP */
125 <0x180f0000 0x100>, /* CTRL */
126 <0x14000000 0x1000>; /* CFG */
127 reg-names = "crp_base", "ctrl_base", "cfg_base";
128 ranges = <0x2000000 0 0x10000000 0x10000000 0 0x04000000 /* pci memory */
129 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
130 interrupt-parent = <&cpuintc>;
133 interrupt-controller;
134 #interrupt-cells = <1>;
136 interrupt-map-mask = <0 0 0 1>;
137 interrupt-map = <0 0 0 0 &pcie 0>;
143 compatible = "qca,ar7240-spi",
145 reg = <0x1f000000 0x10>;
147 clocks = <&pll ATH79_CLK_AHB>;
152 #address-cells = <1>;
159 qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
160 qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
161 <&ddr_ctrl 0>, <&ddr_ctrl 1>;