sunxi: move KERNEL_LOADADDR into subtargets
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar724x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ath79.dtsi"
4
5 / {
6 compatible = "qca,ar7240";
7
8 #address-cells = <1>;
9 #size-cells = <1>;
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 cpus {
16 #address-cells = <1>;
17 #size-cells = <0>;
18
19 cpu@0 {
20 device_type = "cpu";
21 compatible = "mips,mips24Kc";
22 clocks = <&pll ATH79_CLK_CPU>;
23 reg = <0>;
24 };
25 };
26
27 ahb: ahb {
28 apb {
29 ddr_ctrl: memory-controller@18000000 {
30 compatible = "qca,ar9132-ddr-controller",
31 "qca,ar7240-ddr-controller";
32 reg = <0x18000000 0x100>;
33
34 #qca,ddr-wb-channel-cells = <1>;
35 };
36
37 uart: uart@18020000 {
38 compatible = "ns16550a";
39 reg = <0x18020000 0x20>;
40 interrupts = <3>;
41
42 clocks = <&pll ATH79_CLK_AHB>;
43 clock-names = "uart";
44
45 reg-io-width = <4>;
46 reg-shift = <2>;
47 no-loopback-test;
48 };
49
50 gpio: gpio@18040000 {
51 compatible = "qca,ar7240-gpio",
52 "qca,ar7100-gpio";
53 reg = <0x18040000 0x30>;
54 interrupts = <2>;
55
56 ngpios = <18>;
57
58 gpio-controller;
59 #gpio-cells = <2>;
60
61 interrupt-controller;
62 #interrupt-cells = <2>;
63 };
64
65 pinmux: pinmux@18040028 {
66 compatible = "pinctrl-single";
67
68 reg = <0x18040028 0x8>;
69
70 pinctrl-single,bit-per-mux;
71 pinctrl-single,register-width = <32>;
72 pinctrl-single,function-mask = <0x1>;
73 #pinctrl-cells = <2>;
74
75 jtag_disable_pins: pinmux_jtag_disable_pins {
76 pinctrl-single,bits = <0x0 0x1 0x1>;
77 };
78
79 switch_led_disable_pins: pinmux_switch_led_disable_pins {
80 pinctrl-single,bits = <0x0 0x0 0xf8>;
81 };
82
83 clks_disable_pins: pinmux_clks_disable_pins {
84 pinctrl-single,bits = <0x0 0x0 0x81f00>;
85 };
86 };
87
88 pll: pll-controller@18050000 {
89 compatible = "qca,ar7240-pll", "syscon";
90 reg = <0x18050000 0x3c>;
91
92 clock-names = "ref";
93 /* The board must provides the ref clock */
94
95 #clock-cells = <1>;
96 clock-output-names = "cpu", "ddr", "ahb";
97 };
98
99 wdt: wdt@18060008 {
100 compatible = "qca,ar7130-wdt";
101 reg = <0x18060008 0x8>;
102
103 interrupts = <4>;
104
105 clocks = <&pll ATH79_CLK_AHB>;
106 clock-names = "wdt";
107 };
108
109 rst: reset-controller@1806001c {
110 compatible = "qca,ar7240-reset",
111 "qca,ar7100-reset";
112 reg = <0x1806001c 0x4>;
113
114 #reset-cells = <1>;
115 };
116
117 pcie: pcie-controller@180c0000 {
118 compatible = "qcom,ar7240-pci";
119 #address-cells = <3>;
120 #size-cells = <2>;
121 bus-range = <0x0 0x0>;
122 reg = <0x180c0000 0x1000>, /* CRP */
123 <0x180f0000 0x100>, /* CTRL */
124 <0x14000000 0x1000>; /* CFG */
125 reg-names = "crp_base", "ctrl_base", "cfg_base";
126 ranges = <0x2000000 0 0x10000000 0x10000000 0 0x04000000 /* pci memory */
127 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
128 interrupt-parent = <&cpuintc>;
129 interrupts = <2>;
130
131 resets = <&rst 6>, <&rst 7>;
132 reset-names = "hc", "phy";
133
134 device_type = "pci";
135
136 interrupt-controller;
137 #interrupt-cells = <1>;
138
139 interrupt-map-mask = <0 0 0 1>;
140 interrupt-map = <0 0 0 0 &pcie 0>;
141 status = "disabled";
142 };
143 };
144
145 spi: spi@1f000000 {
146 compatible = "qca,ar7240-spi",
147 "qca,ar7100-spi";
148 reg = <0x1f000000 0x10>;
149
150 clocks = <&pll ATH79_CLK_AHB>;
151 clock-names = "ahb";
152
153 status = "disabled";
154
155 #address-cells = <1>;
156 #size-cells = <0>;
157 };
158 };
159 };
160
161 &cpuintc {
162 qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
163 qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
164 <&ddr_ctrl 0>, <&ddr_ctrl 1>;
165 };