blob: 3b684fc63d53bc8bd47acf0c3709a5efa33dc65f [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
Alexander Dahla2283b32023-07-05 22:16:57 +020030 cpus {
31 #address-cells = <1>;
32 #size-cells = <0>;
33
34 ARM9260_0: cpu@0 {
35 device_type = "cpu";
36 compatible = "arm,arm926ej-s";
37 clocks = <&pmc PMC_TYPE_CORE 19>, <&pmc PMC_TYPE_CORE 11>, <&main_xtal>;
38 clock-names = "cpu", "master", "xtal";
39 };
40 };
41
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000042 clocks {
Claudiu Bezneadbe10b62020-10-07 18:17:11 +030043 slow_rc_osc: slow_rc_osc {
44 compatible = "fixed-clock";
45 #clock-cells = <0>;
46 clock-frequency = <18500>;
47 };
48
Claudiu Bezneac37d59a2020-10-07 18:17:12 +030049 main_rc: main_rc {
50 compatible = "fixed-clock";
51 #clock-cells = <0>;
52 clock-frequency = <12000000>;
53 };
54
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000055 slow_xtal: slow_xtal {
56 compatible = "fixed-clock";
57 #clock-cells = <0>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000058 };
59
60 main_xtal: main_xtal {
61 compatible = "fixed-clock";
62 #clock-cells = <0>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +000063 };
64 };
65
66 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";
Alexander Dahla2283b32023-07-05 22:16:57 +0200152 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
Alexander Dahla2283b32023-07-05 22:16:57 +0200159 pit64b0: timer@f0028000 {
160 compatible = "microchip,sam9x60-pit64b";
161 reg = <0xf0028000 0xec>;
162 clocks = <&pmc PMC_TYPE_PERIPHERAL 37>, <&pmc PMC_TYPE_GCK 37>;
163 clock-names = "pclk", "gclk";
164 };
165
Eugen Hristev2d604ed2019-10-09 09:23:40 +0000166 flx0: flexcom@f801c600 {
167 compatible = "atmel,sama5d2-flexcom";
168 reg = <0xf801c000 0x200>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300169 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
Eugen Hristev2d604ed2019-10-09 09:23:40 +0000170 #address-cells = <1>;
171 #size-cells = <1>;
172 ranges = <0x0 0xf801c000 0x800>;
173 status = "disabled";
174 };
175
Nicolas Ferre88555432019-09-27 13:08:48 +0000176 macb0: ethernet@f802c000 {
177 compatible = "cdns,sam9x60-macb", "cdns,macb";
178 reg = <0xf802c000 0x100>;
179 pinctrl-names = "default";
180 pinctrl-0 = <&pinctrl_macb0_rmii>;
181 clock-names = "hclk", "pclk";
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300182 clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>;
Nicolas Ferre88555432019-09-27 13:08:48 +0000183 status = "disabled";
184 };
185
Balamanikandan Gunasundar2d35bf22022-10-25 16:21:07 +0530186 sfr: sfr@f8050000 {
187 compatible = "microchip,sam9x60-sfr", "syscon";
188 reg = <0xf8050000 0x100>;
189 };
190
Alexander Dahla2283b32023-07-05 22:16:57 +0200191 pmecc: ecc-engine@ffffe000 {
192 compatible = "microchip,sam9x60-pmecc", "atmel,at91sam9g45-pmecc";
193 reg = <0xffffe000 0x300>,
194 <0xffffe600 0x100>;
195 };
196
197 smc: smc@ffffea00 {
198 compatible = "microchip,sam9x60-smc", "atmel,at91sam9260-smc", "syscon";
199 reg = <0xffffea00 0x100>;
200 };
201
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000202 dbgu: serial@fffff200 {
203 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
204 reg = <0xfffff200 0x200>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&pinctrl_dbgu>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300207 clocks = <&pmc PMC_TYPE_PERIPHERAL 47>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000208 clock-names = "usart";
209 };
210
Alexander Dahla2283b32023-07-05 22:16:57 +0200211 pinctrl: pinctrl@fffff400 {
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000212 #address-cells = <1>;
213 #size-cells = <1>;
214 compatible = "microchip,sam9x60-pinctrl", "simple-bus";
215 ranges = <0xfffff400 0xfffff400 0x800>;
216 reg = <0xfffff400 0x200 /* pioA */
217 0xfffff600 0x200 /* pioB */
218 0xfffff800 0x200 /* pioC */
219 0xfffffa00 0x200>; /* pioD */
220
221 /* shared pinctrl settings */
222 dbgu {
223 pinctrl_dbgu: dbgu-0 {
224 atmel,pins =
225 <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
Alexander Dahla2283b32023-07-05 22:16:57 +0200226 AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000227 };
228 };
229
Nicolas Ferre88555432019-09-27 13:08:48 +0000230 macb0 {
231 pinctrl_macb0_rmii: macb0_rmii-0 {
232 atmel,pins =
233 <AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB0 periph A */
234 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB1 periph A */
235 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB2 periph A */
236 AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB3 periph A */
237 AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB4 periph A */
238 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB5 periph A */
239 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB6 periph A */
240 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB7 periph A */
241 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PB9 periph A */
242 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PB10 periph A */
243 };
244 };
245
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000246 sdhci0 {
247 pinctrl_sdhci0: sdhci0 {
248 atmel,pins =
Eugen Hristev1a5c5b72020-11-09 17:35:01 +0200249 <AT91_PIOA 17 AT91_PERIPH_A
250 (AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA17 CK periph A with pullup */
251 AT91_PIOA 16 AT91_PERIPH_A
252 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA16 CMD periph A with pullup */
253 AT91_PIOA 15 AT91_PERIPH_A
254 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA15 DAT0 periph A */
255 AT91_PIOA 18 AT91_PERIPH_A
256 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA18 DAT1 periph A with pullup */
257 AT91_PIOA 19 AT91_PERIPH_A
258 (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI | AT91_PINCTRL_SLEWRATE_ENA) /* PA19 DAT2 periph A with pullup */
259 AT91_PIOA 20 AT91_PERIPH_A
260 (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 +0000261 };
262 };
Mihai Sainee43b1e2022-12-23 08:47:17 +0200263
264 sdhci1 {
265 pinctrl_sdhci1: sdhci1 {
266 atmel,pins =
267 <AT91_PIOA 13 AT91_PERIPH_B (AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA13 CK periph B */
268 AT91_PIOA 12 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA12 CMD periph B with pullup */
269 AT91_PIOA 11 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA11 DAT0 periph B with pullup */
270 AT91_PIOA 2 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA2 DAT1 periph B with pullup */
271 AT91_PIOA 3 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI) /* PA3 DAT2 periph B with pullup */
272 AT91_PIOA 4 AT91_PERIPH_B (AT91_PINCTRL_PULL_UP | AT91_PINCTRL_DRIVE_STRENGTH_HI)>; /* PA4 DAT3 periph B with pullup */
273 };
274 };
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000275 };
276
277 pioA: gpio@fffff400 {
278 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
279 reg = <0xfffff400 0x200>;
280 #gpio-cells = <2>;
281 gpio-controller;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300282 clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000283 };
284
285 pioB: gpio@fffff600 {
286 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
287 reg = <0xfffff600 0x200>;
288 #gpio-cells = <2>;
289 gpio-controller;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300290 clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000291 };
292
Mihai Sain62cf34d2021-10-27 10:28:35 +0300293 pioC: gpio@fffff800 {
294 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
295 reg = <0xfffff800 0x200>;
296 #gpio-cells = <2>;
297 gpio-controller;
298 clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
299 };
300
Eugen Hristev223cab52019-09-30 07:28:58 +0000301 pioD: gpio@fffffa00 {
302 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
303 reg = <0xfffffa00 0x200>;
304 #gpio-cells = <2>;
305 gpio-controller;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300306 clocks = <&pmc PMC_TYPE_PERIPHERAL 44>;
Eugen Hristev223cab52019-09-30 07:28:58 +0000307 };
308
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000309 pmc: pmc@fffffc00 {
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300310 compatible = "microchip,sam9x60-pmc";
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000311 reg = <0xfffffc00 0x200>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300312 #clock-cells = <2>;
313 clocks = <&clk32 1>, <&clk32 0>, <&main_xtal>, <&main_rc>;
314 clock-names = "td_slck", "md_slck", "main_xtal", "main_rc";
315 status = "okay";
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000316 };
317
Sergiu Moga20165852022-04-01 12:27:23 +0300318 reset_controller: rstc@fffffe00 {
319 compatible = "microchip,sam9x60-rstc";
320 reg = <0xfffffe00 0x10>;
321 clocks = <&clk32 0>;
322 };
323
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000324 pit: timer@fffffe40 {
325 compatible = "atmel,at91sam9260-pit";
326 reg = <0xfffffe40 0x10>;
Claudiu Bezneac37d59a2020-10-07 18:17:12 +0300327 clocks = <&pmc PMC_TYPE_CORE 11>; /* ID_MCK. */
Sandeep Sheriker Mallikarjunf99e0ad2019-09-27 13:08:45 +0000328 };
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};