blob: 2b93d089384ef8cf139c7af9e835ecc2b2942db9 [file] [log] [blame]
Sandeep Sheriker Mallikarjunf99e0ad2019-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 Bezneac37d59a2020-10-07 18:17:12 +030015#include <dt-bindings/clk/at91.h>
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000016
17/{
18 model = "Microchip SAM9X60 SoC";
19 compatible = "microchip,sam9x60";
20
21 aliases {
22 serial0 = &dbgu;
23 gpio0 = &pioA;
24 gpio1 = &pioB;
Mihai Sain62cf34d2021-10-27 10:28:35 +030025 gpio2 = &pioC;
Eugen Hristev223cab52019-09-30 07:28:58 +000026 gpio3 = &pioD;
Tudor Ambarus228f9e02019-09-27 13:09:19 +000027 spi0 = &qspi;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000028 };
29
30 clocks {
Claudiu Bezneadbe10b62020-10-07 18:17:11 +030031 slow_rc_osc: slow_rc_osc {
32 compatible = "fixed-clock";
33 #clock-cells = <0>;
34 clock-frequency = <18500>;
35 };
36
Claudiu Bezneac37d59a2020-10-07 18:17:12 +030037 main_rc: main_rc {
38 compatible = "fixed-clock";
39 #clock-cells = <0>;
40 clock-frequency = <12000000>;
41 };
42
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000043 slow_xtal: slow_xtal {
44 compatible = "fixed-clock";
45 #clock-cells = <0>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000046 };
47
48 main_xtal: main_xtal {
49 compatible = "fixed-clock";
50 #clock-cells = <0>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000051 };
52 };
53
Claudiu Beznea63ba5512021-07-16 08:43:50 +030054 cpus {
55 #address-cells = <1>;
56 #size-cells = <0>;
57
58 ARM9260_0: cpu@0 {
59 device_type = "cpu";
60 compatible = "arm,arm926ej-s";
61 clocks = <&pmc PMC_TYPE_CORE 19>, <&pmc PMC_TYPE_CORE 11>, <&main_xtal>;
62 clock-names = "cpu", "master", "xtal";
63 };
64 };
65
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000066 ahb {
67 compatible = "simple-bus";
68 #address-cells = <1>;
69 #size-cells = <1>;
70 ranges;
71
Sergiu Moga3631be32023-01-04 16:04:10 +020072 usb1: usb@600000 {
73 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
74 reg = <0x00600000 0x100000>;
75 clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 21>;
76 clock-names = "ohci_clk", "hclk", "uhpck";
77 status = "disabled";
78 };
79
80 usb2: usb@700000 {
81 compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
82 reg = <0x00700000 0x100000>;
83 clocks = <&pmc PMC_TYPE_CORE 8>, <&pmc PMC_TYPE_PERIPHERAL 22>;
84 clock-names = "usb_clk", "ehci_clk";
85 assigned-clocks = <&pmc PMC_TYPE_CORE 8>;
86 assigned-clock-rates = <480000000>;
87 status = "disabled";
88 };
89
Balamanikandan Gunasundar2d35bf22022-10-25 16:21:07 +053090 ebi: ebi@10000000 {
91 compatible = "microchip,sam9x60-ebi";
92 #address-cells = <2>;
93 #size-cells = <1>;
94 atmel,smc = <&smc>;
95 microchip,sfr = <&sfr>;
96 reg = <0x10000000 0x60000000>;
97 ranges = <0x0 0x0 0x10000000 0x10000000
98 0x1 0x0 0x20000000 0x10000000
99 0x2 0x0 0x30000000 0x10000000
100 0x3 0x0 0x40000000 0x10000000
101 0x4 0x0 0x50000000 0x10000000
102 0x5 0x0 0x60000000 0x10000000>;
103 clocks = <&pmc PMC_TYPE_CORE 11>;
104 status = "disabled";
105
106 nand_controller: nand-controller {
107 compatible = "microchip,sam9x60-nand-controller";
108 ecc-engine = <&pmecc>;
109 #address-cells = <2>;
110 #size-cells = <1>;
111 ranges;
112 status = "disabled";
113 };
114 };
115
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000116 sdhci0: sdhci-host@80000000 {
117 compatible = "microchip,sam9x60-sdhci";
118 reg = <0x80000000 0x300>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300119 clocks = <&pmc PMC_TYPE_PERIPHERAL 12>, <&pmc PMC_TYPE_GCK 12>;
120 clock-names = "hclock", "multclk";
121 assigned-clocks = <&pmc PMC_TYPE_GCK 12>;
122 assigned-clock-rates = <100000000>;
123 assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* ID_PLL_A_DIV */
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000124 bus-width = <4>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&pinctrl_sdhci0>;
127 };
128
Mihai Sainee43b1e2022-12-23 08:47:17 +0200129 sdhci1: sdhci-host@90000000 {
130 compatible = "microchip,sam9x60-sdhci";
131 reg = <0x90000000 0x300>;
132 clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_GCK 26>;
133 clock-names = "hclock", "multclk";
134 assigned-clocks = <&pmc PMC_TYPE_GCK 26>;
135 assigned-clock-rates = <100000000>;
136 assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* ID_PLL_A_DIV */
137 bus-width = <4>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&pinctrl_sdhci1>;
140 };
141
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000142 apb {
143 compatible = "simple-bus";
144 #address-cells = <1>;
145 #size-cells = <1>;
146 ranges;
147
Tudor Ambarus228f9e02019-09-27 13:09:19 +0000148 qspi: spi@f0014000 {
149 compatible = "microchip,sam9x60-qspi";
150 reg = <0xf0014000 0x100>, <0x70000000 0x10000000>;
151 reg-names = "qspi_base", "qspi_mmap";
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300152 clocks = <&pmc PMC_TYPE_PERIPHERAL 35>, <&pmc PMC_TYPE_SYSTEM 18>; /* ID_QSPI */
Tudor Ambarus228f9e02019-09-27 13:09:19 +0000153 clock-names = "pclk", "qspick";
154 #address-cells = <1>;
155 #size-cells = <0>;
156 status = "disabled";
157 };
158
Eugen Hristev2d604ed2019-10-09 09:23:40 +0000159 flx0: flexcom@f801c600 {
160 compatible = "atmel,sama5d2-flexcom";
161 reg = <0xf801c000 0x200>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300162 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
Eugen Hristev2d604ed2019-10-09 09:23:40 +0000163 #address-cells = <1>;
164 #size-cells = <1>;
165 ranges = <0x0 0xf801c000 0x800>;
166 status = "disabled";
167 };
168
Nicolas Ferre88555432019-09-27 13:08:48 +0000169 macb0: ethernet@f802c000 {
170 compatible = "cdns,sam9x60-macb", "cdns,macb";
171 reg = <0xf802c000 0x100>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&pinctrl_macb0_rmii>;
174 clock-names = "hclk", "pclk";
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300175 clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>;
Nicolas Ferre88555432019-09-27 13:08:48 +0000176 status = "disabled";
177 };
178
Balamanikandan Gunasundar2d35bf22022-10-25 16:21:07 +0530179 sfr: sfr@f8050000 {
180 compatible = "microchip,sam9x60-sfr", "syscon";
181 reg = <0xf8050000 0x100>;
182 };
183
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000184 dbgu: serial@fffff200 {
185 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
186 reg = <0xfffff200 0x200>;
187 pinctrl-names = "default";
188 pinctrl-0 = <&pinctrl_dbgu>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300189 clocks = <&pmc PMC_TYPE_PERIPHERAL 47>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000190 clock-names = "usart";
191 };
192
193 pinctrl {
194 #address-cells = <1>;
195 #size-cells = <1>;
196 compatible = "microchip,sam9x60-pinctrl", "simple-bus";
197 ranges = <0xfffff400 0xfffff400 0x800>;
198 reg = <0xfffff400 0x200 /* pioA */
199 0xfffff600 0x200 /* pioB */
200 0xfffff800 0x200 /* pioC */
201 0xfffffa00 0x200>; /* pioD */
202
203 /* shared pinctrl settings */
204 dbgu {
205 pinctrl_dbgu: dbgu-0 {
206 atmel,pins =
207 <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
208 AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
209 };
210 };
211
Nicolas Ferre88555432019-09-27 13:08:48 +0000212 macb0 {
213 pinctrl_macb0_rmii: macb0_rmii-0 {
214 atmel,pins =
215 <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A */
216 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A */
217 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB2 periph A */
218 AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB3 periph A */
219 AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */
220 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A */
221 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */
222 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */
223 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */
224 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A */
225 };
226 };
227
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000228 sdhci0 {
229 pinctrl_sdhci0: sdhci0 {
230 atmel,pins =
Eugen Hristev1a5c5b72020-11-09 17:35:01 +0200231 <AT91_PIOA 17 AT91_PERIPH_A
232 (AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA17 CK periph A with pullup */
233 AT91_PIOA 16 AT91_PERIPH_A
234 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA16 CMD periph A with pullup */
235 AT91_PIOA 15 AT91_PERIPH_A
236 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA15 DAT0 periph A */
237 AT91_PIOA 18 AT91_PERIPH_A
238 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA18 DAT1 periph A with pullup */
239 AT91_PIOA 19 AT91_PERIPH_A
240 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA19 DAT2 periph A with pullup */
241 AT91_PIOA 20 AT91_PERIPH_A
242 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA)>; /* PA20 DAT3 periph A with pullup */
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000243 };
244 };
Mihai Sainee43b1e2022-12-23 08:47:17 +0200245
246 sdhci1 {
247 pinctrl_sdhci1: sdhci1 {
248 atmel,pins =
249 <AT91_PIOA 13 AT91_PERIPH_B (AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA13 CK periph B */
250 AT91_PIOA 12 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA12 CMD periph B with pullup */
251 AT91_PIOA 11 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA11 DAT0 periph B with pullup */
252 AT91_PIOA 2 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA2 DAT1 periph B with pullup */
253 AT91_PIOA 3 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA3 DAT2 periph B with pullup */
254 AT91_PIOA 4 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>; /* PA4 DAT3 periph B with pullup */
255 };
256 };
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000257 };
258
Balamanikandan Gunasundar2d35bf22022-10-25 16:21:07 +0530259 pmecc: ecc-engine@ffffe000 {
260 compatible = "microchip,sam9x60-pmecc", "atmel,at91sam9g45-pmecc";
261 reg = <0xffffe000 0x300>,
262 <0xffffe600 0x100>;
263 };
264
265 smc: smc@ffffea00 {
266 compatible = "microchip,sam9x60-smc", "atmel,at91sam9260-smc", "syscon";
267 reg = <0xffffea00 0x100>;
268 };
269
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000270 pioA: gpio@fffff400 {
271 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
272 reg = <0xfffff400 0x200>;
273 #gpio-cells = <2>;
274 gpio-controller;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300275 clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000276 };
277
278 pioB: gpio@fffff600 {
279 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
280 reg = <0xfffff600 0x200>;
281 #gpio-cells = <2>;
282 gpio-controller;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300283 clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000284 };
285
Mihai Sain62cf34d2021-10-27 10:28:35 +0300286 pioC: gpio@fffff800 {
287 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
288 reg = <0xfffff800 0x200>;
289 #gpio-cells = <2>;
290 gpio-controller;
291 clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
292 };
293
Eugen Hristev223cab52019-09-30 07:28:58 +0000294 pioD: gpio@fffffa00 {
295 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
296 reg = <0xfffffa00 0x200>;
297 #gpio-cells = <2>;
298 gpio-controller;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300299 clocks = <&pmc PMC_TYPE_PERIPHERAL 44>;
Eugen Hristev223cab52019-09-30 07:28:58 +0000300 };
301
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000302 pmc: pmc@fffffc00 {
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300303 compatible = "microchip,sam9x60-pmc";
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000304 reg = <0xfffffc00 0x200>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300305 #clock-cells = <2>;
306 clocks = <&clk32 1>, <&clk32 0>, <&main_xtal>, <&main_rc>;
307 clock-names = "td_slck", "md_slck", "main_xtal", "main_rc";
308 status = "okay";
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000309 };
310
Sergiu Moga20165852022-04-01 12:27:23 +0300311 reset_controller: rstc@fffffe00 {
312 compatible = "microchip,sam9x60-rstc";
313 reg = <0xfffffe00 0x10>;
314 clocks = <&clk32 0>;
315 };
316
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000317 pit: timer@fffffe40 {
318 compatible = "atmel,at91sam9260-pit";
319 reg = <0xfffffe40 0x10>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300320 clocks = <&pmc PMC_TYPE_CORE 11>; /* ID_MCK. */
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000321 };
322
Durai Manickam KR3fbdd482022-04-04 16:00:00 +0530323 pit64b0: timer@f0028000 {
324 compatible = "microchip,sam9x60-pit64b";
325 reg = <0xf0028000 0xec>;
326 clocks = <&pmc PMC_TYPE_PERIPHERAL 37>, <&pmc PMC_TYPE_GCK 37>;
327 clock-names = "pclk", "gclk";
328 };
329
Claudiu Bezneadbe10b62020-10-07 18:17:11 +0300330 clk32: sckc@fffffe50 {
331 compatible = "microchip,sam9x60-sckc";
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000332 reg = <0xfffffe50 0x4>;
Claudiu Bezneadbe10b62020-10-07 18:17:11 +0300333 clocks = <&slow_rc_osc>, <&slow_xtal>;
334 #clock-cells = <1>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000335 };
336 };
337 };
Eugen Hristev223cab52019-09-30 07:28:58 +0000338
339 onewire_tm: onewire {
340 compatible = "w1-gpio";
341 status = "disabled";
342 };
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000343};