blob: 2a31152a0f7d1aea821aed602e648742bac6e11a [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
Sergiu Moga85e34212023-01-04 16:04:10 +020073 usb1: usb@600000 {
74 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
75 reg = <0x00600000 0x100000>;
76 clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 21>;
77 clock-names = "ohci_clk", "hclk", "uhpck";
78 status = "disabled";
79 };
80
81 usb2: usb@700000 {
82 compatible = "atmel,at91sam9g45-ehci", "usb-ehci";
83 reg = <0x00700000 0x100000>;
84 clocks = <&pmc PMC_TYPE_CORE 8>, <&pmc PMC_TYPE_PERIPHERAL 22>;
85 clock-names = "usb_clk", "ehci_clk";
86 assigned-clocks = <&pmc PMC_TYPE_CORE 8>;
87 assigned-clock-rates = <480000000>;
88 status = "disabled";
89 };
90
Balamanikandan Gunasundar7b4fdbe2022-10-25 16:21:07 +053091 ebi: ebi@10000000 {
92 compatible = "microchip,sam9x60-ebi";
93 #address-cells = <2>;
94 #size-cells = <1>;
95 atmel,smc = <&smc>;
96 microchip,sfr = <&sfr>;
97 reg = <0x10000000 0x60000000>;
98 ranges = <0x0 0x0 0x10000000 0x10000000
99 0x1 0x0 0x20000000 0x10000000
100 0x2 0x0 0x30000000 0x10000000
101 0x3 0x0 0x40000000 0x10000000
102 0x4 0x0 0x50000000 0x10000000
103 0x5 0x0 0x60000000 0x10000000>;
104 clocks = <&pmc PMC_TYPE_CORE 11>;
105 status = "disabled";
106
107 nand_controller: nand-controller {
108 compatible = "microchip,sam9x60-nand-controller";
109 ecc-engine = <&pmecc>;
110 #address-cells = <2>;
111 #size-cells = <1>;
112 ranges;
113 status = "disabled";
114 };
115 };
116
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000117 sdhci0: sdhci-host@80000000 {
118 compatible = "microchip,sam9x60-sdhci";
119 reg = <0x80000000 0x300>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300120 clocks = <&pmc PMC_TYPE_PERIPHERAL 12>, <&pmc PMC_TYPE_GCK 12>;
121 clock-names = "hclock", "multclk";
122 assigned-clocks = <&pmc PMC_TYPE_GCK 12>;
123 assigned-clock-rates = <100000000>;
124 assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* ID_PLL_A_DIV */
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000125 bus-width = <4>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000126 };
127
Mihai Sainc31c8782022-12-23 08:47:17 +0200128 sdhci1: sdhci-host@90000000 {
129 compatible = "microchip,sam9x60-sdhci";
130 reg = <0x90000000 0x300>;
131 clocks = <&pmc PMC_TYPE_PERIPHERAL 26>, <&pmc PMC_TYPE_GCK 26>;
132 clock-names = "hclock", "multclk";
133 assigned-clocks = <&pmc PMC_TYPE_GCK 26>;
134 assigned-clock-rates = <100000000>;
135 assigned-clock-parents = <&pmc PMC_TYPE_CORE 10>; /* ID_PLL_A_DIV */
136 bus-width = <4>;
Mihai Sainc31c8782022-12-23 08:47:17 +0200137 };
138
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000139 apb {
140 compatible = "simple-bus";
141 #address-cells = <1>;
142 #size-cells = <1>;
143 ranges;
144
Tudor Ambarus6c8b9502019-09-27 13:09:19 +0000145 qspi: spi@f0014000 {
146 compatible = "microchip,sam9x60-qspi";
147 reg = <0xf0014000 0x100>, <0x70000000 0x10000000>;
148 reg-names = "qspi_base", "qspi_mmap";
Alexander Dahl35112772023-07-05 22:16:57 +0200149 clocks = <&pmc PMC_TYPE_PERIPHERAL 35>, <&pmc PMC_TYPE_SYSTEM 18>; /* ID_QSPI */
Tudor Ambarus6c8b9502019-09-27 13:09:19 +0000150 clock-names = "pclk", "qspick";
151 #address-cells = <1>;
152 #size-cells = <0>;
153 status = "disabled";
154 };
155
Alexander Dahl35112772023-07-05 22:16:57 +0200156 pit64b0: timer@f0028000 {
157 compatible = "microchip,sam9x60-pit64b";
158 reg = <0xf0028000 0xec>;
159 clocks = <&pmc PMC_TYPE_PERIPHERAL 37>, <&pmc PMC_TYPE_GCK 37>;
160 clock-names = "pclk", "gclk";
161 };
162
Eugen Hristeve54f1022019-10-09 09:23:40 +0000163 flx0: flexcom@f801c600 {
164 compatible = "atmel,sama5d2-flexcom";
165 reg = <0xf801c000 0x200>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300166 clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
Eugen Hristeve54f1022019-10-09 09:23:40 +0000167 #address-cells = <1>;
168 #size-cells = <1>;
169 ranges = <0x0 0xf801c000 0x800>;
170 status = "disabled";
171 };
172
Nicolas Ferred7d06bf2019-09-27 13:08:48 +0000173 macb0: ethernet@f802c000 {
174 compatible = "cdns,sam9x60-macb", "cdns,macb";
175 reg = <0xf802c000 0x100>;
Nicolas Ferred7d06bf2019-09-27 13:08:48 +0000176 clock-names = "hclk", "pclk";
Claudiu Beznea562a8642020-10-07 18:17:12 +0300177 clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>;
Nicolas Ferred7d06bf2019-09-27 13:08:48 +0000178 status = "disabled";
179 };
180
Balamanikandan Gunasundar7b4fdbe2022-10-25 16:21:07 +0530181 sfr: sfr@f8050000 {
182 compatible = "microchip,sam9x60-sfr", "syscon";
183 reg = <0xf8050000 0x100>;
184 };
185
Alexander Dahl35112772023-07-05 22:16:57 +0200186 pmecc: ecc-engine@ffffe000 {
187 compatible = "microchip,sam9x60-pmecc", "atmel,at91sam9g45-pmecc";
188 reg = <0xffffe000 0x300>,
189 <0xffffe600 0x100>;
190 };
191
192 smc: smc@ffffea00 {
193 compatible = "microchip,sam9x60-smc", "atmel,at91sam9260-smc", "syscon";
194 reg = <0xffffea00 0x100>;
195 };
196
Manikandan Muralidharan442eb3c2025-02-10 12:21:37 +0530197 aic: interrupt-controller@fffff100 {
198 compatible = "microchip,sam9x60-aic";
199 #interrupt-cells = <3>;
200 interrupt-controller;
201 reg = <0xfffff100 0x100>;
202 atmel,external-irqs = <31>;
203 };
204
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000205 dbgu: serial@fffff200 {
206 compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
207 reg = <0xfffff200 0x200>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300208 clocks = <&pmc PMC_TYPE_PERIPHERAL 47>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000209 clock-names = "usart";
210 };
211
Alexander Dahl35112772023-07-05 22:16:57 +0200212 pinctrl: pinctrl@fffff400 {
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000213 #address-cells = <1>;
214 #size-cells = <1>;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530215 compatible = "microchip,sam9x60-pinctrl", "simple-mfd";
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000216 ranges = <0xfffff400 0xfffff400 0x800>;
217 reg = <0xfffff400 0x200 /* pioA */
218 0xfffff600 0x200 /* pioB */
219 0xfffff800 0x200 /* pioC */
220 0xfffffa00 0x200>; /* pioD */
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530221
222 /* mux-mask corresponding to sam9x60 SoC in TFBGA228L package */
223 atmel,mux-mask = <
224 /* A B C */
225 0xffffffff 0xffe03fff 0xef00019d /* pioA */
226 0x03ffffff 0x02fc7e7f 0x00780000 /* pioB */
227 0xffffffff 0xffffffff 0xf83fffff /* pioC */
228 0x003fffff 0x003f8000 0x00000000 /* pioD */
229 >;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000230 };
231
232 pioA: gpio@fffff400 {
233 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
234 reg = <0xfffff400 0x200>;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530235 interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000236 #gpio-cells = <2>;
237 gpio-controller;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530238 interrupt-controller;
239 #interrupt-cells = <2>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300240 clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000241 };
242
243 pioB: gpio@fffff600 {
244 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
245 reg = <0xfffff600 0x200>;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530246 interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000247 #gpio-cells = <2>;
248 gpio-controller;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530249 #gpio-lines = <26>;
250 interrupt-controller;
251 #interrupt-cells = <2>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300252 clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000253 };
254
Mihai Sain48386122021-10-27 10:28:35 +0300255 pioC: gpio@fffff800 {
256 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
257 reg = <0xfffff800 0x200>;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530258 interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
Mihai Sain48386122021-10-27 10:28:35 +0300259 #gpio-cells = <2>;
260 gpio-controller;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530261 interrupt-controller;
262 #interrupt-cells = <2>;
Mihai Sain48386122021-10-27 10:28:35 +0300263 clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
264 };
265
Eugen Hristev94b65ea2019-09-30 07:28:58 +0000266 pioD: gpio@fffffa00 {
267 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
268 reg = <0xfffffa00 0x200>;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530269 interrupts = <44 IRQ_TYPE_LEVEL_HIGH 1>;
Eugen Hristev94b65ea2019-09-30 07:28:58 +0000270 #gpio-cells = <2>;
271 gpio-controller;
Manikandan Muralidharan43551572025-02-10 12:21:40 +0530272 #gpio-lines = <22>;
273 interrupt-controller;
274 #interrupt-cells = <2>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300275 clocks = <&pmc PMC_TYPE_PERIPHERAL 44>;
Eugen Hristev94b65ea2019-09-30 07:28:58 +0000276 };
277
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000278 pmc: pmc@fffffc00 {
Claudiu Beznea562a8642020-10-07 18:17:12 +0300279 compatible = "microchip,sam9x60-pmc";
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000280 reg = <0xfffffc00 0x200>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300281 #clock-cells = <2>;
282 clocks = <&clk32 1>, <&clk32 0>, <&main_xtal>, <&main_rc>;
283 clock-names = "td_slck", "md_slck", "main_xtal", "main_rc";
284 status = "okay";
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000285 };
286
Sergiu Mogab60e9772022-04-01 12:27:23 +0300287 reset_controller: rstc@fffffe00 {
288 compatible = "microchip,sam9x60-rstc";
289 reg = <0xfffffe00 0x10>;
290 clocks = <&clk32 0>;
291 };
292
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000293 pit: timer@fffffe40 {
294 compatible = "atmel,at91sam9260-pit";
295 reg = <0xfffffe40 0x10>;
Claudiu Beznea562a8642020-10-07 18:17:12 +0300296 clocks = <&pmc PMC_TYPE_CORE 11>; /* ID_MCK. */
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000297 };
298
Claudiu Bezneaea2d4962020-10-07 18:17:11 +0300299 clk32: sckc@fffffe50 {
300 compatible = "microchip,sam9x60-sckc";
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000301 reg = <0xfffffe50 0x4>;
Claudiu Bezneaea2d4962020-10-07 18:17:11 +0300302 clocks = <&slow_rc_osc>, <&slow_xtal>;
303 #clock-cells = <1>;
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000304 };
305 };
306 };
Eugen Hristev94b65ea2019-09-30 07:28:58 +0000307
308 onewire_tm: onewire {
309 compatible = "w1-gpio";
310 status = "disabled";
311 };
Sandeep Sheriker Mallikarjun976c2dc2019-09-27 13:08:45 +0000312};