xref: /freebsd/sys/contrib/device-tree/src/arm/microchip/at91sam9n12.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91sam9n12.dtsi - Device Tree include file for AT91SAM9N12 SoC
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot *  Copyright (C) 2012 Atmel,
6*f126890aSEmmanuel Vadot *                2012 Hong Xu <hong.xu@atmel.com>
7*f126890aSEmmanuel Vadot */
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot#include <dt-bindings/dma/at91.h>
10*f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/at91.h>
11*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
12*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
13*f126890aSEmmanuel Vadot#include <dt-bindings/clock/at91.h>
14*f126890aSEmmanuel Vadot#include <dt-bindings/mfd/at91-usart.h>
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot/ {
17*f126890aSEmmanuel Vadot	#address-cells = <1>;
18*f126890aSEmmanuel Vadot	#size-cells = <1>;
19*f126890aSEmmanuel Vadot	model = "Atmel AT91SAM9N12 SoC";
20*f126890aSEmmanuel Vadot	compatible = "atmel,at91sam9n12";
21*f126890aSEmmanuel Vadot	interrupt-parent = <&aic>;
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot	aliases {
24*f126890aSEmmanuel Vadot		serial0 = &dbgu;
25*f126890aSEmmanuel Vadot		serial1 = &usart0;
26*f126890aSEmmanuel Vadot		serial2 = &usart1;
27*f126890aSEmmanuel Vadot		serial3 = &usart2;
28*f126890aSEmmanuel Vadot		serial4 = &usart3;
29*f126890aSEmmanuel Vadot		gpio0 = &pioA;
30*f126890aSEmmanuel Vadot		gpio1 = &pioB;
31*f126890aSEmmanuel Vadot		gpio2 = &pioC;
32*f126890aSEmmanuel Vadot		gpio3 = &pioD;
33*f126890aSEmmanuel Vadot		tcb0 = &tcb0;
34*f126890aSEmmanuel Vadot		tcb1 = &tcb1;
35*f126890aSEmmanuel Vadot		i2c0 = &i2c0;
36*f126890aSEmmanuel Vadot		i2c1 = &i2c1;
37*f126890aSEmmanuel Vadot		ssc0 = &ssc0;
38*f126890aSEmmanuel Vadot		pwm0 = &pwm0;
39*f126890aSEmmanuel Vadot	};
40*f126890aSEmmanuel Vadot	cpus {
41*f126890aSEmmanuel Vadot		#address-cells = <1>;
42*f126890aSEmmanuel Vadot		#size-cells = <0>;
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot		cpu@0 {
45*f126890aSEmmanuel Vadot			compatible = "arm,arm926ej-s";
46*f126890aSEmmanuel Vadot			device_type = "cpu";
47*f126890aSEmmanuel Vadot			reg = <0>;
48*f126890aSEmmanuel Vadot		};
49*f126890aSEmmanuel Vadot	};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	memory@20000000 {
52*f126890aSEmmanuel Vadot		device_type = "memory";
53*f126890aSEmmanuel Vadot		reg = <0x20000000 0x10000000>;
54*f126890aSEmmanuel Vadot	};
55*f126890aSEmmanuel Vadot
56*f126890aSEmmanuel Vadot	clocks {
57*f126890aSEmmanuel Vadot		slow_xtal: slow_xtal {
58*f126890aSEmmanuel Vadot			compatible = "fixed-clock";
59*f126890aSEmmanuel Vadot			#clock-cells = <0>;
60*f126890aSEmmanuel Vadot			clock-frequency = <0>;
61*f126890aSEmmanuel Vadot		};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot		main_xtal: main_xtal {
64*f126890aSEmmanuel Vadot			compatible = "fixed-clock";
65*f126890aSEmmanuel Vadot			#clock-cells = <0>;
66*f126890aSEmmanuel Vadot			clock-frequency = <0>;
67*f126890aSEmmanuel Vadot		};
68*f126890aSEmmanuel Vadot	};
69*f126890aSEmmanuel Vadot
70*f126890aSEmmanuel Vadot	sram: sram@300000 {
71*f126890aSEmmanuel Vadot		compatible = "mmio-sram";
72*f126890aSEmmanuel Vadot		reg = <0x00300000 0x8000>;
73*f126890aSEmmanuel Vadot		#address-cells = <1>;
74*f126890aSEmmanuel Vadot		#size-cells = <1>;
75*f126890aSEmmanuel Vadot		ranges = <0 0x00300000 0x8000>;
76*f126890aSEmmanuel Vadot	};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot	ahb {
79*f126890aSEmmanuel Vadot		compatible = "simple-bus";
80*f126890aSEmmanuel Vadot		#address-cells = <1>;
81*f126890aSEmmanuel Vadot		#size-cells = <1>;
82*f126890aSEmmanuel Vadot		ranges;
83*f126890aSEmmanuel Vadot
84*f126890aSEmmanuel Vadot		apb {
85*f126890aSEmmanuel Vadot			compatible = "simple-bus";
86*f126890aSEmmanuel Vadot			#address-cells = <1>;
87*f126890aSEmmanuel Vadot			#size-cells = <1>;
88*f126890aSEmmanuel Vadot			ranges;
89*f126890aSEmmanuel Vadot
90*f126890aSEmmanuel Vadot			aic: interrupt-controller@fffff000 {
91*f126890aSEmmanuel Vadot				#interrupt-cells = <3>;
92*f126890aSEmmanuel Vadot				compatible = "atmel,at91rm9200-aic";
93*f126890aSEmmanuel Vadot				interrupt-controller;
94*f126890aSEmmanuel Vadot				reg = <0xfffff000 0x200>;
95*f126890aSEmmanuel Vadot				atmel,external-irqs = <31>;
96*f126890aSEmmanuel Vadot			};
97*f126890aSEmmanuel Vadot
98*f126890aSEmmanuel Vadot			matrix: matrix@ffffde00 {
99*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9n12-matrix", "syscon";
100*f126890aSEmmanuel Vadot				reg = <0xffffde00 0x100>;
101*f126890aSEmmanuel Vadot			};
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot			pmecc: ecc-engine@ffffe000 {
104*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9g45-pmecc";
105*f126890aSEmmanuel Vadot				reg = <0xffffe000 0x600>,
106*f126890aSEmmanuel Vadot				      <0xffffe600 0x200>;
107*f126890aSEmmanuel Vadot			};
108*f126890aSEmmanuel Vadot
109*f126890aSEmmanuel Vadot			ramc0: ramc@ffffe800 {
110*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9g45-ddramc";
111*f126890aSEmmanuel Vadot				reg = <0xffffe800 0x200>;
112*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_SYSTEM 2>;
113*f126890aSEmmanuel Vadot				clock-names = "ddrck";
114*f126890aSEmmanuel Vadot			};
115*f126890aSEmmanuel Vadot
116*f126890aSEmmanuel Vadot			smc: smc@ffffea00 {
117*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-smc", "syscon";
118*f126890aSEmmanuel Vadot				reg = <0xffffea00 0x200>;
119*f126890aSEmmanuel Vadot			};
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot			pmc: clock-controller@fffffc00 {
122*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9n12-pmc", "syscon";
123*f126890aSEmmanuel Vadot				reg = <0xfffffc00 0x200>;
124*f126890aSEmmanuel Vadot				#clock-cells = <2>;
125*f126890aSEmmanuel Vadot				clocks = <&clk32k>, <&main_xtal>;
126*f126890aSEmmanuel Vadot				clock-names = "slow_clk", "main_xtal";
127*f126890aSEmmanuel Vadot				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
128*f126890aSEmmanuel Vadot			};
129*f126890aSEmmanuel Vadot
130*f126890aSEmmanuel Vadot			reset-controller@fffffe00 {
131*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9g45-rstc";
132*f126890aSEmmanuel Vadot				reg = <0xfffffe00 0x10>;
133*f126890aSEmmanuel Vadot				clocks = <&clk32k>;
134*f126890aSEmmanuel Vadot			};
135*f126890aSEmmanuel Vadot
136*f126890aSEmmanuel Vadot			pit: timer@fffffe30 {
137*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-pit";
138*f126890aSEmmanuel Vadot				reg = <0xfffffe30 0xf>;
139*f126890aSEmmanuel Vadot				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
140*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
141*f126890aSEmmanuel Vadot			};
142*f126890aSEmmanuel Vadot
143*f126890aSEmmanuel Vadot			poweroff@fffffe10 {
144*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-shdwc";
145*f126890aSEmmanuel Vadot				reg = <0xfffffe10 0x10>;
146*f126890aSEmmanuel Vadot				clocks = <&clk32k>;
147*f126890aSEmmanuel Vadot			};
148*f126890aSEmmanuel Vadot
149*f126890aSEmmanuel Vadot			clk32k: clock-controller@fffffe50 {
150*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-sckc";
151*f126890aSEmmanuel Vadot				reg = <0xfffffe50 0x4>;
152*f126890aSEmmanuel Vadot				clocks = <&slow_xtal>;
153*f126890aSEmmanuel Vadot				#clock-cells = <0>;
154*f126890aSEmmanuel Vadot			};
155*f126890aSEmmanuel Vadot
156*f126890aSEmmanuel Vadot			mmc0: mmc@f0008000 {
157*f126890aSEmmanuel Vadot				compatible = "atmel,hsmci";
158*f126890aSEmmanuel Vadot				reg = <0xf0008000 0x600>;
159*f126890aSEmmanuel Vadot				interrupts = <12 IRQ_TYPE_LEVEL_HIGH 0>;
160*f126890aSEmmanuel Vadot				dmas = <&dma 1 AT91_DMA_CFG_PER_ID(0)>;
161*f126890aSEmmanuel Vadot				dma-names = "rxtx";
162*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 12>;
163*f126890aSEmmanuel Vadot				clock-names = "mci_clk";
164*f126890aSEmmanuel Vadot				#address-cells = <1>;
165*f126890aSEmmanuel Vadot				#size-cells = <0>;
166*f126890aSEmmanuel Vadot				status = "disabled";
167*f126890aSEmmanuel Vadot			};
168*f126890aSEmmanuel Vadot
169*f126890aSEmmanuel Vadot			tcb0: timer@f8008000 {
170*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon";
171*f126890aSEmmanuel Vadot				#address-cells = <1>;
172*f126890aSEmmanuel Vadot				#size-cells = <0>;
173*f126890aSEmmanuel Vadot				reg = <0xf8008000 0x100>;
174*f126890aSEmmanuel Vadot				interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>;
175*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 17>, <&clk32k>;
176*f126890aSEmmanuel Vadot				clock-names = "t0_clk", "slow_clk";
177*f126890aSEmmanuel Vadot			};
178*f126890aSEmmanuel Vadot
179*f126890aSEmmanuel Vadot			tcb1: timer@f800c000 {
180*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-tcb", "simple-mfd", "syscon";
181*f126890aSEmmanuel Vadot				#address-cells = <1>;
182*f126890aSEmmanuel Vadot				#size-cells = <0>;
183*f126890aSEmmanuel Vadot				reg = <0xf800c000 0x100>;
184*f126890aSEmmanuel Vadot				interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>;
185*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 17>, <&clk32k>;
186*f126890aSEmmanuel Vadot				clock-names = "t0_clk", "slow_clk";
187*f126890aSEmmanuel Vadot			};
188*f126890aSEmmanuel Vadot
189*f126890aSEmmanuel Vadot			hlcdc: hlcdc@f8038000 {
190*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9n12-hlcdc";
191*f126890aSEmmanuel Vadot				reg = <0xf8038000 0x2000>;
192*f126890aSEmmanuel Vadot				interrupts = <25 IRQ_TYPE_LEVEL_HIGH 0>;
193*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 25>, <&pmc PMC_TYPE_SYSTEM 3>, <&clk32k>;
194*f126890aSEmmanuel Vadot				clock-names = "periph_clk", "sys_clk", "slow_clk";
195*f126890aSEmmanuel Vadot				status = "disabled";
196*f126890aSEmmanuel Vadot
197*f126890aSEmmanuel Vadot				hlcdc-display-controller {
198*f126890aSEmmanuel Vadot					compatible = "atmel,hlcdc-display-controller";
199*f126890aSEmmanuel Vadot					#address-cells = <1>;
200*f126890aSEmmanuel Vadot					#size-cells = <0>;
201*f126890aSEmmanuel Vadot
202*f126890aSEmmanuel Vadot					port@0 {
203*f126890aSEmmanuel Vadot						#address-cells = <1>;
204*f126890aSEmmanuel Vadot						#size-cells = <0>;
205*f126890aSEmmanuel Vadot						reg = <0>;
206*f126890aSEmmanuel Vadot					};
207*f126890aSEmmanuel Vadot				};
208*f126890aSEmmanuel Vadot
209*f126890aSEmmanuel Vadot				hlcdc_pwm: hlcdc-pwm {
210*f126890aSEmmanuel Vadot					compatible = "atmel,hlcdc-pwm";
211*f126890aSEmmanuel Vadot					pinctrl-names = "default";
212*f126890aSEmmanuel Vadot					pinctrl-0 = <&pinctrl_lcd_pwm>;
213*f126890aSEmmanuel Vadot					#pwm-cells = <3>;
214*f126890aSEmmanuel Vadot				};
215*f126890aSEmmanuel Vadot			};
216*f126890aSEmmanuel Vadot
217*f126890aSEmmanuel Vadot			dma: dma-controller@ffffec00 {
218*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9g45-dma";
219*f126890aSEmmanuel Vadot				reg = <0xffffec00 0x200>;
220*f126890aSEmmanuel Vadot				interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
221*f126890aSEmmanuel Vadot				#dma-cells = <2>;
222*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 20>;
223*f126890aSEmmanuel Vadot				clock-names = "dma_clk";
224*f126890aSEmmanuel Vadot			};
225*f126890aSEmmanuel Vadot
226*f126890aSEmmanuel Vadot			pinctrl@fffff400 {
227*f126890aSEmmanuel Vadot				#address-cells = <1>;
228*f126890aSEmmanuel Vadot				#size-cells = <1>;
229*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus";
230*f126890aSEmmanuel Vadot				ranges = <0xfffff400 0xfffff400 0x800>;
231*f126890aSEmmanuel Vadot
232*f126890aSEmmanuel Vadot				atmel,mux-mask = <
233*f126890aSEmmanuel Vadot				      /*    A         B          C     */
234*f126890aSEmmanuel Vadot				       0xffffffff 0xffe07983 0x00000000  /* pioA */
235*f126890aSEmmanuel Vadot				       0x00040000 0x00047e0f 0x00000000  /* pioB */
236*f126890aSEmmanuel Vadot				       0xfdffffff 0x07c00000 0xb83fffff  /* pioC */
237*f126890aSEmmanuel Vadot				       0x003fffff 0x003f8000 0x00000000  /* pioD */
238*f126890aSEmmanuel Vadot				      >;
239*f126890aSEmmanuel Vadot
240*f126890aSEmmanuel Vadot				/* shared pinctrl settings */
241*f126890aSEmmanuel Vadot				dbgu {
242*f126890aSEmmanuel Vadot					pinctrl_dbgu: dbgu-0 {
243*f126890aSEmmanuel Vadot						atmel,pins =
244*f126890aSEmmanuel Vadot							<AT91_PIOA 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP
245*f126890aSEmmanuel Vadot							 AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
246*f126890aSEmmanuel Vadot					};
247*f126890aSEmmanuel Vadot				};
248*f126890aSEmmanuel Vadot
249*f126890aSEmmanuel Vadot				lcd {
250*f126890aSEmmanuel Vadot					pinctrl_lcd_base: lcd-base-0 {
251*f126890aSEmmanuel Vadot						atmel,pins =
252*f126890aSEmmanuel Vadot							<AT91_PIOC 27 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDVSYNC */
253*f126890aSEmmanuel Vadot							 AT91_PIOC 28 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDHSYNC */
254*f126890aSEmmanuel Vadot							 AT91_PIOC 24 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDDISP */
255*f126890aSEmmanuel Vadot							 AT91_PIOC 29 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDDEN */
256*f126890aSEmmanuel Vadot							 AT91_PIOC 30 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* LCDPCK */
257*f126890aSEmmanuel Vadot					};
258*f126890aSEmmanuel Vadot
259*f126890aSEmmanuel Vadot					pinctrl_lcd_pwm: lcd-pwm-0 {
260*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 26 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* LCDPWM */
261*f126890aSEmmanuel Vadot					};
262*f126890aSEmmanuel Vadot
263*f126890aSEmmanuel Vadot					pinctrl_lcd_rgb888: lcd-rgb-3 {
264*f126890aSEmmanuel Vadot						atmel,pins =
265*f126890aSEmmanuel Vadot							<AT91_PIOC 0 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD0 pin */
266*f126890aSEmmanuel Vadot							 AT91_PIOC 1 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD1 pin */
267*f126890aSEmmanuel Vadot							 AT91_PIOC 2 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD2 pin */
268*f126890aSEmmanuel Vadot							 AT91_PIOC 3 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD3 pin */
269*f126890aSEmmanuel Vadot							 AT91_PIOC 4 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD4 pin */
270*f126890aSEmmanuel Vadot							 AT91_PIOC 5 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD5 pin */
271*f126890aSEmmanuel Vadot							 AT91_PIOC 6 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD6 pin */
272*f126890aSEmmanuel Vadot							 AT91_PIOC 7 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD7 pin */
273*f126890aSEmmanuel Vadot							 AT91_PIOC 8 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD8 pin */
274*f126890aSEmmanuel Vadot							 AT91_PIOC 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD9 pin */
275*f126890aSEmmanuel Vadot							 AT91_PIOC 10 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD10 pin */
276*f126890aSEmmanuel Vadot							 AT91_PIOC 11 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD11 pin */
277*f126890aSEmmanuel Vadot							 AT91_PIOC 12 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD12 pin */
278*f126890aSEmmanuel Vadot							 AT91_PIOC 13 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD13 pin */
279*f126890aSEmmanuel Vadot							 AT91_PIOC 14 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD14 pin */
280*f126890aSEmmanuel Vadot							 AT91_PIOC 15 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD15 pin */
281*f126890aSEmmanuel Vadot							 AT91_PIOC 16 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD16 pin */
282*f126890aSEmmanuel Vadot							 AT91_PIOC 17 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD17 pin */
283*f126890aSEmmanuel Vadot							 AT91_PIOC 18 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD18 pin */
284*f126890aSEmmanuel Vadot							 AT91_PIOC 19 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD19 pin */
285*f126890aSEmmanuel Vadot							 AT91_PIOC 20 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD20 pin */
286*f126890aSEmmanuel Vadot							 AT91_PIOC 21 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD21 pin */
287*f126890aSEmmanuel Vadot							 AT91_PIOC 22 AT91_PERIPH_A AT91_PINCTRL_NONE	/* LCDD22 pin */
288*f126890aSEmmanuel Vadot							 AT91_PIOC 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* LCDD23 pin */
289*f126890aSEmmanuel Vadot					};
290*f126890aSEmmanuel Vadot				};
291*f126890aSEmmanuel Vadot
292*f126890aSEmmanuel Vadot				usart0 {
293*f126890aSEmmanuel Vadot					pinctrl_usart0: usart0-0 {
294*f126890aSEmmanuel Vadot						atmel,pins =
295*f126890aSEmmanuel Vadot							<AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PA1 periph A with pullup */
296*f126890aSEmmanuel Vadot							 AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA0 periph A */
297*f126890aSEmmanuel Vadot					};
298*f126890aSEmmanuel Vadot
299*f126890aSEmmanuel Vadot					pinctrl_usart0_rts: usart0_rts-0 {
300*f126890aSEmmanuel Vadot						atmel,pins =
301*f126890aSEmmanuel Vadot							<AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA2 periph A */
302*f126890aSEmmanuel Vadot					};
303*f126890aSEmmanuel Vadot
304*f126890aSEmmanuel Vadot					pinctrl_usart0_cts: usart0_cts-0 {
305*f126890aSEmmanuel Vadot						atmel,pins =
306*f126890aSEmmanuel Vadot							<AT91_PIOA 3 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA3 periph A */
307*f126890aSEmmanuel Vadot					};
308*f126890aSEmmanuel Vadot				};
309*f126890aSEmmanuel Vadot
310*f126890aSEmmanuel Vadot				usart1 {
311*f126890aSEmmanuel Vadot					pinctrl_usart1: usart1-0 {
312*f126890aSEmmanuel Vadot						atmel,pins =
313*f126890aSEmmanuel Vadot							<AT91_PIOA 6 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PA6 periph A with pullup */
314*f126890aSEmmanuel Vadot							 AT91_PIOA 5 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA5 periph A */
315*f126890aSEmmanuel Vadot					};
316*f126890aSEmmanuel Vadot				};
317*f126890aSEmmanuel Vadot
318*f126890aSEmmanuel Vadot				usart2 {
319*f126890aSEmmanuel Vadot					pinctrl_usart2: usart2-0 {
320*f126890aSEmmanuel Vadot						atmel,pins =
321*f126890aSEmmanuel Vadot							<AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PA8 periph A with pullup */
322*f126890aSEmmanuel Vadot							 AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA7 periph A */
323*f126890aSEmmanuel Vadot					};
324*f126890aSEmmanuel Vadot
325*f126890aSEmmanuel Vadot					pinctrl_usart2_rts: usart2_rts-0 {
326*f126890aSEmmanuel Vadot						atmel,pins =
327*f126890aSEmmanuel Vadot							<AT91_PIOB 0 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PB0 periph B */
328*f126890aSEmmanuel Vadot					};
329*f126890aSEmmanuel Vadot
330*f126890aSEmmanuel Vadot					pinctrl_usart2_cts: usart2_cts-0 {
331*f126890aSEmmanuel Vadot						atmel,pins =
332*f126890aSEmmanuel Vadot							<AT91_PIOB 1 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PB1 periph B */
333*f126890aSEmmanuel Vadot					};
334*f126890aSEmmanuel Vadot				};
335*f126890aSEmmanuel Vadot
336*f126890aSEmmanuel Vadot				usart3 {
337*f126890aSEmmanuel Vadot					pinctrl_usart3: usart3-0 {
338*f126890aSEmmanuel Vadot						atmel,pins =
339*f126890aSEmmanuel Vadot							<AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PC23 periph B with pullup */
340*f126890aSEmmanuel Vadot							 AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PC22 periph B */
341*f126890aSEmmanuel Vadot					};
342*f126890aSEmmanuel Vadot
343*f126890aSEmmanuel Vadot					pinctrl_usart3_rts: usart3_rts-0 {
344*f126890aSEmmanuel Vadot						atmel,pins =
345*f126890aSEmmanuel Vadot							<AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PC24 periph B */
346*f126890aSEmmanuel Vadot					};
347*f126890aSEmmanuel Vadot
348*f126890aSEmmanuel Vadot					pinctrl_usart3_cts: usart3_cts-0 {
349*f126890aSEmmanuel Vadot						atmel,pins =
350*f126890aSEmmanuel Vadot							<AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PC25 periph B */
351*f126890aSEmmanuel Vadot					};
352*f126890aSEmmanuel Vadot				};
353*f126890aSEmmanuel Vadot
354*f126890aSEmmanuel Vadot				uart0 {
355*f126890aSEmmanuel Vadot					pinctrl_uart0: uart0-0 {
356*f126890aSEmmanuel Vadot						atmel,pins =
357*f126890aSEmmanuel Vadot							<AT91_PIOC 9 AT91_PERIPH_C AT91_PINCTRL_PULL_UP	/* PC9 periph C with pullup */
358*f126890aSEmmanuel Vadot							 AT91_PIOC 8 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* PC8 periph C */
359*f126890aSEmmanuel Vadot					};
360*f126890aSEmmanuel Vadot				};
361*f126890aSEmmanuel Vadot
362*f126890aSEmmanuel Vadot				uart1 {
363*f126890aSEmmanuel Vadot					pinctrl_uart1: uart1-0 {
364*f126890aSEmmanuel Vadot						atmel,pins =
365*f126890aSEmmanuel Vadot							<AT91_PIOC 16 AT91_PERIPH_C AT91_PINCTRL_NONE
366*f126890aSEmmanuel Vadot							 AT91_PIOC 17 AT91_PERIPH_C AT91_PINCTRL_PULL_UP>;
367*f126890aSEmmanuel Vadot					};
368*f126890aSEmmanuel Vadot				};
369*f126890aSEmmanuel Vadot
370*f126890aSEmmanuel Vadot				nand {
371*f126890aSEmmanuel Vadot					pinctrl_nand_rb: nand-rb-0 {
372*f126890aSEmmanuel Vadot						atmel,pins =
373*f126890aSEmmanuel Vadot							<AT91_PIOD 5 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
374*f126890aSEmmanuel Vadot					};
375*f126890aSEmmanuel Vadot
376*f126890aSEmmanuel Vadot					pinctrl_nand_cs: nand-cs-0 {
377*f126890aSEmmanuel Vadot						atmel,pins =
378*f126890aSEmmanuel Vadot							 <AT91_PIOD 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
379*f126890aSEmmanuel Vadot					};
380*f126890aSEmmanuel Vadot				};
381*f126890aSEmmanuel Vadot
382*f126890aSEmmanuel Vadot				mmc0 {
383*f126890aSEmmanuel Vadot					pinctrl_mmc0_slot0_clk_cmd_dat0: mmc0_slot0_clk_cmd_dat0-0 {
384*f126890aSEmmanuel Vadot						atmel,pins =
385*f126890aSEmmanuel Vadot							<AT91_PIOA 17 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA17 periph A */
386*f126890aSEmmanuel Vadot							 AT91_PIOA 16 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PA16 periph A with pullup */
387*f126890aSEmmanuel Vadot							 AT91_PIOA 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PA15 periph A with pullup */
388*f126890aSEmmanuel Vadot					};
389*f126890aSEmmanuel Vadot
390*f126890aSEmmanuel Vadot					pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
391*f126890aSEmmanuel Vadot						atmel,pins =
392*f126890aSEmmanuel Vadot							<AT91_PIOA 18 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PA18 periph A with pullup */
393*f126890aSEmmanuel Vadot							 AT91_PIOA 19 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PA19 periph A with pullup */
394*f126890aSEmmanuel Vadot							 AT91_PIOA 20 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PA20 periph A with pullup */
395*f126890aSEmmanuel Vadot					};
396*f126890aSEmmanuel Vadot
397*f126890aSEmmanuel Vadot					pinctrl_mmc0_slot0_dat4_7: mmc0_slot0_dat4_7-0 {
398*f126890aSEmmanuel Vadot						atmel,pins =
399*f126890aSEmmanuel Vadot							<AT91_PIOA 11 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PA11 periph B with pullup */
400*f126890aSEmmanuel Vadot							 AT91_PIOA 12 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PA12 periph B with pullup */
401*f126890aSEmmanuel Vadot							 AT91_PIOA 13 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* PA13 periph B with pullup */
402*f126890aSEmmanuel Vadot							 AT91_PIOA 14 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;	/* PA14 periph B with pullup */
403*f126890aSEmmanuel Vadot					};
404*f126890aSEmmanuel Vadot				};
405*f126890aSEmmanuel Vadot
406*f126890aSEmmanuel Vadot				ssc0 {
407*f126890aSEmmanuel Vadot					pinctrl_ssc0_tx: ssc0_tx-0 {
408*f126890aSEmmanuel Vadot						atmel,pins =
409*f126890aSEmmanuel Vadot							<AT91_PIOA 24 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PA24 periph B */
410*f126890aSEmmanuel Vadot							 AT91_PIOA 25 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PA25 periph B */
411*f126890aSEmmanuel Vadot							 AT91_PIOA 26 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PA26 periph B */
412*f126890aSEmmanuel Vadot					};
413*f126890aSEmmanuel Vadot
414*f126890aSEmmanuel Vadot					pinctrl_ssc0_rx: ssc0_rx-0 {
415*f126890aSEmmanuel Vadot						atmel,pins =
416*f126890aSEmmanuel Vadot							<AT91_PIOA 27 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PA27 periph B */
417*f126890aSEmmanuel Vadot							 AT91_PIOA 28 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PA28 periph B */
418*f126890aSEmmanuel Vadot							 AT91_PIOA 29 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PA29 periph B */
419*f126890aSEmmanuel Vadot					};
420*f126890aSEmmanuel Vadot				};
421*f126890aSEmmanuel Vadot
422*f126890aSEmmanuel Vadot				spi0 {
423*f126890aSEmmanuel Vadot					pinctrl_spi0: spi0-0 {
424*f126890aSEmmanuel Vadot						atmel,pins =
425*f126890aSEmmanuel Vadot							<AT91_PIOA 11 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA11 periph A SPI0_MISO pin */
426*f126890aSEmmanuel Vadot							 AT91_PIOA 12 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PA12 periph A SPI0_MOSI pin */
427*f126890aSEmmanuel Vadot							 AT91_PIOA 13 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PA13 periph A SPI0_SPCK pin */
428*f126890aSEmmanuel Vadot					};
429*f126890aSEmmanuel Vadot				};
430*f126890aSEmmanuel Vadot
431*f126890aSEmmanuel Vadot				spi1 {
432*f126890aSEmmanuel Vadot					pinctrl_spi1: spi1-0 {
433*f126890aSEmmanuel Vadot						atmel,pins =
434*f126890aSEmmanuel Vadot							<AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PA21 periph B SPI1_MISO pin */
435*f126890aSEmmanuel Vadot							 AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PA22 periph B SPI1_MOSI pin */
436*f126890aSEmmanuel Vadot							 AT91_PIOA 23 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PA23 periph B SPI1_SPCK pin */
437*f126890aSEmmanuel Vadot					};
438*f126890aSEmmanuel Vadot				};
439*f126890aSEmmanuel Vadot
440*f126890aSEmmanuel Vadot				i2c0 {
441*f126890aSEmmanuel Vadot					pinctrl_i2c0: i2c0-0 {
442*f126890aSEmmanuel Vadot						atmel,pins =
443*f126890aSEmmanuel Vadot							<AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_NONE
444*f126890aSEmmanuel Vadot							 AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_NONE>;
445*f126890aSEmmanuel Vadot					};
446*f126890aSEmmanuel Vadot				};
447*f126890aSEmmanuel Vadot
448*f126890aSEmmanuel Vadot				i2c1 {
449*f126890aSEmmanuel Vadot					pinctrl_i2c1: i2c1-0 {
450*f126890aSEmmanuel Vadot						atmel,pins =
451*f126890aSEmmanuel Vadot							<AT91_PIOC 0 AT91_PERIPH_C AT91_PINCTRL_NONE
452*f126890aSEmmanuel Vadot							 AT91_PIOC 1 AT91_PERIPH_C AT91_PINCTRL_NONE>;
453*f126890aSEmmanuel Vadot					};
454*f126890aSEmmanuel Vadot				};
455*f126890aSEmmanuel Vadot
456*f126890aSEmmanuel Vadot				tcb0 {
457*f126890aSEmmanuel Vadot					pinctrl_tcb0_tclk0: tcb0_tclk0-0 {
458*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_NONE>;
459*f126890aSEmmanuel Vadot					};
460*f126890aSEmmanuel Vadot
461*f126890aSEmmanuel Vadot					pinctrl_tcb0_tclk1: tcb0_tclk1-0 {
462*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 25 AT91_PERIPH_A AT91_PINCTRL_NONE>;
463*f126890aSEmmanuel Vadot					};
464*f126890aSEmmanuel Vadot
465*f126890aSEmmanuel Vadot					pinctrl_tcb0_tclk2: tcb0_tclk2-0 {
466*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 26 AT91_PERIPH_A AT91_PINCTRL_NONE>;
467*f126890aSEmmanuel Vadot					};
468*f126890aSEmmanuel Vadot
469*f126890aSEmmanuel Vadot					pinctrl_tcb0_tioa0: tcb0_tioa0-0 {
470*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 21 AT91_PERIPH_A AT91_PINCTRL_NONE>;
471*f126890aSEmmanuel Vadot					};
472*f126890aSEmmanuel Vadot
473*f126890aSEmmanuel Vadot					pinctrl_tcb0_tioa1: tcb0_tioa1-0 {
474*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 22 AT91_PERIPH_A AT91_PINCTRL_NONE>;
475*f126890aSEmmanuel Vadot					};
476*f126890aSEmmanuel Vadot
477*f126890aSEmmanuel Vadot					pinctrl_tcb0_tioa2: tcb0_tioa2-0 {
478*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;
479*f126890aSEmmanuel Vadot					};
480*f126890aSEmmanuel Vadot
481*f126890aSEmmanuel Vadot					pinctrl_tcb0_tiob0: tcb0_tiob0-0 {
482*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 27 AT91_PERIPH_A AT91_PINCTRL_NONE>;
483*f126890aSEmmanuel Vadot					};
484*f126890aSEmmanuel Vadot
485*f126890aSEmmanuel Vadot					pinctrl_tcb0_tiob1: tcb0_tiob1-0 {
486*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 28 AT91_PERIPH_A AT91_PINCTRL_NONE>;
487*f126890aSEmmanuel Vadot					};
488*f126890aSEmmanuel Vadot
489*f126890aSEmmanuel Vadot					pinctrl_tcb0_tiob2: tcb0_tiob2-0 {
490*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOA 29 AT91_PERIPH_A AT91_PINCTRL_NONE>;
491*f126890aSEmmanuel Vadot					};
492*f126890aSEmmanuel Vadot				};
493*f126890aSEmmanuel Vadot
494*f126890aSEmmanuel Vadot				tcb1 {
495*f126890aSEmmanuel Vadot					pinctrl_tcb1_tclk0: tcb1_tclk0-0 {
496*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 4 AT91_PERIPH_C AT91_PINCTRL_NONE>;
497*f126890aSEmmanuel Vadot					};
498*f126890aSEmmanuel Vadot
499*f126890aSEmmanuel Vadot					pinctrl_tcb1_tclk1: tcb1_tclk1-0 {
500*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 7 AT91_PERIPH_C AT91_PINCTRL_NONE>;
501*f126890aSEmmanuel Vadot					};
502*f126890aSEmmanuel Vadot
503*f126890aSEmmanuel Vadot					pinctrl_tcb1_tclk2: tcb1_tclk2-0 {
504*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 14 AT91_PERIPH_C AT91_PINCTRL_NONE>;
505*f126890aSEmmanuel Vadot					};
506*f126890aSEmmanuel Vadot
507*f126890aSEmmanuel Vadot					pinctrl_tcb1_tioa0: tcb1_tioa0-0 {
508*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 2 AT91_PERIPH_C AT91_PINCTRL_NONE>;
509*f126890aSEmmanuel Vadot					};
510*f126890aSEmmanuel Vadot
511*f126890aSEmmanuel Vadot					pinctrl_tcb1_tioa1: tcb1_tioa1-0 {
512*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 5 AT91_PERIPH_C AT91_PINCTRL_NONE>;
513*f126890aSEmmanuel Vadot					};
514*f126890aSEmmanuel Vadot
515*f126890aSEmmanuel Vadot					pinctrl_tcb1_tioa2: tcb1_tioa2-0 {
516*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 12 AT91_PERIPH_C AT91_PINCTRL_NONE>;
517*f126890aSEmmanuel Vadot					};
518*f126890aSEmmanuel Vadot
519*f126890aSEmmanuel Vadot					pinctrl_tcb1_tiob0: tcb1_tiob0-0 {
520*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 3 AT91_PERIPH_C AT91_PINCTRL_NONE>;
521*f126890aSEmmanuel Vadot					};
522*f126890aSEmmanuel Vadot
523*f126890aSEmmanuel Vadot					pinctrl_tcb1_tiob1: tcb1_tiob1-0 {
524*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 6 AT91_PERIPH_C AT91_PINCTRL_NONE>;
525*f126890aSEmmanuel Vadot					};
526*f126890aSEmmanuel Vadot
527*f126890aSEmmanuel Vadot					pinctrl_tcb1_tiob2: tcb1_tiob2-0 {
528*f126890aSEmmanuel Vadot						atmel,pins = <AT91_PIOC 13 AT91_PERIPH_C AT91_PINCTRL_NONE>;
529*f126890aSEmmanuel Vadot					};
530*f126890aSEmmanuel Vadot				};
531*f126890aSEmmanuel Vadot
532*f126890aSEmmanuel Vadot				pioA: gpio@fffff400 {
533*f126890aSEmmanuel Vadot					compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
534*f126890aSEmmanuel Vadot					reg = <0xfffff400 0x200>;
535*f126890aSEmmanuel Vadot					interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
536*f126890aSEmmanuel Vadot					#gpio-cells = <2>;
537*f126890aSEmmanuel Vadot					gpio-controller;
538*f126890aSEmmanuel Vadot					interrupt-controller;
539*f126890aSEmmanuel Vadot					#interrupt-cells = <2>;
540*f126890aSEmmanuel Vadot					clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
541*f126890aSEmmanuel Vadot				};
542*f126890aSEmmanuel Vadot
543*f126890aSEmmanuel Vadot				pioB: gpio@fffff600 {
544*f126890aSEmmanuel Vadot					compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
545*f126890aSEmmanuel Vadot					reg = <0xfffff600 0x200>;
546*f126890aSEmmanuel Vadot					interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
547*f126890aSEmmanuel Vadot					#gpio-cells = <2>;
548*f126890aSEmmanuel Vadot					gpio-controller;
549*f126890aSEmmanuel Vadot					interrupt-controller;
550*f126890aSEmmanuel Vadot					#interrupt-cells = <2>;
551*f126890aSEmmanuel Vadot					clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
552*f126890aSEmmanuel Vadot				};
553*f126890aSEmmanuel Vadot
554*f126890aSEmmanuel Vadot				pioC: gpio@fffff800 {
555*f126890aSEmmanuel Vadot					compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
556*f126890aSEmmanuel Vadot					reg = <0xfffff800 0x200>;
557*f126890aSEmmanuel Vadot					interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
558*f126890aSEmmanuel Vadot					#gpio-cells = <2>;
559*f126890aSEmmanuel Vadot					gpio-controller;
560*f126890aSEmmanuel Vadot					interrupt-controller;
561*f126890aSEmmanuel Vadot					#interrupt-cells = <2>;
562*f126890aSEmmanuel Vadot					clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
563*f126890aSEmmanuel Vadot				};
564*f126890aSEmmanuel Vadot
565*f126890aSEmmanuel Vadot				pioD: gpio@fffffa00 {
566*f126890aSEmmanuel Vadot					compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
567*f126890aSEmmanuel Vadot					reg = <0xfffffa00 0x200>;
568*f126890aSEmmanuel Vadot					interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
569*f126890aSEmmanuel Vadot					#gpio-cells = <2>;
570*f126890aSEmmanuel Vadot					gpio-controller;
571*f126890aSEmmanuel Vadot					interrupt-controller;
572*f126890aSEmmanuel Vadot					#interrupt-cells = <2>;
573*f126890aSEmmanuel Vadot					clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
574*f126890aSEmmanuel Vadot				};
575*f126890aSEmmanuel Vadot			};
576*f126890aSEmmanuel Vadot
577*f126890aSEmmanuel Vadot			dbgu: serial@fffff200 {
578*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
579*f126890aSEmmanuel Vadot				reg = <0xfffff200 0x200>;
580*f126890aSEmmanuel Vadot				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
581*f126890aSEmmanuel Vadot				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
582*f126890aSEmmanuel Vadot				pinctrl-names = "default";
583*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_dbgu>;
584*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
585*f126890aSEmmanuel Vadot				clock-names = "usart";
586*f126890aSEmmanuel Vadot				status = "disabled";
587*f126890aSEmmanuel Vadot			};
588*f126890aSEmmanuel Vadot
589*f126890aSEmmanuel Vadot			ssc0: ssc@f0010000 {
590*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9g45-ssc";
591*f126890aSEmmanuel Vadot				reg = <0xf0010000 0x4000>;
592*f126890aSEmmanuel Vadot				interrupts = <28 IRQ_TYPE_LEVEL_HIGH 5>;
593*f126890aSEmmanuel Vadot				dmas = <&dma 0 AT91_DMA_CFG_PER_ID(21)>,
594*f126890aSEmmanuel Vadot				       <&dma 0 AT91_DMA_CFG_PER_ID(22)>;
595*f126890aSEmmanuel Vadot				dma-names = "tx", "rx";
596*f126890aSEmmanuel Vadot				pinctrl-names = "default";
597*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
598*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 28>;
599*f126890aSEmmanuel Vadot				clock-names = "pclk";
600*f126890aSEmmanuel Vadot				status = "disabled";
601*f126890aSEmmanuel Vadot			};
602*f126890aSEmmanuel Vadot
603*f126890aSEmmanuel Vadot			usart0: serial@f801c000 {
604*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-usart";
605*f126890aSEmmanuel Vadot				reg = <0xf801c000 0x4000>;
606*f126890aSEmmanuel Vadot				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
607*f126890aSEmmanuel Vadot				interrupts = <5 IRQ_TYPE_LEVEL_HIGH 5>;
608*f126890aSEmmanuel Vadot				pinctrl-names = "default";
609*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_usart0>;
610*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 5>;
611*f126890aSEmmanuel Vadot				clock-names = "usart";
612*f126890aSEmmanuel Vadot				status = "disabled";
613*f126890aSEmmanuel Vadot			};
614*f126890aSEmmanuel Vadot
615*f126890aSEmmanuel Vadot			usart1: serial@f8020000 {
616*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-usart";
617*f126890aSEmmanuel Vadot				reg = <0xf8020000 0x4000>;
618*f126890aSEmmanuel Vadot				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
619*f126890aSEmmanuel Vadot				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>;
620*f126890aSEmmanuel Vadot				pinctrl-names = "default";
621*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_usart1>;
622*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
623*f126890aSEmmanuel Vadot				clock-names = "usart";
624*f126890aSEmmanuel Vadot				status = "disabled";
625*f126890aSEmmanuel Vadot			};
626*f126890aSEmmanuel Vadot
627*f126890aSEmmanuel Vadot			usart2: serial@f8024000 {
628*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-usart";
629*f126890aSEmmanuel Vadot				reg = <0xf8024000 0x4000>;
630*f126890aSEmmanuel Vadot				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
631*f126890aSEmmanuel Vadot				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>;
632*f126890aSEmmanuel Vadot				pinctrl-names = "default";
633*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_usart2>;
634*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
635*f126890aSEmmanuel Vadot				clock-names = "usart";
636*f126890aSEmmanuel Vadot				status = "disabled";
637*f126890aSEmmanuel Vadot			};
638*f126890aSEmmanuel Vadot
639*f126890aSEmmanuel Vadot			usart3: serial@f8028000 {
640*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-usart";
641*f126890aSEmmanuel Vadot				reg = <0xf8028000 0x4000>;
642*f126890aSEmmanuel Vadot				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
643*f126890aSEmmanuel Vadot				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
644*f126890aSEmmanuel Vadot				pinctrl-names = "default";
645*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_usart3>;
646*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
647*f126890aSEmmanuel Vadot				clock-names = "usart";
648*f126890aSEmmanuel Vadot				status = "disabled";
649*f126890aSEmmanuel Vadot			};
650*f126890aSEmmanuel Vadot
651*f126890aSEmmanuel Vadot			i2c0: i2c@f8010000 {
652*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-i2c";
653*f126890aSEmmanuel Vadot				reg = <0xf8010000 0x100>;
654*f126890aSEmmanuel Vadot				interrupts = <9 IRQ_TYPE_LEVEL_HIGH 6>;
655*f126890aSEmmanuel Vadot				dmas = <&dma 1 AT91_DMA_CFG_PER_ID(13)>,
656*f126890aSEmmanuel Vadot				       <&dma 1 AT91_DMA_CFG_PER_ID(14)>;
657*f126890aSEmmanuel Vadot				dma-names = "tx", "rx";
658*f126890aSEmmanuel Vadot				#address-cells = <1>;
659*f126890aSEmmanuel Vadot				#size-cells = <0>;
660*f126890aSEmmanuel Vadot				pinctrl-names = "default";
661*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_i2c0>;
662*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
663*f126890aSEmmanuel Vadot				status = "disabled";
664*f126890aSEmmanuel Vadot			};
665*f126890aSEmmanuel Vadot
666*f126890aSEmmanuel Vadot			i2c1: i2c@f8014000 {
667*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-i2c";
668*f126890aSEmmanuel Vadot				reg = <0xf8014000 0x100>;
669*f126890aSEmmanuel Vadot				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 6>;
670*f126890aSEmmanuel Vadot				dmas = <&dma 1 AT91_DMA_CFG_PER_ID(15)>,
671*f126890aSEmmanuel Vadot				       <&dma 1 AT91_DMA_CFG_PER_ID(16)>;
672*f126890aSEmmanuel Vadot				dma-names = "tx", "rx";
673*f126890aSEmmanuel Vadot				#address-cells = <1>;
674*f126890aSEmmanuel Vadot				#size-cells = <0>;
675*f126890aSEmmanuel Vadot				pinctrl-names = "default";
676*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_i2c1>;
677*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
678*f126890aSEmmanuel Vadot				status = "disabled";
679*f126890aSEmmanuel Vadot			};
680*f126890aSEmmanuel Vadot
681*f126890aSEmmanuel Vadot			spi0: spi@f0000000 {
682*f126890aSEmmanuel Vadot				#address-cells = <1>;
683*f126890aSEmmanuel Vadot				#size-cells = <0>;
684*f126890aSEmmanuel Vadot				compatible = "atmel,at91rm9200-spi";
685*f126890aSEmmanuel Vadot				reg = <0xf0000000 0x100>;
686*f126890aSEmmanuel Vadot				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>;
687*f126890aSEmmanuel Vadot				dmas = <&dma 1 AT91_DMA_CFG_PER_ID(1)>,
688*f126890aSEmmanuel Vadot				       <&dma 1 AT91_DMA_CFG_PER_ID(2)>;
689*f126890aSEmmanuel Vadot				dma-names = "tx", "rx";
690*f126890aSEmmanuel Vadot				pinctrl-names = "default";
691*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_spi0>;
692*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
693*f126890aSEmmanuel Vadot				clock-names = "spi_clk";
694*f126890aSEmmanuel Vadot				status = "disabled";
695*f126890aSEmmanuel Vadot			};
696*f126890aSEmmanuel Vadot
697*f126890aSEmmanuel Vadot			spi1: spi@f0004000 {
698*f126890aSEmmanuel Vadot				#address-cells = <1>;
699*f126890aSEmmanuel Vadot				#size-cells = <0>;
700*f126890aSEmmanuel Vadot				compatible = "atmel,at91rm9200-spi";
701*f126890aSEmmanuel Vadot				reg = <0xf0004000 0x100>;
702*f126890aSEmmanuel Vadot				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 3>;
703*f126890aSEmmanuel Vadot				dmas = <&dma 1 AT91_DMA_CFG_PER_ID(3)>,
704*f126890aSEmmanuel Vadot				       <&dma 1 AT91_DMA_CFG_PER_ID(4)>;
705*f126890aSEmmanuel Vadot				dma-names = "tx", "rx";
706*f126890aSEmmanuel Vadot				pinctrl-names = "default";
707*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_spi1>;
708*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
709*f126890aSEmmanuel Vadot				clock-names = "spi_clk";
710*f126890aSEmmanuel Vadot				status = "disabled";
711*f126890aSEmmanuel Vadot			};
712*f126890aSEmmanuel Vadot
713*f126890aSEmmanuel Vadot			watchdog@fffffe40 {
714*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-wdt";
715*f126890aSEmmanuel Vadot				reg = <0xfffffe40 0x10>;
716*f126890aSEmmanuel Vadot				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
717*f126890aSEmmanuel Vadot				clocks = <&clk32k>;
718*f126890aSEmmanuel Vadot				atmel,watchdog-type = "hardware";
719*f126890aSEmmanuel Vadot				atmel,reset-type = "all";
720*f126890aSEmmanuel Vadot				atmel,dbg-halt;
721*f126890aSEmmanuel Vadot				status = "disabled";
722*f126890aSEmmanuel Vadot			};
723*f126890aSEmmanuel Vadot
724*f126890aSEmmanuel Vadot			rtc@fffffeb0 {
725*f126890aSEmmanuel Vadot				compatible = "atmel,at91rm9200-rtc";
726*f126890aSEmmanuel Vadot				reg = <0xfffffeb0 0x40>;
727*f126890aSEmmanuel Vadot				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
728*f126890aSEmmanuel Vadot				clocks = <&clk32k>;
729*f126890aSEmmanuel Vadot				status = "disabled";
730*f126890aSEmmanuel Vadot			};
731*f126890aSEmmanuel Vadot
732*f126890aSEmmanuel Vadot			pwm0: pwm@f8034000 {
733*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9rl-pwm";
734*f126890aSEmmanuel Vadot				reg = <0xf8034000 0x300>;
735*f126890aSEmmanuel Vadot				interrupts = <18 IRQ_TYPE_LEVEL_HIGH 4>;
736*f126890aSEmmanuel Vadot				#pwm-cells = <3>;
737*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 18>;
738*f126890aSEmmanuel Vadot				status = "disabled";
739*f126890aSEmmanuel Vadot			};
740*f126890aSEmmanuel Vadot
741*f126890aSEmmanuel Vadot			usb1: gadget@f803c000 {
742*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9260-udc";
743*f126890aSEmmanuel Vadot				reg = <0xf803c000 0x4000>;
744*f126890aSEmmanuel Vadot				interrupts = <23 IRQ_TYPE_LEVEL_HIGH 2>;
745*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 23>, <&pmc PMC_TYPE_SYSTEM 7>;
746*f126890aSEmmanuel Vadot				clock-names = "pclk", "hclk";
747*f126890aSEmmanuel Vadot				status = "disabled";
748*f126890aSEmmanuel Vadot			};
749*f126890aSEmmanuel Vadot		};
750*f126890aSEmmanuel Vadot
751*f126890aSEmmanuel Vadot		usb0: ohci@500000 {
752*f126890aSEmmanuel Vadot			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
753*f126890aSEmmanuel Vadot			reg = <0x00500000 0x00100000>;
754*f126890aSEmmanuel Vadot			interrupts = <22 IRQ_TYPE_LEVEL_HIGH 2>;
755*f126890aSEmmanuel Vadot			clocks = <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_PERIPHERAL 22>, <&pmc PMC_TYPE_SYSTEM 6>;
756*f126890aSEmmanuel Vadot			clock-names = "ohci_clk", "hclk", "uhpck";
757*f126890aSEmmanuel Vadot			status = "disabled";
758*f126890aSEmmanuel Vadot		};
759*f126890aSEmmanuel Vadot
760*f126890aSEmmanuel Vadot		ebi: ebi@10000000 {
761*f126890aSEmmanuel Vadot			compatible = "atmel,at91sam9x5-ebi";
762*f126890aSEmmanuel Vadot			#address-cells = <2>;
763*f126890aSEmmanuel Vadot			#size-cells = <1>;
764*f126890aSEmmanuel Vadot			atmel,smc = <&smc>;
765*f126890aSEmmanuel Vadot			atmel,matrix = <&matrix>;
766*f126890aSEmmanuel Vadot			reg = <0x10000000 0x60000000>;
767*f126890aSEmmanuel Vadot			ranges = <0x0 0x0 0x10000000 0x10000000
768*f126890aSEmmanuel Vadot				  0x1 0x0 0x20000000 0x10000000
769*f126890aSEmmanuel Vadot				  0x2 0x0 0x30000000 0x10000000
770*f126890aSEmmanuel Vadot				  0x3 0x0 0x40000000 0x10000000
771*f126890aSEmmanuel Vadot				  0x4 0x0 0x50000000 0x10000000
772*f126890aSEmmanuel Vadot				  0x5 0x0 0x60000000 0x10000000>;
773*f126890aSEmmanuel Vadot			clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
774*f126890aSEmmanuel Vadot			status = "disabled";
775*f126890aSEmmanuel Vadot
776*f126890aSEmmanuel Vadot			nand_controller: nand-controller {
777*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9g45-nand-controller";
778*f126890aSEmmanuel Vadot				ecc-engine = <&pmecc>;
779*f126890aSEmmanuel Vadot				#address-cells = <2>;
780*f126890aSEmmanuel Vadot				#size-cells = <1>;
781*f126890aSEmmanuel Vadot				ranges;
782*f126890aSEmmanuel Vadot				status = "disabled";
783*f126890aSEmmanuel Vadot			};
784*f126890aSEmmanuel Vadot		};
785*f126890aSEmmanuel Vadot	};
786*f126890aSEmmanuel Vadot
787*f126890aSEmmanuel Vadot	i2c-gpio-0 {
788*f126890aSEmmanuel Vadot		compatible = "i2c-gpio";
789*f126890aSEmmanuel Vadot		gpios = <&pioA 30 GPIO_ACTIVE_HIGH /* sda */
790*f126890aSEmmanuel Vadot			 &pioA 31 GPIO_ACTIVE_HIGH /* scl */
791*f126890aSEmmanuel Vadot			>;
792*f126890aSEmmanuel Vadot		i2c-gpio,sda-open-drain;
793*f126890aSEmmanuel Vadot		i2c-gpio,scl-open-drain;
794*f126890aSEmmanuel Vadot		i2c-gpio,delay-us = <2>;	/* ~100 kHz */
795*f126890aSEmmanuel Vadot		#address-cells = <1>;
796*f126890aSEmmanuel Vadot		#size-cells = <0>;
797*f126890aSEmmanuel Vadot		status = "disabled";
798*f126890aSEmmanuel Vadot	};
799*f126890aSEmmanuel Vadot};
800