blob: 9fb7ffd32af26cd9ab7d959f7e1641b2937e050a [file] [log] [blame]
Hong Xucce783c2012-04-17 14:26:29 +08001/*
2 * at91sam9n12.dtsi - Device Tree include file for AT91SAM9N12 SoC
3 *
4 * Copyright (C) 2012 Atmel,
5 * 2012 Hong Xu <hong.xu@atmel.com>
6 *
7 * Licensed under GPLv2 or later.
8 */
9
Jean-Christophe PLAGNIOL-VILLARD6db64d22013-05-15 01:21:50 +080010#include "skeleton.dtsi"
Ludovic Desrochesd4ae89c2013-05-30 18:08:22 +020011#include <dt-bindings/dma/at91.h>
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +080012#include <dt-bindings/pinctrl/at91.h>
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +080013#include <dt-bindings/interrupt-controller/irq.h>
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +080014#include <dt-bindings/gpio/gpio.h>
Hong Xucce783c2012-04-17 14:26:29 +080015
16/ {
17 model = "Atmel AT91SAM9N12 SoC";
18 compatible = "atmel,at91sam9n12";
19 interrupt-parent = <&aic>;
20
21 aliases {
22 serial0 = &dbgu;
23 serial1 = &usart0;
24 serial2 = &usart1;
25 serial3 = &usart2;
26 serial4 = &usart3;
27 gpio0 = &pioA;
28 gpio1 = &pioB;
29 gpio2 = &pioC;
30 gpio3 = &pioD;
31 tcb0 = &tcb0;
32 tcb1 = &tcb1;
Ludovic Desroches05dcd362012-09-12 08:42:16 +020033 i2c0 = &i2c0;
34 i2c1 = &i2c1;
Bo Shen544ae6b2013-01-11 15:08:30 +010035 ssc0 = &ssc0;
Hong Xucce783c2012-04-17 14:26:29 +080036 };
37 cpus {
Lorenzo Pieralisie757a6e2013-04-18 18:31:35 +010038 #address-cells = <0>;
39 #size-cells = <0>;
40
41 cpu {
42 compatible = "arm,arm926ej-s";
43 device_type = "cpu";
Hong Xucce783c2012-04-17 14:26:29 +080044 };
45 };
46
47 memory {
48 reg = <0x20000000 0x10000000>;
49 };
50
51 ahb {
52 compatible = "simple-bus";
53 #address-cells = <1>;
54 #size-cells = <1>;
55 ranges;
56
57 apb {
58 compatible = "simple-bus";
59 #address-cells = <1>;
60 #size-cells = <1>;
61 ranges;
62
63 aic: interrupt-controller@fffff000 {
Ludovic Desrochesf8a073e2012-06-20 16:13:30 +020064 #interrupt-cells = <3>;
Hong Xucce783c2012-04-17 14:26:29 +080065 compatible = "atmel,at91rm9200-aic";
66 interrupt-controller;
67 reg = <0xfffff000 0x200>;
Jean-Christophe PLAGNIOL-VILLARD029efdd2013-05-24 00:59:16 +020068 atmel,external-irqs = <31>;
Hong Xucce783c2012-04-17 14:26:29 +080069 };
70
71 ramc0: ramc@ffffe800 {
72 compatible = "atmel,at91sam9g45-ddramc";
73 reg = <0xffffe800 0x200>;
74 };
75
76 pmc: pmc@fffffc00 {
77 compatible = "atmel,at91rm9200-pmc";
78 reg = <0xfffffc00 0x100>;
79 };
80
81 rstc@fffffe00 {
82 compatible = "atmel,at91sam9g45-rstc";
83 reg = <0xfffffe00 0x10>;
84 };
85
86 pit: timer@fffffe30 {
87 compatible = "atmel,at91sam9260-pit";
88 reg = <0xfffffe30 0xf>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +080089 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
Hong Xucce783c2012-04-17 14:26:29 +080090 };
91
92 shdwc@fffffe10 {
93 compatible = "atmel,at91sam9x5-shdwc";
94 reg = <0xfffffe10 0x10>;
95 };
96
Ludovic Desroches98731372012-11-19 12:23:36 +010097 mmc0: mmc@f0008000 {
98 compatible = "atmel,hsmci";
99 reg = <0xf0008000 0x600>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800100 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>;
Ludovic Desrochesd4ae89c2013-05-30 18:08:22 +0200101 dmas = <&dma 1 AT91_DMA_CFG_PER_ID(0)>;
Ludovic Desroches05c1bc92013-04-16 15:03:10 +0200102 dma-names = "rxtx";
Ludovic Desroches98731372012-11-19 12:23:36 +0100103 #address-cells = <1>;
104 #size-cells = <0>;
105 status = "disabled";
106 };
107
Hong Xucce783c2012-04-17 14:26:29 +0800108 tcb0: timer@f8008000 {
109 compatible = "atmel,at91sam9x5-tcb";
110 reg = <0xf8008000 0x100>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800111 interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>;
Hong Xucce783c2012-04-17 14:26:29 +0800112 };
113
114 tcb1: timer@f800c000 {
115 compatible = "atmel,at91sam9x5-tcb";
116 reg = <0xf800c000 0x100>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800117 interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>;
Hong Xucce783c2012-04-17 14:26:29 +0800118 };
119
120 dma: dma-controller@ffffec00 {
121 compatible = "atmel,at91sam9g45-dma";
122 reg = <0xffffec00 0x200>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800123 interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
Ludovic Desroches980ce7d2013-04-16 15:03:06 +0200124 #dma-cells = <2>;
Hong Xucce783c2012-04-17 14:26:29 +0800125 };
126
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800127 pinctrl@fffff400 {
128 #address-cells = <1>;
129 #size-cells = <1>;
Jean-Christophe PLAGNIOL-VILLARD5314ec82012-07-05 16:56:09 +0800130 compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800131 ranges = <0xfffff400 0xfffff400 0x800>;
Hong Xucce783c2012-04-17 14:26:29 +0800132
Jean-Christophe PLAGNIOL-VILLARD5314ec82012-07-05 16:56:09 +0800133 atmel,mux-mask = <
134 /* A B C */
135 0xffffffff 0xffe07983 0x00000000 /* pioA */
136 0x00040000 0x00047e0f 0x00000000 /* pioB */
137 0xfdffffff 0x07c00000 0xb83fffff /* pioC */
138 0x003fffff 0x003f8000 0x00000000 /* pioD */
139 >;
140
141 /* shared pinctrl settings */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800142 dbgu {
143 pinctrl_dbgu: dbgu-0 {
144 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800145 <AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA9 periph A */
146 AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA10 periph with pullup */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800147 };
148 };
149
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800150 usart0 {
151 pinctrl_usart0: usart0-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800152 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800153 <AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA1 periph A with pullup */
154 AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA0 periph A */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800155 };
156
Jean-Christophe PLAGNIOL-VILLARDc58c0c52012-11-19 07:30:01 +0800157 pinctrl_usart0_rts: usart0_rts-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800158 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800159 <AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA2 periph A */
Jean-Christophe PLAGNIOL-VILLARDc58c0c52012-11-19 07:30:01 +0800160 };
161
162 pinctrl_usart0_cts: usart0_cts-0 {
163 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800164 <AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA3 periph A */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800165 };
166 };
167
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800168 usart1 {
169 pinctrl_usart1: usart1-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800170 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800171 <AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA6 periph A with pullup */
172 AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA5 periph A */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800173 };
174 };
175
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800176 usart2 {
177 pinctrl_usart2: usart2-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800178 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800179 <AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA8 periph A with pullup */
180 AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA7 periph A */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800181 };
182
Jean-Christophe PLAGNIOL-VILLARDc58c0c52012-11-19 07:30:01 +0800183 pinctrl_usart2_rts: usart2_rts-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800184 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800185 <AT91_PIOB 0 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB0 periph B */
Jean-Christophe PLAGNIOL-VILLARDc58c0c52012-11-19 07:30:01 +0800186 };
187
188 pinctrl_usart2_cts: usart2_cts-0 {
189 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800190 <AT91_PIOB 1 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PB1 periph B */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800191 };
192 };
193
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800194 usart3 {
195 pinctrl_usart3: usart3-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800196 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800197 <AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PC23 periph B with pullup */
198 AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC22 periph B */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800199 };
200
Jean-Christophe PLAGNIOL-VILLARDc58c0c52012-11-19 07:30:01 +0800201 pinctrl_usart3_rts: usart3_rts-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800202 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800203 <AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC24 periph B */
Jean-Christophe PLAGNIOL-VILLARDc58c0c52012-11-19 07:30:01 +0800204 };
205
206 pinctrl_usart3_cts: usart3_cts-0 {
207 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800208 <AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC25 periph B */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800209 };
210 };
211
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800212 uart0 {
213 pinctrl_uart0: uart0-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800214 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800215 <AT91_PIOC 9 AT91_PERIPH_C AT91_PINCTRL_PULL_UP /* PC9 periph C with pullup */
216 AT91_PIOC 8 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC8 periph C */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800217 };
218 };
219
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800220 uart1 {
221 pinctrl_uart1: uart1-0 {
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800222 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800223 <AT91_PIOC 16 AT91_PERIPH_C AT91_PINCTRL_PULL_UP /* PC17 periph C with pullup */
224 AT91_PIOC 17 AT91_PERIPH_C AT91_PINCTRL_NONE>; /* PC16 periph C */
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800225 };
226 };
Jean-Christophe PLAGNIOL-VILLARD5314ec82012-07-05 16:56:09 +0800227
Jean-Christophe PLAGNIOL-VILLARD7a38d452012-07-12 23:36:52 +0800228 nand {
229 pinctrl_nand: nand-0 {
230 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800231 <AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP /* PD5 gpio RDY pin pull_up*/
232 AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD4 gpio enable pin pull_up */
Jean-Christophe PLAGNIOL-VILLARD7a38d452012-07-12 23:36:52 +0800233 };
234 };
235
Jean-Christophe PLAGNIOL-VILLARDd4fe9ac2012-11-16 08:24:17 +0800236 mmc0 {
237 pinctrl_mmc0_slot0_clk_cmd_dat0: mmc0_slot0_clk_cmd_dat0-0 {
238 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800239 <AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA17 periph A */
240 AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA16 periph A with pullup */
241 AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA15 periph A with pullup */
Jean-Christophe PLAGNIOL-VILLARDd4fe9ac2012-11-16 08:24:17 +0800242 };
243
244 pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
245 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800246 <AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA18 periph A with pullup */
247 AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP /* PA19 periph A with pullup */
248 AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>; /* PA20 periph A with pullup */
Jean-Christophe PLAGNIOL-VILLARDd4fe9ac2012-11-16 08:24:17 +0800249 };
250
251 pinctrl_mmc0_slot0_dat4_7: mmc0_slot0_dat4_7-0 {
252 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800253 <AT91_PIOA 11 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA11 periph B with pullup */
254 AT91_PIOA 12 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA12 periph B with pullup */
255 AT91_PIOA 13 AT91_PERIPH_B AT91_PINCTRL_PULL_UP /* PA13 periph B with pullup */
256 AT91_PIOA 14 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>; /* PA14 periph B with pullup */
Jean-Christophe PLAGNIOL-VILLARDd4fe9ac2012-11-16 08:24:17 +0800257 };
258 };
259
Bo Shen544ae6b2013-01-11 15:08:30 +0100260 ssc0 {
261 pinctrl_ssc0_tx: ssc0_tx-0 {
262 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800263 <AT91_PIOA 24 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA24 periph B */
264 AT91_PIOA 25 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA25 periph B */
265 AT91_PIOA 26 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA26 periph B */
Bo Shen544ae6b2013-01-11 15:08:30 +0100266 };
267
268 pinctrl_ssc0_rx: ssc0_rx-0 {
269 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800270 <AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA27 periph B */
271 AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA28 periph B */
272 AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA29 periph B */
Bo Shen544ae6b2013-01-11 15:08:30 +0100273 };
274 };
275
Wenyou Yanga68b7282013-04-03 14:03:52 +0800276 spi0 {
277 pinctrl_spi0: spi0-0 {
278 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800279 <AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA11 periph A SPI0_MISO pin */
280 AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE /* PA12 periph A SPI0_MOSI pin */
281 AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE>; /* PA13 periph A SPI0_SPCK pin */
Wenyou Yanga68b7282013-04-03 14:03:52 +0800282 };
283 };
284
285 spi1 {
286 pinctrl_spi1: spi1-0 {
287 atmel,pins =
Jean-Christophe PLAGNIOL-VILLARDc9d0f312013-04-24 08:34:25 +0800288 <AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA21 periph B SPI1_MISO pin */
289 AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE /* PA22 periph B SPI1_MOSI pin */
290 AT91_PIOA 23 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PA23 periph B SPI1_SPCK pin */
Wenyou Yanga68b7282013-04-03 14:03:52 +0800291 };
292 };
293
voice1f84d272013-07-11 11:30:44 +0800294 i2c0 {
295 pinctrl_i2c0: i2c0-0 {
296 atmel,pins =
297 <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE
298 AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;
299 };
300 };
301
302 i2c1 {
303 pinctrl_i2c1: i2c1-0 {
304 atmel,pins =
305 <AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_NONE
306 AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_NONE>;
307 };
308 };
309
Boris BREZILLON028633c2013-05-24 10:05:56 +0000310 tcb0 {
311 pinctrl_tcb0_tclk0: tcb0_tclk0-0 {
312 atmel,pins = <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_NONE>;
313 };
314
315 pinctrl_tcb0_tclk1: tcb0_tclk1-0 {
316 atmel,pins = <AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_NONE>;
317 };
318
319 pinctrl_tcb0_tclk2: tcb0_tclk2-0 {
320 atmel,pins = <AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_NONE>;
321 };
322
323 pinctrl_tcb0_tioa0: tcb0_tioa0-0 {
324 atmel,pins = <AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_NONE>;
325 };
326
327 pinctrl_tcb0_tioa1: tcb0_tioa1-0 {
328 atmel,pins = <AT91_PIOA 22 AT91_PERIPH_A AT91_PINCTRL_NONE>;
329 };
330
331 pinctrl_tcb0_tioa2: tcb0_tioa2-0 {
332 atmel,pins = <AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;
333 };
334
335 pinctrl_tcb0_tiob0: tcb0_tiob0-0 {
336 atmel,pins = <AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE>;
337 };
338
339 pinctrl_tcb0_tiob1: tcb0_tiob1-0 {
340 atmel,pins = <AT91_PIOA 28 AT91_PERIPH_A AT91_PINCTRL_NONE>;
341 };
342
343 pinctrl_tcb0_tiob2: tcb0_tiob2-0 {
344 atmel,pins = <AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_NONE>;
345 };
346 };
347
348 tcb1 {
349 pinctrl_tcb1_tclk0: tcb1_tclk0-0 {
350 atmel,pins = <AT91_PIOC 4 AT91_PERIPH_C AT91_PINCTRL_NONE>;
351 };
352
353 pinctrl_tcb1_tclk1: tcb1_tclk1-0 {
354 atmel,pins = <AT91_PIOC 7 AT91_PERIPH_C AT91_PINCTRL_NONE>;
355 };
356
357 pinctrl_tcb1_tclk2: tcb1_tclk2-0 {
358 atmel,pins = <AT91_PIOC 14 AT91_PERIPH_C AT91_PINCTRL_NONE>;
359 };
360
361 pinctrl_tcb1_tioa0: tcb1_tioa0-0 {
362 atmel,pins = <AT91_PIOC 2 AT91_PERIPH_C AT91_PINCTRL_NONE>;
363 };
364
365 pinctrl_tcb1_tioa1: tcb1_tioa1-0 {
366 atmel,pins = <AT91_PIOC 5 AT91_PERIPH_C AT91_PINCTRL_NONE>;
367 };
368
369 pinctrl_tcb1_tioa2: tcb1_tioa2-0 {
370 atmel,pins = <AT91_PIOC 12 AT91_PERIPH_C AT91_PINCTRL_NONE>;
371 };
372
373 pinctrl_tcb1_tiob0: tcb1_tiob0-0 {
374 atmel,pins = <AT91_PIOC 3 AT91_PERIPH_C AT91_PINCTRL_NONE>;
375 };
376
377 pinctrl_tcb1_tiob1: tcb1_tiob1-0 {
378 atmel,pins = <AT91_PIOC 6 AT91_PERIPH_C AT91_PINCTRL_NONE>;
379 };
380
381 pinctrl_tcb1_tiob2: tcb1_tiob2-0 {
382 atmel,pins = <AT91_PIOC 13 AT91_PERIPH_C AT91_PINCTRL_NONE>;
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800383 };
384 };
385
386 pioA: gpio@fffff400 {
387 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
388 reg = <0xfffff400 0x200>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800389 interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
Hong Xucce783c2012-04-17 14:26:29 +0800390 #gpio-cells = <2>;
391 gpio-controller;
392 interrupt-controller;
Jean-Christophe PLAGNIOL-VILLARD51ac51a2012-09-13 12:40:26 +0200393 #interrupt-cells = <2>;
Hong Xucce783c2012-04-17 14:26:29 +0800394 };
395
396 pioB: gpio@fffff600 {
397 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
398 reg = <0xfffff600 0x200>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800399 interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
Hong Xucce783c2012-04-17 14:26:29 +0800400 #gpio-cells = <2>;
401 gpio-controller;
402 interrupt-controller;
Jean-Christophe PLAGNIOL-VILLARD51ac51a2012-09-13 12:40:26 +0200403 #interrupt-cells = <2>;
Hong Xucce783c2012-04-17 14:26:29 +0800404 };
405
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800406 pioC: gpio@fffff800 {
407 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
408 reg = <0xfffff800 0x200>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800409 interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800410 #gpio-cells = <2>;
411 gpio-controller;
412 interrupt-controller;
413 #interrupt-cells = <2>;
414 };
415
416 pioD: gpio@fffffa00 {
417 compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
418 reg = <0xfffffa00 0x200>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800419 interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
Jean-Christophe PLAGNIOL-VILLARDe4541ff2012-07-04 17:20:46 +0800420 #gpio-cells = <2>;
421 gpio-controller;
422 interrupt-controller;
423 #interrupt-cells = <2>;
424 };
Hong Xucce783c2012-04-17 14:26:29 +0800425 };
426
427 dbgu: serial@fffff200 {
428 compatible = "atmel,at91sam9260-usart";
429 reg = <0xfffff200 0x200>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800430 interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800431 pinctrl-names = "default";
432 pinctrl-0 = <&pinctrl_dbgu>;
Hong Xucce783c2012-04-17 14:26:29 +0800433 status = "disabled";
434 };
435
Bo Shen544ae6b2013-01-11 15:08:30 +0100436 ssc0: ssc@f0010000 {
437 compatible = "atmel,at91sam9g45-ssc";
438 reg = <0xf0010000 0x4000>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800439 interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>;
Bo Shen544ae6b2013-01-11 15:08:30 +0100440 pinctrl-names = "default";
441 pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
442 status = "disabled";
443 };
444
Hong Xucce783c2012-04-17 14:26:29 +0800445 usart0: serial@f801c000 {
446 compatible = "atmel,at91sam9260-usart";
447 reg = <0xf801c000 0x4000>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800448 interrupts = <5 IRQ_TYPE_LEVEL_HIGH 5>;
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800449 pinctrl-names = "default";
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800450 pinctrl-0 = <&pinctrl_usart0>;
Hong Xucce783c2012-04-17 14:26:29 +0800451 status = "disabled";
452 };
453
454 usart1: serial@f8020000 {
455 compatible = "atmel,at91sam9260-usart";
456 reg = <0xf8020000 0x4000>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800457 interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>;
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800458 pinctrl-names = "default";
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800459 pinctrl-0 = <&pinctrl_usart1>;
Hong Xucce783c2012-04-17 14:26:29 +0800460 status = "disabled";
461 };
462
463 usart2: serial@f8024000 {
464 compatible = "atmel,at91sam9260-usart";
465 reg = <0xf8024000 0x4000>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800466 interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>;
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800467 pinctrl-names = "default";
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800468 pinctrl-0 = <&pinctrl_usart2>;
Hong Xucce783c2012-04-17 14:26:29 +0800469 status = "disabled";
470 };
471
472 usart3: serial@f8028000 {
473 compatible = "atmel,at91sam9260-usart";
474 reg = <0xf8028000 0x4000>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800475 interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
Jean-Christophe PLAGNIOL-VILLARDec6754a2012-07-05 16:56:09 +0800476 pinctrl-names = "default";
Jean-Christophe PLAGNIOL-VILLARD9e3129e2012-11-19 06:40:01 +0800477 pinctrl-0 = <&pinctrl_usart3>;
Hong Xucce783c2012-04-17 14:26:29 +0800478 status = "disabled";
479 };
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200480
481 i2c0: i2c@f8010000 {
482 compatible = "atmel,at91sam9x5-i2c";
483 reg = <0xf8010000 0x100>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800484 interrupts = <9 IRQ_TYPE_LEVEL_HIGH 6>;
Ludovic Desrochesd4ae89c2013-05-30 18:08:22 +0200485 dmas = <&dma 1 AT91_DMA_CFG_PER_ID(13)>,
486 <&dma 1 AT91_DMA_CFG_PER_ID(14)>;
Ludovic Desrochesd9a63a42013-04-16 15:03:08 +0200487 dma-names = "tx", "rx";
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200488 #address-cells = <1>;
489 #size-cells = <0>;
voice1f84d272013-07-11 11:30:44 +0800490 pinctrl-names = "default";
491 pinctrl-0 = <&pinctrl_i2c0>;
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200492 status = "disabled";
493 };
494
495 i2c1: i2c@f8014000 {
496 compatible = "atmel,at91sam9x5-i2c";
497 reg = <0xf8014000 0x100>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800498 interrupts = <10 IRQ_TYPE_LEVEL_HIGH 6>;
Ludovic Desrochesd4ae89c2013-05-30 18:08:22 +0200499 dmas = <&dma 1 AT91_DMA_CFG_PER_ID(15)>,
500 <&dma 1 AT91_DMA_CFG_PER_ID(16)>;
Ludovic Desrochesd9a63a42013-04-16 15:03:08 +0200501 dma-names = "tx", "rx";
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200502 #address-cells = <1>;
503 #size-cells = <0>;
voice1f84d272013-07-11 11:30:44 +0800504 pinctrl-names = "default";
505 pinctrl-0 = <&pinctrl_i2c1>;
Ludovic Desroches05dcd362012-09-12 08:42:16 +0200506 status = "disabled";
507 };
Richard Genoudd50f88a2013-04-03 14:02:18 +0800508
509 spi0: spi@f0000000 {
510 #address-cells = <1>;
511 #size-cells = <0>;
512 compatible = "atmel,at91rm9200-spi";
513 reg = <0xf0000000 0x100>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800514 interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>;
Nicolas Ferrec07b0002013-06-24 12:21:29 +0200515 dmas = <&dma 1 AT91_DMA_CFG_PER_ID(1)>,
516 <&dma 1 AT91_DMA_CFG_PER_ID(2)>;
517 dma-names = "tx", "rx";
Wenyou Yanga68b7282013-04-03 14:03:52 +0800518 pinctrl-names = "default";
519 pinctrl-0 = <&pinctrl_spi0>;
Richard Genoudd50f88a2013-04-03 14:02:18 +0800520 status = "disabled";
521 };
522
523 spi1: spi@f0004000 {
524 #address-cells = <1>;
525 #size-cells = <0>;
526 compatible = "atmel,at91rm9200-spi";
527 reg = <0xf0004000 0x100>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800528 interrupts = <14 IRQ_TYPE_LEVEL_HIGH 3>;
Nicolas Ferrec07b0002013-06-24 12:21:29 +0200529 dmas = <&dma 1 AT91_DMA_CFG_PER_ID(3)>,
530 <&dma 1 AT91_DMA_CFG_PER_ID(4)>;
531 dma-names = "tx", "rx";
Wenyou Yanga68b7282013-04-03 14:03:52 +0800532 pinctrl-names = "default";
533 pinctrl-0 = <&pinctrl_spi1>;
Richard Genoudd50f88a2013-04-03 14:02:18 +0800534 status = "disabled";
535 };
Wenyou Yang136d3552013-05-31 11:10:02 +0800536
537 watchdog@fffffe40 {
538 compatible = "atmel,at91sam9260-wdt";
539 reg = <0xfffffe40 0x10>;
540 status = "disabled";
541 };
Hong Xucce783c2012-04-17 14:26:29 +0800542 };
543
544 nand0: nand@40000000 {
545 compatible = "atmel,at91rm9200-nand";
546 #address-cells = <1>;
547 #size-cells = <1>;
548 reg = < 0x40000000 0x10000000
549 0xffffe000 0x00000600
550 0xffffe600 0x00000200
Josh Wuc18c6b22013-01-23 20:47:10 +0800551 0x00108000 0x00018000
Hong Xucce783c2012-04-17 14:26:29 +0800552 >;
Josh Wuc18c6b22013-01-23 20:47:10 +0800553 atmel,pmecc-lookup-table-offset = <0x0 0x8000>;
Hong Xucce783c2012-04-17 14:26:29 +0800554 atmel,nand-addr-offset = <21>;
555 atmel,nand-cmd-offset = <22>;
Jean-Christophe PLAGNIOL-VILLARD7a38d452012-07-12 23:36:52 +0800556 pinctrl-names = "default";
557 pinctrl-0 = <&pinctrl_nand>;
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800558 gpios = <&pioD 5 GPIO_ACTIVE_HIGH
559 &pioD 4 GPIO_ACTIVE_HIGH
Hong Xucce783c2012-04-17 14:26:29 +0800560 0
561 >;
562 status = "disabled";
563 };
564
565 usb0: ohci@00500000 {
566 compatible = "atmel,at91rm9200-ohci", "usb-ohci";
567 reg = <0x00500000 0x00100000>;
Jean-Christophe PLAGNIOL-VILLARD5e8b3bc2013-04-24 08:34:25 +0800568 interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
Hong Xucce783c2012-04-17 14:26:29 +0800569 status = "disabled";
570 };
571 };
572
573 i2c@0 {
574 compatible = "i2c-gpio";
Jean-Christophe PLAGNIOL-VILLARD92f86292013-04-24 08:34:25 +0800575 gpios = <&pioA 30 GPIO_ACTIVE_HIGH /* sda */
576 &pioA 31 GPIO_ACTIVE_HIGH /* scl */
Hong Xucce783c2012-04-17 14:26:29 +0800577 >;
578 i2c-gpio,sda-open-drain;
579 i2c-gpio,scl-open-drain;
580 i2c-gpio,delay-us = <2>; /* ~100 kHz */
581 #address-cells = <1>;
582 #size-cells = <0>;
583 status = "disabled";
584 };
585};