blob: 7631dfaa07fc1e7c605c70840da1196c1daeb638 [file] [log] [blame]
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +00001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * sam9x60.dtsi - Device Tree Include file for SAM9X60 SoC.
4 *
5 * Copyright (C) 2018 Microchip Technology Inc. and its subsidiaries
6 *
7 * Author: Sandeep Sheriker M <sandeepsheriker.mallikarjun@microchip.com>
8 */
9
10#include "skeleton.dtsi"
11#include <dt-bindings/dma/at91.h>
12#include <dt-bindings/pinctrl/at91.h>
13#include <dt-bindings/interrupt-controller/irq.h>
14#include <dt-bindings/gpio/gpio.h>
Claudiu Beznea562a8642020-10-07 18:17:12 +030015#include <dt-bindings/clk/at91.h>
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000016
17/{
18 model = "Microchip SAM9X60 SoC";
19 compatible = "microchip,sam9x60";
Manikandan Muralidharan442eb3c2025-02-10 12:21:37 +053020 interrupt-parent = <&aic>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000021
22 aliases {
23 serial0 = &dbgu;
24 gpio0 = &pioA;
25 gpio1 = &pioB;
Mihai Sain48386122021-10-27 10:28:35 +030026 gpio2 = &pioC;
Eugen Hristev94b65ea2019-09-30 07:28:58 +000027 gpio3 = &pioD;
Tudor Ambarus6c8b9502019-09-27 13:09:19 +000028 spi0 = &qspi;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000029 };
30
Alexander Dahl35112772023-07-05 22:16:57 +020031 cpus {
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 ARM9260_0: cpu@0 {
36 device_type = "cpu";
37 compatible = "arm,arm926ej-s";
38 clocks = <&pmc PMC_TYPE_CORE 19>, <&pmc PMC_TYPE_CORE 11>, <&main_xtal>;
39 clock-names = "cpu", "master", "xtal";
40 };
41 };
42
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000043 clocks {
Claudiu Bezneaea2d4962020-10-07 18:17:11 +030044 slow_rc_osc: slow_rc_osc {
45 compatible = "fixed-clock";
46 #clock-cells = <0>;
47 clock-frequency = <18500>;
48 };
49
Claudiu Beznea562a8642020-10-07 18:17:12 +030050 main_rc: main_rc {
51 compatible = "fixed-clock";
52 #clock-cells = <0>;
53 clock-frequency = <12000000>;
54 };
55
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000056 slow_xtal: slow_xtal {
57 compatible = "fixed-clock";
58 #clock-cells = <0>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000059 };
60
61 main_xtal: main_xtal {
62 compatible = "fixed-clock";
63 #clock-cells = <0>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +000064 };
65 };
66
67 ahb {
68 compatible = "simple-bus";
69 #address-cells = <1>;
70 #size-cells = <1>;
71 ranges;
72
Zixun LI20e55392025-03-31 18:26:08 +020073 usb0: gadget@500000 {
74 #address-cells = <1>;
75 #size-cells = <0>;
76 compatible = "microchip,sam9x60-udc";
77 reg = <0x500000 0x100000>,
78 <0xf803c000 0x400>;
79 clocks = <&pmc PMC_TYPE_PERIPHERAL 23>, <&pmc PMC_TYPE_CORE 8>;
80 clock-names = "pclk", "hclk";
81 assigned-clocks = <&pmc PMC_TYPE_CORE 8>;
82 assigned-clock-rates = <480000000>;
83 status = "disabled";
84 };
85
Sergiu Moga85e34212023-01-04 16:04:10 +020086 usb1: usb@600000 {
87 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
88 reg = <0x00600000 0x100000>;
89 clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 21>;
90 clock-names = "ohci_clk", "hclk", "uhpck";
91 status = "disabled";
92 };
93
94 usb2: usb@700000 {
95 compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
96 reg = <0x00700000 0x100000>;
97 clocks = <&pmc PMC_TYPE_CORE 8>, <&pmc PMC_TYPE_PERIPHERAL 22>;
98 clock-names = "usb_clk", "ehci_clk";
99 assigned-clocks = <&pmc PMC_TYPE_CORE 8>;
100 assigned-clock-rates = <480000000>;
101 status = "disabled";
102 };
103
Balamanikandan Gunasundar7b4fdbe2022-10-25 16:21:07 +0530104 ebi: ebi@10000000 {
105 compatible = "microchip,sam9x60-ebi";
106 #address-cells = <2>;
107 #size-cells = <1>;
108 atmel,smc = <&smc>;
109 microchip,sfr = <&sfr>;
110 reg = <0x10000000 0x60000000>;
111 ranges = <0x0 0x0 0x10000000 0x10000000
112 0x1 0x0 0x20000000 0x10000000
113 0x2 0x0 0x30000000 0x10000000
114 0x3 0x0 0x40000000 0x10000000
115 0x4 0x0 0x50000000 0x10000000
116 0x5 0x0 0x60000000 0x10000000>;
117 clocks = <&pmc PMC_TYPE_CORE 11>;
118 status = "disabled";
119
120 nand_controller: nand-controller {
121 compatible = "microchip,sam9x60-nand-controller";
122 ecc-engine = <&pmecc>;
123 #address-cells = <2>;
124 #size-cells = <1>;
125 ranges;
126 status = "disabled";
127 };
128 };
129
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000130 sdhci0: sdhci-host@80000000 {
131 compatible = "microchip,sam9x60-sdhci";
132 reg = <0x80000000 0x300>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300133 clocks = <&pmc PMC_TYPE_PERIPHERAL 12>, <&pmc PMC_TYPE_GCK 12>;
134 clock-names = "hclock", "multclk";
135 assigned-clocks = <&pmc PMC_TYPE_GCK 12>;
136 assigned-clock-rates = <100000000>;
137 assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* ID_PLL_A_DIV */
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000138 bus-width = <4>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000139 };
140
Mihai Sainc31c8782022-12-23 08:47:17 +0200141 sdhci1: sdhci-host@90000000 {
142 compatible = "microchip,sam9x60-sdhci";
143 reg = <0x90000000 0x300>;
144 clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_GCK 26>;
145 clock-names = "hclock", "multclk";
146 assigned-clocks = <&pmc PMC_TYPE_GCK 26>;
147 assigned-clock-rates = <100000000>;
148 assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* ID_PLL_A_DIV */
149 bus-width = <4>;
Mihai Sainc31c8782022-12-23 08:47:17 +0200150 };
151
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000152 apb {
153 compatible = "simple-bus";
154 #address-cells = <1>;
155 #size-cells = <1>;
156 ranges;
157
Tudor Ambarus6c8b9502019-09-27 13:09:19 +0000158 qspi: spi@f0014000 {
159 compatible = "microchip,sam9x60-qspi";
160 reg = <0xf0014000 0x100>, <0x70000000 0x10000000>;
161 reg-names = "qspi_base", "qspi_mmap";
Alexander Dahl35112772023-07-05 22:16:57 +0200162 clocks = <&pmc PMC_TYPE_PERIPHERAL 35>, <&pmc PMC_TYPE_SYSTEM 18>; /* ID_QSPI */
Tudor Ambarus6c8b9502019-09-27 13:09:19 +0000163 clock-names = "pclk", "qspick";
164 #address-cells = <1>;
165 #size-cells = <0>;
166 status = "disabled";
167 };
168
Alexander Dahl35112772023-07-05 22:16:57 +0200169 pit64b0: timer@f0028000 {
170 compatible = "microchip,sam9x60-pit64b";
171 reg = <0xf0028000 0xec>;
172 clocks = <&pmc PMC_TYPE_PERIPHERAL 37>, <&pmc PMC_TYPE_GCK 37>;
173 clock-names = "pclk", "gclk";
174 };
175
Eugen Hristeve54f1022019-10-09 09:23:40 +0000176 flx0: flexcom@f801c600 {
177 compatible = "atmel,sama5d2-flexcom";
178 reg = <0xf801c000 0x200>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300179 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
Eugen Hristeve54f1022019-10-09 09:23:40 +0000180 #address-cells = <1>;
181 #size-cells = <1>;
182 ranges = <0x0 0xf801c000 0x800>;
183 status = "disabled";
184 };
185
Nicolas Ferred7d06bf2019-09-27 13:08:48 +0000186 macb0: ethernet@f802c000 {
187 compatible = "cdns,sam9x60-macb", "cdns,macb";
188 reg = <0xf802c000 0x100>;
Nicolas Ferred7d06bf2019-09-27 13:08:48 +0000189 clock-names = "hclk", "pclk";
Claudiu Beznea562a8642020-10-07 18:17:12 +0300190 clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>;
Nicolas Ferred7d06bf2019-09-27 13:08:48 +0000191 status = "disabled";
192 };
193
Balamanikandan Gunasundar7b4fdbe2022-10-25 16:21:07 +0530194 sfr: sfr@f8050000 {
195 compatible = "microchip,sam9x60-sfr", "syscon";
196 reg = <0xf8050000 0x100>;
197 };
198
Alexander Dahl35112772023-07-05 22:16:57 +0200199 pmecc: ecc-engine@ffffe000 {
200 compatible = "microchip,sam9x60-pmecc", "atmel,at91sam9g45-pmecc";
201 reg = <0xffffe000 0x300>,
202 <0xffffe600 0x100>;
203 };
204
205 smc: smc@ffffea00 {
206 compatible = "microchip,sam9x60-smc", "atmel,at91sam9260-smc", "syscon";
207 reg = <0xffffea00 0x100>;
208 };
209
Manikandan Muralidharan442eb3c2025-02-10 12:21:37 +0530210 aic: interrupt-controller@fffff100 {
211 compatible = "microchip,sam9x60-aic";
212 #interrupt-cells = <3>;
213 interrupt-controller;
214 reg = <0xfffff100 0x100>;
215 atmel,external-irqs = <31>;
216 };
217
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000218 dbgu: serial@fffff200 {
219 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
220 reg = <0xfffff200 0x200>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300221 clocks = <&pmc PMC_TYPE_PERIPHERAL 47>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000222 clock-names = "usart";
223 };
224
Alexander Dahl35112772023-07-05 22:16:57 +0200225 pinctrl: pinctrl@fffff400 {
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000226 #address-cells = <1>;
227 #size-cells = <1>;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530228 compatible = "microchip,sam9x60-pinctrl", "simple-mfd";
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000229 ranges = <0xfffff400 0xfffff400 0x800>;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530230
231 /* mux-mask corresponding to sam9x60 SoC in TFBGA228L package */
232 atmel,mux-mask = <
233 /* A B C */
234 0xffffffff 0xffe03fff 0xef00019d /* pioA */
235 0x03ffffff 0x02fc7e7f 0x00780000 /* pioB */
236 0xffffffff 0xffffffff 0xf83fffff /* pioC */
237 0x003fffff 0x003f8000 0x00000000 /* pioD */
238 >;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000239
Manikandan Muralidharan7cff76b2025-02-10 12:21:43 +0530240 pioA: gpio@fffff400 {
241 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
242 reg = <0xfffff400 0x200>;
243 interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
244 #gpio-cells = <2>;
245 gpio-controller;
246 interrupt-controller;
247 #interrupt-cells = <2>;
248 clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
249 };
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000250
Manikandan Muralidharan7cff76b2025-02-10 12:21:43 +0530251 pioB: gpio@fffff600 {
252 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
253 reg = <0xfffff600 0x200>;
254 interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
255 #gpio-cells = <2>;
256 gpio-controller;
257 #gpio-lines = <26>;
258 interrupt-controller;
259 #interrupt-cells = <2>;
260 clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
261 };
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000262
Manikandan Muralidharan7cff76b2025-02-10 12:21:43 +0530263 pioC: gpio@fffff800 {
264 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
265 reg = <0xfffff800 0x200>;
266 interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
267 #gpio-cells = <2>;
268 gpio-controller;
269 interrupt-controller;
270 #interrupt-cells = <2>;
271 clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
272 };
Mihai Sain48386122021-10-27 10:28:35 +0300273
Manikandan Muralidharan7cff76b2025-02-10 12:21:43 +0530274 pioD: gpio@fffffa00 {
275 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
276 reg = <0xfffffa00 0x200>;
277 interrupts = <44 IRQ_TYPE_LEVEL_HIGH 1>;
278 #gpio-cells = <2>;
279 gpio-controller;
280 #gpio-lines = <22>;
281 interrupt-controller;
282 #interrupt-cells = <2>;
283 clocks = <&pmc PMC_TYPE_PERIPHERAL 44>;
284 };
Eugen Hristev94b65ea2019-09-30 07:28:58 +0000285 };
286
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000287 pmc: pmc@fffffc00 {
Claudiu Beznea562a8642020-10-07 18:17:12 +0300288 compatible = "microchip,sam9x60-pmc";
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000289 reg = <0xfffffc00 0x200>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300290 #clock-cells = <2>;
291 clocks = <&clk32 1>, <&clk32 0>, <&main_xtal>, <&main_rc>;
292 clock-names = "td_slck", "md_slck", "main_xtal", "main_rc";
293 status = "okay";
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000294 };
295
Sergiu Mogab60e9772022-04-01 12:27:23 +0300296 reset_controller: rstc@fffffe00 {
297 compatible = "microchip,sam9x60-rstc";
298 reg = <0xfffffe00 0x10>;
299 clocks = <&clk32 0>;
300 };
301
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000302 pit: timer@fffffe40 {
303 compatible = "atmel,at91sam9260-pit";
304 reg = <0xfffffe40 0x10>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300305 clocks = <&pmc PMC_TYPE_CORE 11>; /* ID_MCK. */
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000306 };
307
Claudiu Bezneaea2d4962020-10-07 18:17:11 +0300308 clk32: sckc@fffffe50 {
309 compatible = "microchip,sam9x60-sckc";
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000310 reg = <0xfffffe50 0x4>;
Claudiu Bezneaea2d4962020-10-07 18:17:11 +0300311 clocks = <&slow_rc_osc>, <&slow_xtal>;
312 #clock-cells = <1>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000313 };
314 };
315 };
Eugen Hristev94b65ea2019-09-30 07:28:58 +0000316
317 onewire_tm: onewire {
318 compatible = "w1-gpio";
319 status = "disabled";
320 };
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000321};