Linux Audio

Check our new training course

Yocto distribution development and maintenance

Need a Yocto distribution for your embedded project?
Loading...
v5.14.15
  1// SPDX-License-Identifier: GPL-2.0-only
  2/*
  3 * at91sam9261.dtsi - Device Tree Include file for AT91SAM9261 SoC
  4 *
  5 *  Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com>
  6 */
  7
  8#include <dt-bindings/pinctrl/at91.h>
  9#include <dt-bindings/interrupt-controller/irq.h>
 10#include <dt-bindings/gpio/gpio.h>
 11#include <dt-bindings/clock/at91.h>
 12
 13/ {
 14	#address-cells = <1>;
 15	#size-cells = <1>;
 16	model = "Atmel AT91SAM9261 family SoC";
 17	compatible = "atmel,at91sam9261";
 18	interrupt-parent = <&aic>;
 19
 20	aliases {
 21		serial0 = &dbgu;
 22		serial1 = &usart0;
 23		serial2 = &usart1;
 24		serial3 = &usart2;
 25		gpio0 = &pioA;
 26		gpio1 = &pioB;
 27		gpio2 = &pioC;
 28		tcb0 = &tcb0;
 29		i2c0 = &i2c0;
 30		ssc0 = &ssc0;
 31		ssc1 = &ssc1;
 32		ssc2 = &ssc2;
 33	};
 34
 35	cpus {
 36		#address-cells = <1>;
 37		#size-cells = <0>;
 38
 39		cpu@0 {
 40			compatible = "arm,arm926ej-s";
 41			device_type = "cpu";
 42			reg = <0>;
 43		};
 44	};
 45
 46	memory@20000000 {
 47		device_type = "memory";
 48		reg = <0x20000000 0x08000000>;
 49	};
 50
 51	clocks {
 52		main_xtal: main_xtal {
 53			compatible = "fixed-clock";
 54			#clock-cells = <0>;
 55			clock-frequency = <0>;
 56		};
 57
 58		slow_xtal: slow_xtal {
 59			compatible = "fixed-clock";
 60			#clock-cells = <0>;
 61			clock-frequency = <0>;
 62		};
 63	};
 64
 65	sram: sram@300000 {
 66		compatible = "mmio-sram";
 67		reg = <0x00300000 0x28000>;
 68		#address-cells = <1>;
 69		#size-cells = <1>;
 70		ranges = <0 0x00300000 0x28000>;
 71	};
 72
 73	ahb {
 74		compatible = "simple-bus";
 75		#address-cells = <1>;
 76		#size-cells = <1>;
 77		ranges;
 78
 79		usb0: ohci@500000 {
 80			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 81			reg = <0x00500000 0x100000>;
 82			interrupts = <20 IRQ_TYPE_LEVEL_HIGH 2>;
 83			clocks = <&pmc PMC_TYPE_PERIPHERAL 20>, <&pmc PMC_TYPE_SYSTEM 16>, <&pmc PMC_TYPE_SYSTEM 6>;
 84			clock-names = "ohci_clk", "hclk", "uhpck";
 85			status = "disabled";
 86		};
 87
 88		fb0: fb@600000 {
 89			compatible = "atmel,at91sam9261-lcdc";
 90			reg = <0x00600000 0x1000>;
 91			interrupts = <21 IRQ_TYPE_LEVEL_HIGH 3>;
 92			pinctrl-names = "default";
 93			pinctrl-0 = <&pinctrl_fb>;
 94			clocks = <&pmc PMC_TYPE_PERIPHERAL 21>, <&pmc PMC_TYPE_SYSTEM 17>;
 95			clock-names = "lcdc_clk", "hclk";
 96			status = "disabled";
 97		};
 98
 99		ebi: ebi@10000000 {
100			compatible = "atmel,at91sam9261-ebi";
101			#address-cells = <2>;
102			#size-cells = <1>;
103			atmel,smc = <&smc>;
104			atmel,matrix = <&matrix>;
105			reg = <0x10000000 0x80000000>;
106			ranges = <0x0 0x0 0x10000000 0x10000000
107				  0x1 0x0 0x20000000 0x10000000
108				  0x2 0x0 0x30000000 0x10000000
109				  0x3 0x0 0x40000000 0x10000000
110				  0x4 0x0 0x50000000 0x10000000
111				  0x5 0x0 0x60000000 0x10000000
112				  0x6 0x0 0x70000000 0x10000000
113				  0x7 0x0 0x80000000 0x10000000>;
114			clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
115			status = "disabled";
116
117			nand_controller: nand-controller {
118				compatible = "atmel,at91sam9261-nand-controller";
119				#address-cells = <2>;
120				#size-cells = <1>;
121				ranges;
122				status = "disabled";
123			};
124		};
125
126		apb {
127			compatible = "simple-bus";
128			#address-cells = <1>;
129			#size-cells = <1>;
130			ranges;
131
132			tcb0: timer@fffa0000 {
133				compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
134				#address-cells = <1>;
135				#size-cells = <0>;
136				reg = <0xfffa0000 0x100>;
137				interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>,
138					     <18 IRQ_TYPE_LEVEL_HIGH 0>,
139					     <19 IRQ_TYPE_LEVEL_HIGH 0>;
140				clocks = <&pmc PMC_TYPE_PERIPHERAL 17>, <&pmc PMC_TYPE_PERIPHERAL 18>, <&pmc PMC_TYPE_PERIPHERAL 19>, <&slow_xtal>;
141				clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
142			};
143
144			usb1: gadget@fffa4000 {
145				compatible = "atmel,at91sam9261-udc";
146				reg = <0xfffa4000 0x4000>;
147				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 2>;
148				clocks = <&pmc PMC_TYPE_PERIPHERAL 10>, <&pmc PMC_TYPE_SYSTEM 7>;
149				clock-names = "pclk", "hclk";
150				atmel,matrix = <&matrix>;
151				status = "disabled";
152			};
153
154			mmc0: mmc@fffa8000 {
155				compatible = "atmel,hsmci";
156				reg = <0xfffa8000 0x600>;
157				interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>;
158				pinctrl-names = "default";
159				pinctrl-0 = <&pinctrl_mmc0_clk>, <&pinctrl_mmc0_slot0_cmd_dat0>, <&pinctrl_mmc0_slot0_dat1_3>;
160				#address-cells = <1>;
161				#size-cells = <0>;
162				clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
163				clock-names = "mci_clk";
164				status = "disabled";
165			};
166
167			i2c0: i2c@fffac000 {
168				compatible = "atmel,at91sam9261-i2c";
169				pinctrl-names = "default";
170				pinctrl-0 = <&pinctrl_i2c_twi>;
171				reg = <0xfffac000 0x100>;
172				interrupts = <11 IRQ_TYPE_LEVEL_HIGH 6>;
173				#address-cells = <1>;
174				#size-cells = <0>;
175				clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
176				status = "disabled";
177			};
178
179			usart0: serial@fffb0000 {
180				compatible = "atmel,at91sam9260-usart";
181				reg = <0xfffb0000 0x200>;
182				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>;
183				atmel,use-dma-rx;
184				atmel,use-dma-tx;
185				pinctrl-names = "default";
186				pinctrl-0 = <&pinctrl_usart0>;
187				clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
188				clock-names = "usart";
189				status = "disabled";
190			};
191
192			usart1: serial@fffb4000 {
193				compatible = "atmel,at91sam9260-usart";
194				reg = <0xfffb4000 0x200>;
195				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>;
196				atmel,use-dma-rx;
197				atmel,use-dma-tx;
198				pinctrl-names = "default";
199				pinctrl-0 = <&pinctrl_usart1>;
200				clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
201				clock-names = "usart";
202				status = "disabled";
203			};
204
205			usart2: serial@fffb8000{
206				compatible = "atmel,at91sam9260-usart";
207				reg = <0xfffb8000 0x200>;
208				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
209				atmel,use-dma-rx;
210				atmel,use-dma-tx;
211				pinctrl-names = "default";
212				pinctrl-0 = <&pinctrl_usart2>;
213				clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
214				clock-names = "usart";
215				status = "disabled";
216			};
217
218			ssc0: ssc@fffbc000 {
219				compatible = "atmel,at91rm9200-ssc";
220				reg = <0xfffbc000 0x4000>;
221				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>;
222				pinctrl-names = "default";
223				pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
224				clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
225				clock-names = "pclk";
226				status = "disabled";
227			};
228
229			ssc1: ssc@fffc0000 {
230				compatible = "atmel,at91rm9200-ssc";
231				reg = <0xfffc0000 0x4000>;
232				interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>;
233				pinctrl-names = "default";
234				pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
235				clocks = <&pmc PMC_TYPE_PERIPHERAL 15>;
236				clock-names = "pclk";
237				status = "disabled";
238			};
239
240			ssc2: ssc@fffc4000 {
241				compatible = "atmel,at91rm9200-ssc";
242				reg = <0xfffc4000 0x4000>;
243				interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>;
244				pinctrl-names = "default";
245				pinctrl-0 = <&pinctrl_ssc2_tx &pinctrl_ssc2_rx>;
246				clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
247				clock-names = "pclk";
248				status = "disabled";
249			};
250
251			spi0: spi@fffc8000 {
252				#address-cells = <1>;
253				#size-cells = <0>;
254				compatible = "atmel,at91rm9200-spi";
255				reg = <0xfffc8000 0x200>;
256				cs-gpios = <0>, <0>, <0>, <0>;
257				interrupts = <12 IRQ_TYPE_LEVEL_HIGH 3>;
258				pinctrl-names = "default";
259				pinctrl-0 = <&pinctrl_spi0>;
260				clocks = <&pmc PMC_TYPE_PERIPHERAL 12>;
261				clock-names = "spi_clk";
262				status = "disabled";
263			};
264
265			spi1: spi@fffcc000 {
266				#address-cells = <1>;
267				#size-cells = <0>;
268				compatible = "atmel,at91rm9200-spi";
269				reg = <0xfffcc000 0x200>;
270				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>;
271				pinctrl-names = "default";
272				pinctrl-0 = <&pinctrl_spi1>;
273				clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
274				clock-names = "spi_clk";
275				status = "disabled";
276			};
277
278			ramc: ramc@ffffea00 {
279				compatible = "atmel,at91sam9260-sdramc";
280				reg = <0xffffea00 0x200>;
281			};
282
283			smc: smc@ffffec00 {
284				compatible = "atmel,at91sam9260-smc", "syscon";
285				reg = <0xffffec00 0x200>;
286			};
287
288			matrix: matrix@ffffee00 {
289				compatible = "atmel,at91sam9261-matrix", "syscon";
290				reg = <0xffffee00 0x200>;
291			};
292
293			aic: interrupt-controller@fffff000 {
294				#interrupt-cells = <3>;
295				compatible = "atmel,at91rm9200-aic";
296				interrupt-controller;
297				reg = <0xfffff000 0x200>;
298				atmel,external-irqs = <29 30 31>;
299			};
300
301			dbgu: serial@fffff200 {
302				compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
303				reg = <0xfffff200 0x200>;
304				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
305				pinctrl-names = "default";
306				pinctrl-0 = <&pinctrl_dbgu>;
307				clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
308				clock-names = "usart";
309				status = "disabled";
310			};
311
312			pinctrl@fffff400 {
313				#address-cells = <1>;
314				#size-cells = <1>;
315				compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
316				ranges = <0xfffff400 0xfffff400 0x600>;
317
318				atmel,mux-mask =
319				      /*    A         B     */
320				      <0xffffffff 0xfffffff7>,  /* pioA */
321				      <0xffffffff 0xfffffff4>,  /* pioB */
322				      <0xffffffff 0xffffff07>;  /* pioC */
323
324				/* shared pinctrl settings */
325				dbgu {
326					pinctrl_dbgu: dbgu-0 {
327						atmel,pins =
328							<AT91_PIOA 9  AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
329							<AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
330					};
331				};
332
333				usart0 {
334					pinctrl_usart0: usart0-0 {
335						atmel,pins =
336							<AT91_PIOC 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
337							<AT91_PIOC 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
338					};
339
340					pinctrl_usart0_rts: usart0_rts-0 {
341						atmel,pins =
342							<AT91_PIOC 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
343					};
344
345					pinctrl_usart0_cts: usart0_cts-0 {
346						atmel,pins =
347							<AT91_PIOC 11 AT91_PERIPH_A AT91_PINCTRL_NONE>;
348					};
349				};
350
351				usart1 {
352					pinctrl_usart1: usart1-0 {
353						atmel,pins =
354							<AT91_PIOC 12 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
355							<AT91_PIOC 13 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
356					};
357
358					pinctrl_usart1_rts: usart1_rts-0 {
359						atmel,pins =
360							<AT91_PIOA 12 AT91_PERIPH_B AT91_PINCTRL_NONE>;
361					};
362
363					pinctrl_usart1_cts: usart1_cts-0 {
364						atmel,pins =
365							<AT91_PIOA 13 AT91_PERIPH_B AT91_PINCTRL_NONE>;
366					};
367				};
368
369				usart2 {
370					pinctrl_usart2: usart2-0 {
371						atmel,pins =
372							<AT91_PIOC 14 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
373							<AT91_PIOC 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
374					};
375
376					pinctrl_usart2_rts: usart2_rts-0 {
377						atmel,pins =
378							<AT91_PIOA 15 AT91_PERIPH_B AT91_PINCTRL_NONE>;
379					};
380
381					pinctrl_usart2_cts: usart2_cts-0 {
382						atmel,pins =
383							<AT91_PIOA 16 AT91_PERIPH_B AT91_PINCTRL_NONE>;
384					};
385				};
386
387				nand {
388					pinctrl_nand_rb: nand-rb-0 {
389						atmel,pins =
390							<AT91_PIOC 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
391					};
392
393					pinctrl_nand_cs: nand-cs-0 {
394						atmel,pins =
395							<AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
396					};
397				};
398
399				mmc0 {
400					pinctrl_mmc0_clk: mmc0_clk-0 {
401						atmel,pins =
402							<AT91_PIOA 2 AT91_PERIPH_B AT91_PINCTRL_NONE>;
403					};
404
405					pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 {
406						atmel,pins =
407							<AT91_PIOA 1 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
408							<AT91_PIOA 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
409					};
410
411					pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
412						atmel,pins =
413							<AT91_PIOA 4 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
414							<AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
415							<AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
416					};
417					};
418
419				ssc0 {
420					pinctrl_ssc0_tx: ssc0_tx-0 {
421						atmel,pins =
422							<AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_NONE>,
423							<AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_NONE>,
424							<AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;
425					};
426
427					pinctrl_ssc0_rx: ssc0_rx-0 {
428						atmel,pins =
429							<AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_NONE>,
430							<AT91_PIOB 25 AT91_PERIPH_A AT91_PINCTRL_NONE>,
431							<AT91_PIOB 26 AT91_PERIPH_A AT91_PINCTRL_NONE>;
432					};
433				};
434
435				ssc1 {
436					pinctrl_ssc1_tx: ssc1_tx-0 {
437						atmel,pins =
438							<AT91_PIOA 17 AT91_PERIPH_B AT91_PINCTRL_NONE>,
439							<AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_NONE>,
440							<AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_NONE>;
441					};
442
443					pinctrl_ssc1_rx: ssc1_rx-0 {
444						atmel,pins =
445							<AT91_PIOA 20 AT91_PERIPH_B AT91_PINCTRL_NONE>,
446							<AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE>,
447							<AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;
448					};
449				};
450
451				ssc2 {
452					pinctrl_ssc2_tx: ssc2_tx-0 {
453						atmel,pins =
454							<AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE>,
455							<AT91_PIOC 26 AT91_PERIPH_B AT91_PINCTRL_NONE>,
456							<AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE>;
457					};
458
459					pinctrl_ssc2_rx: ssc2_rx-0 {
460						atmel,pins =
461							<AT91_PIOC 28 AT91_PERIPH_B AT91_PINCTRL_NONE>,
462							<AT91_PIOC 29 AT91_PERIPH_B AT91_PINCTRL_NONE>,
463							<AT91_PIOC 30 AT91_PERIPH_B AT91_PINCTRL_NONE>;
464					};
465				};
466
467				spi0 {
468					pinctrl_spi0: spi0-0 {
469						atmel,pins =
470							<AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE>,
471							<AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>,
472							<AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;
473					};
474					};
475
476				spi1 {
477					pinctrl_spi1: spi1-0 {
478						atmel,pins =
479							<AT91_PIOB 30 AT91_PERIPH_A AT91_PINCTRL_NONE>,
480							<AT91_PIOB 31 AT91_PERIPH_A AT91_PINCTRL_NONE>,
481							<AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_NONE>;
482					};
483				};
484
485				tcb0 {
486					pinctrl_tcb0_tclk0: tcb0_tclk0-0 {
487						atmel,pins = <AT91_PIOC 16 AT91_PERIPH_B AT91_PINCTRL_NONE>;
488					};
489
490					pinctrl_tcb0_tclk1: tcb0_tclk1-0 {
491						atmel,pins = <AT91_PIOC 17 AT91_PERIPH_B AT91_PINCTRL_NONE>;
492					};
493
494					pinctrl_tcb0_tclk2: tcb0_tclk2-0 {
495						atmel,pins = <AT91_PIOC 18 AT91_PERIPH_B AT91_PINCTRL_NONE>;
496					};
497
498					pinctrl_tcb0_tioa0: tcb0_tioa0-0 {
499						atmel,pins = <AT91_PIOC 19 AT91_PERIPH_B AT91_PINCTRL_NONE>;
500					};
501
502					pinctrl_tcb0_tioa1: tcb0_tioa1-0 {
503						atmel,pins = <AT91_PIOC 21 AT91_PERIPH_B AT91_PINCTRL_NONE>;
504					};
505
506					pinctrl_tcb0_tioa2: tcb0_tioa2-0 {
507						atmel,pins = <AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_NONE>;
508					};
509
510					pinctrl_tcb0_tiob0: tcb0_tiob0-0 {
511						atmel,pins = <AT91_PIOC 20 AT91_PERIPH_B AT91_PINCTRL_NONE>;
512					};
513
514					pinctrl_tcb0_tiob1: tcb0_tiob1-0 {
515						atmel,pins = <AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;
516					};
517
518					pinctrl_tcb0_tiob2: tcb0_tiob2-0 {
519						atmel,pins = <AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE>;
520					};
521				};
522
523				i2c0 {
524					pinctrl_i2c_bitbang: i2c-0-bitbang {
525						atmel,pins =
526							<AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>,
527							<AT91_PIOA 8 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
528					};
529					pinctrl_i2c_twi: i2c-0-twi {
530						atmel,pins =
531							<AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_NONE>,
532							<AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_NONE>;
533					};
534				};
535
536				fb {
537					pinctrl_fb: fb-0 {
538						atmel,pins =
539							<AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE>,
540							<AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>,
541							<AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE>,
542							<AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE>,
543							<AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_NONE>,
544							<AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE>,
545							<AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>,
546							<AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE>,
547							<AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE>,
548							<AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE>,
549							<AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE>,
550							<AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE>,
551							<AT91_PIOB 18 AT91_PERIPH_A AT91_PINCTRL_NONE>,
552							<AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_NONE>,
553							<AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_NONE>,
554							<AT91_PIOB 23 AT91_PERIPH_B AT91_PINCTRL_NONE>,
555							<AT91_PIOB 24 AT91_PERIPH_B AT91_PINCTRL_NONE>,
556							<AT91_PIOB 25 AT91_PERIPH_B AT91_PINCTRL_NONE>,
557							<AT91_PIOB 26 AT91_PERIPH_B AT91_PINCTRL_NONE>,
558							<AT91_PIOB 27 AT91_PERIPH_B AT91_PINCTRL_NONE>,
559							<AT91_PIOB 28 AT91_PERIPH_B AT91_PINCTRL_NONE>;
560					};
561				};
562
563				pioA: gpio@fffff400 {
564					compatible = "atmel,at91rm9200-gpio";
565					reg = <0xfffff400 0x200>;
566					interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
567					#gpio-cells = <2>;
568					gpio-controller;
569					interrupt-controller;
570					#interrupt-cells = <2>;
571					clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
572				};
573
574				pioB: gpio@fffff600 {
575					compatible = "atmel,at91rm9200-gpio";
576					reg = <0xfffff600 0x200>;
577					interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
578					#gpio-cells = <2>;
579					gpio-controller;
580					interrupt-controller;
581					#interrupt-cells = <2>;
582					clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
583				};
584
585				pioC: gpio@fffff800 {
586					compatible = "atmel,at91rm9200-gpio";
587					reg = <0xfffff800 0x200>;
588					interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
589					#gpio-cells = <2>;
590					gpio-controller;
591					interrupt-controller;
592					#interrupt-cells = <2>;
593					clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
594				};
595			};
596
597			pmc: pmc@fffffc00 {
598				compatible = "atmel,at91sam9261-pmc", "syscon";
599				reg = <0xfffffc00 0x100>;
600				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
601				#clock-cells = <2>;
602				clocks = <&slow_xtal>, <&main_xtal>;
603				clock-names = "slow_xtal", "main_xtal";
604			};
605
606			rstc@fffffd00 {
607				compatible = "atmel,at91sam9260-rstc";
608				reg = <0xfffffd00 0x10>;
609				clocks = <&slow_xtal>;
610			};
611
612			shdwc@fffffd10 {
613				compatible = "atmel,at91sam9260-shdwc";
614				reg = <0xfffffd10 0x10>;
615				clocks = <&slow_xtal>;
616			};
617
618			pit: timer@fffffd30 {
619				compatible = "atmel,at91sam9260-pit";
620				reg = <0xfffffd30 0xf>;
621				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
622				clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
623			};
624
625			rtc@fffffd20 {
626				compatible = "atmel,at91sam9260-rtt";
627				reg = <0xfffffd20 0x10>;
628				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
629				clocks = <&slow_xtal>;
630				status = "disabled";
631			};
632
633			watchdog@fffffd40 {
634				compatible = "atmel,at91sam9260-wdt";
635				reg = <0xfffffd40 0x10>;
636				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
637				clocks = <&slow_xtal>;
638				status = "disabled";
639			};
640
641			gpbr: syscon@fffffd50 {
642				compatible = "atmel,at91sam9260-gpbr", "syscon";
643				reg = <0xfffffd50 0x10>;
644				status = "disabled";
645			};
646		};
647	};
648
649	i2c-gpio-0 {
650		compatible = "i2c-gpio";
651		pinctrl-names = "default";
652		pinctrl-0 = <&pinctrl_i2c_bitbang>;
653		gpios = <&pioA 7 GPIO_ACTIVE_HIGH>, /* sda */
654			<&pioA 8 GPIO_ACTIVE_HIGH>; /* scl */
655		i2c-gpio,sda-open-drain;
656		i2c-gpio,scl-open-drain;
657		i2c-gpio,delay-us = <2>;	/* ~100 kHz */
658		#address-cells = <1>;
659		#size-cells = <0>;
660		status = "disabled";
661	};
662};
v5.9
  1// SPDX-License-Identifier: GPL-2.0-only
  2/*
  3 * at91sam9261.dtsi - Device Tree Include file for AT91SAM9261 SoC
  4 *
  5 *  Copyright (C) 2013 Jean-Jacques Hiblot <jjhiblot@traphandler.com>
  6 */
  7
  8#include <dt-bindings/pinctrl/at91.h>
  9#include <dt-bindings/interrupt-controller/irq.h>
 10#include <dt-bindings/gpio/gpio.h>
 11#include <dt-bindings/clock/at91.h>
 12
 13/ {
 14	#address-cells = <1>;
 15	#size-cells = <1>;
 16	model = "Atmel AT91SAM9261 family SoC";
 17	compatible = "atmel,at91sam9261";
 18	interrupt-parent = <&aic>;
 19
 20	aliases {
 21		serial0 = &dbgu;
 22		serial1 = &usart0;
 23		serial2 = &usart1;
 24		serial3 = &usart2;
 25		gpio0 = &pioA;
 26		gpio1 = &pioB;
 27		gpio2 = &pioC;
 28		tcb0 = &tcb0;
 29		i2c0 = &i2c0;
 30		ssc0 = &ssc0;
 31		ssc1 = &ssc1;
 32		ssc2 = &ssc2;
 33	};
 34
 35	cpus {
 36		#address-cells = <0>;
 37		#size-cells = <0>;
 38
 39		cpu {
 40			compatible = "arm,arm926ej-s";
 41			device_type = "cpu";
 
 42		};
 43	};
 44
 45	memory {
 46		device_type = "memory";
 47		reg = <0x20000000 0x08000000>;
 48	};
 49
 50	clocks {
 51		main_xtal: main_xtal {
 52			compatible = "fixed-clock";
 53			#clock-cells = <0>;
 54			clock-frequency = <0>;
 55		};
 56
 57		slow_xtal: slow_xtal {
 58			compatible = "fixed-clock";
 59			#clock-cells = <0>;
 60			clock-frequency = <0>;
 61		};
 62	};
 63
 64	sram: sram@300000 {
 65		compatible = "mmio-sram";
 66		reg = <0x00300000 0x28000>;
 
 
 
 67	};
 68
 69	ahb {
 70		compatible = "simple-bus";
 71		#address-cells = <1>;
 72		#size-cells = <1>;
 73		ranges;
 74
 75		usb0: ohci@500000 {
 76			compatible = "atmel,at91rm9200-ohci", "usb-ohci";
 77			reg = <0x00500000 0x100000>;
 78			interrupts = <20 IRQ_TYPE_LEVEL_HIGH 2>;
 79			clocks = <&pmc PMC_TYPE_PERIPHERAL 20>, <&pmc PMC_TYPE_SYSTEM 16>, <&pmc PMC_TYPE_SYSTEM 6>;
 80			clock-names = "ohci_clk", "hclk", "uhpck";
 81			status = "disabled";
 82		};
 83
 84		fb0: fb@600000 {
 85			compatible = "atmel,at91sam9261-lcdc";
 86			reg = <0x00600000 0x1000>;
 87			interrupts = <21 IRQ_TYPE_LEVEL_HIGH 3>;
 88			pinctrl-names = "default";
 89			pinctrl-0 = <&pinctrl_fb>;
 90			clocks = <&pmc PMC_TYPE_PERIPHERAL 21>, <&pmc PMC_TYPE_SYSTEM 17>;
 91			clock-names = "lcdc_clk", "hclk";
 92			status = "disabled";
 93		};
 94
 95		ebi: ebi@10000000 {
 96			compatible = "atmel,at91sam9261-ebi";
 97			#address-cells = <2>;
 98			#size-cells = <1>;
 99			atmel,smc = <&smc>;
100			atmel,matrix = <&matrix>;
101			reg = <0x10000000 0x80000000>;
102			ranges = <0x0 0x0 0x10000000 0x10000000
103				  0x1 0x0 0x20000000 0x10000000
104				  0x2 0x0 0x30000000 0x10000000
105				  0x3 0x0 0x40000000 0x10000000
106				  0x4 0x0 0x50000000 0x10000000
107				  0x5 0x0 0x60000000 0x10000000
108				  0x6 0x0 0x70000000 0x10000000
109				  0x7 0x0 0x80000000 0x10000000>;
110			clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
111			status = "disabled";
112
113			nand_controller: nand-controller {
114				compatible = "atmel,at91sam9261-nand-controller";
115				#address-cells = <2>;
116				#size-cells = <1>;
117				ranges;
118				status = "disabled";
119			};
120		};
121
122		apb {
123			compatible = "simple-bus";
124			#address-cells = <1>;
125			#size-cells = <1>;
126			ranges;
127
128			tcb0: timer@fffa0000 {
129				compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
130				#address-cells = <1>;
131				#size-cells = <0>;
132				reg = <0xfffa0000 0x100>;
133				interrupts = <17 IRQ_TYPE_LEVEL_HIGH 0>,
134					     <18 IRQ_TYPE_LEVEL_HIGH 0>,
135					     <19 IRQ_TYPE_LEVEL_HIGH 0>;
136				clocks = <&pmc PMC_TYPE_PERIPHERAL 17>, <&pmc PMC_TYPE_PERIPHERAL 18>, <&pmc PMC_TYPE_PERIPHERAL 19>, <&slow_xtal>;
137				clock-names = "t0_clk", "t1_clk", "t2_clk", "slow_clk";
138			};
139
140			usb1: gadget@fffa4000 {
141				compatible = "atmel,at91sam9261-udc";
142				reg = <0xfffa4000 0x4000>;
143				interrupts = <10 IRQ_TYPE_LEVEL_HIGH 2>;
144				clocks = <&pmc PMC_TYPE_PERIPHERAL 10>, <&pmc PMC_TYPE_SYSTEM 7>;
145				clock-names = "pclk", "hclk";
146				atmel,matrix = <&matrix>;
147				status = "disabled";
148			};
149
150			mmc0: mmc@fffa8000 {
151				compatible = "atmel,hsmci";
152				reg = <0xfffa8000 0x600>;
153				interrupts = <9 IRQ_TYPE_LEVEL_HIGH 0>;
154				pinctrl-names = "default";
155				pinctrl-0 = <&pinctrl_mmc0_clk>, <&pinctrl_mmc0_slot0_cmd_dat0>, <&pinctrl_mmc0_slot0_dat1_3>;
156				#address-cells = <1>;
157				#size-cells = <0>;
158				clocks = <&pmc PMC_TYPE_PERIPHERAL 9>;
159				clock-names = "mci_clk";
160				status = "disabled";
161			};
162
163			i2c0: i2c@fffac000 {
164				compatible = "atmel,at91sam9261-i2c";
165				pinctrl-names = "default";
166				pinctrl-0 = <&pinctrl_i2c_twi>;
167				reg = <0xfffac000 0x100>;
168				interrupts = <11 IRQ_TYPE_LEVEL_HIGH 6>;
169				#address-cells = <1>;
170				#size-cells = <0>;
171				clocks = <&pmc PMC_TYPE_PERIPHERAL 11>;
172				status = "disabled";
173			};
174
175			usart0: serial@fffb0000 {
176				compatible = "atmel,at91sam9260-usart";
177				reg = <0xfffb0000 0x200>;
178				interrupts = <6 IRQ_TYPE_LEVEL_HIGH 5>;
179				atmel,use-dma-rx;
180				atmel,use-dma-tx;
181				pinctrl-names = "default";
182				pinctrl-0 = <&pinctrl_usart0>;
183				clocks = <&pmc PMC_TYPE_PERIPHERAL 6>;
184				clock-names = "usart";
185				status = "disabled";
186			};
187
188			usart1: serial@fffb4000 {
189				compatible = "atmel,at91sam9260-usart";
190				reg = <0xfffb4000 0x200>;
191				interrupts = <7 IRQ_TYPE_LEVEL_HIGH 5>;
192				atmel,use-dma-rx;
193				atmel,use-dma-tx;
194				pinctrl-names = "default";
195				pinctrl-0 = <&pinctrl_usart1>;
196				clocks = <&pmc PMC_TYPE_PERIPHERAL 7>;
197				clock-names = "usart";
198				status = "disabled";
199			};
200
201			usart2: serial@fffb8000{
202				compatible = "atmel,at91sam9260-usart";
203				reg = <0xfffb8000 0x200>;
204				interrupts = <8 IRQ_TYPE_LEVEL_HIGH 5>;
205				atmel,use-dma-rx;
206				atmel,use-dma-tx;
207				pinctrl-names = "default";
208				pinctrl-0 = <&pinctrl_usart2>;
209				clocks = <&pmc PMC_TYPE_PERIPHERAL 8>;
210				clock-names = "usart";
211				status = "disabled";
212			};
213
214			ssc0: ssc@fffbc000 {
215				compatible = "atmel,at91rm9200-ssc";
216				reg = <0xfffbc000 0x4000>;
217				interrupts = <14 IRQ_TYPE_LEVEL_HIGH 5>;
218				pinctrl-names = "default";
219				pinctrl-0 = <&pinctrl_ssc0_tx &pinctrl_ssc0_rx>;
220				clocks = <&pmc PMC_TYPE_PERIPHERAL 14>;
221				clock-names = "pclk";
222				status = "disabled";
223			};
224
225			ssc1: ssc@fffc0000 {
226				compatible = "atmel,at91rm9200-ssc";
227				reg = <0xfffc0000 0x4000>;
228				interrupts = <15 IRQ_TYPE_LEVEL_HIGH 5>;
229				pinctrl-names = "default";
230				pinctrl-0 = <&pinctrl_ssc1_tx &pinctrl_ssc1_rx>;
231				clocks = <&pmc PMC_TYPE_PERIPHERAL 15>;
232				clock-names = "pclk";
233				status = "disabled";
234			};
235
236			ssc2: ssc@fffc4000 {
237				compatible = "atmel,at91rm9200-ssc";
238				reg = <0xfffc4000 0x4000>;
239				interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>;
240				pinctrl-names = "default";
241				pinctrl-0 = <&pinctrl_ssc2_tx &pinctrl_ssc2_rx>;
242				clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
243				clock-names = "pclk";
244				status = "disabled";
245			};
246
247			spi0: spi@fffc8000 {
248				#address-cells = <1>;
249				#size-cells = <0>;
250				compatible = "atmel,at91rm9200-spi";
251				reg = <0xfffc8000 0x200>;
252				cs-gpios = <0>, <0>, <0>, <0>;
253				interrupts = <12 IRQ_TYPE_LEVEL_HIGH 3>;
254				pinctrl-names = "default";
255				pinctrl-0 = <&pinctrl_spi0>;
256				clocks = <&pmc PMC_TYPE_PERIPHERAL 12>;
257				clock-names = "spi_clk";
258				status = "disabled";
259			};
260
261			spi1: spi@fffcc000 {
262				#address-cells = <1>;
263				#size-cells = <0>;
264				compatible = "atmel,at91rm9200-spi";
265				reg = <0xfffcc000 0x200>;
266				interrupts = <13 IRQ_TYPE_LEVEL_HIGH 3>;
267				pinctrl-names = "default";
268				pinctrl-0 = <&pinctrl_spi1>;
269				clocks = <&pmc PMC_TYPE_PERIPHERAL 13>;
270				clock-names = "spi_clk";
271				status = "disabled";
272			};
273
274			ramc: ramc@ffffea00 {
275				compatible = "atmel,at91sam9260-sdramc";
276				reg = <0xffffea00 0x200>;
277			};
278
279			smc: smc@ffffec00 {
280				compatible = "atmel,at91sam9260-smc", "syscon";
281				reg = <0xffffec00 0x200>;
282			};
283
284			matrix: matrix@ffffee00 {
285				compatible = "atmel,at91sam9261-matrix", "syscon";
286				reg = <0xffffee00 0x200>;
287			};
288
289			aic: interrupt-controller@fffff000 {
290				#interrupt-cells = <3>;
291				compatible = "atmel,at91rm9200-aic";
292				interrupt-controller;
293				reg = <0xfffff000 0x200>;
294				atmel,external-irqs = <29 30 31>;
295			};
296
297			dbgu: serial@fffff200 {
298				compatible = "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart";
299				reg = <0xfffff200 0x200>;
300				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
301				pinctrl-names = "default";
302				pinctrl-0 = <&pinctrl_dbgu>;
303				clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
304				clock-names = "usart";
305				status = "disabled";
306			};
307
308			pinctrl@fffff400 {
309				#address-cells = <1>;
310				#size-cells = <1>;
311				compatible = "atmel,at91rm9200-pinctrl", "simple-bus";
312				ranges = <0xfffff400 0xfffff400 0x600>;
313
314				atmel,mux-mask =
315				      /*    A         B     */
316				      <0xffffffff 0xfffffff7>,  /* pioA */
317				      <0xffffffff 0xfffffff4>,  /* pioB */
318				      <0xffffffff 0xffffff07>;  /* pioC */
319
320				/* shared pinctrl settings */
321				dbgu {
322					pinctrl_dbgu: dbgu-0 {
323						atmel,pins =
324							<AT91_PIOA 9  AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
325							<AT91_PIOA 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
326					};
327				};
328
329				usart0 {
330					pinctrl_usart0: usart0-0 {
331						atmel,pins =
332							<AT91_PIOC 8 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
333							<AT91_PIOC 9 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
334					};
335
336					pinctrl_usart0_rts: usart0_rts-0 {
337						atmel,pins =
338							<AT91_PIOC 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;
339					};
340
341					pinctrl_usart0_cts: usart0_cts-0 {
342						atmel,pins =
343							<AT91_PIOC 11 AT91_PERIPH_A AT91_PINCTRL_NONE>;
344					};
345				};
346
347				usart1 {
348					pinctrl_usart1: usart1-0 {
349						atmel,pins =
350							<AT91_PIOC 12 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
351							<AT91_PIOC 13 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
352					};
353
354					pinctrl_usart1_rts: usart1_rts-0 {
355						atmel,pins =
356							<AT91_PIOA 12 AT91_PERIPH_B AT91_PINCTRL_NONE>;
357					};
358
359					pinctrl_usart1_cts: usart1_cts-0 {
360						atmel,pins =
361							<AT91_PIOA 13 AT91_PERIPH_B AT91_PINCTRL_NONE>;
362					};
363				};
364
365				usart2 {
366					pinctrl_usart2: usart2-0 {
367						atmel,pins =
368							<AT91_PIOC 14 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
369							<AT91_PIOC 15 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
370					};
371
372					pinctrl_usart2_rts: usart2_rts-0 {
373						atmel,pins =
374							<AT91_PIOA 15 AT91_PERIPH_B AT91_PINCTRL_NONE>;
375					};
376
377					pinctrl_usart2_cts: usart2_cts-0 {
378						atmel,pins =
379							<AT91_PIOA 16 AT91_PERIPH_B AT91_PINCTRL_NONE>;
380					};
381				};
382
383				nand {
384					pinctrl_nand_rb: nand-rb-0 {
385						atmel,pins =
386							<AT91_PIOC 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
387					};
388
389					pinctrl_nand_cs: nand-cs-0 {
390						atmel,pins =
391							<AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
392					};
393				};
394
395				mmc0 {
396					pinctrl_mmc0_clk: mmc0_clk-0 {
397						atmel,pins =
398							<AT91_PIOA 2 AT91_PERIPH_B AT91_PINCTRL_NONE>;
399					};
400
401					pinctrl_mmc0_slot0_cmd_dat0: mmc0_slot0_cmd_dat0-0 {
402						atmel,pins =
403							<AT91_PIOA 1 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
404							<AT91_PIOA 0 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
405					};
406
407					pinctrl_mmc0_slot0_dat1_3: mmc0_slot0_dat1_3-0 {
408						atmel,pins =
409							<AT91_PIOA 4 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
410							<AT91_PIOA 5 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
411							<AT91_PIOA 6 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
412					};
413					};
414
415				ssc0 {
416					pinctrl_ssc0_tx: ssc0_tx-0 {
417						atmel,pins =
418							<AT91_PIOB 21 AT91_PERIPH_A AT91_PINCTRL_NONE>,
419							<AT91_PIOB 22 AT91_PERIPH_A AT91_PINCTRL_NONE>,
420							<AT91_PIOB 23 AT91_PERIPH_A AT91_PINCTRL_NONE>;
421					};
422
423					pinctrl_ssc0_rx: ssc0_rx-0 {
424						atmel,pins =
425							<AT91_PIOB 24 AT91_PERIPH_A AT91_PINCTRL_NONE>,
426							<AT91_PIOB 25 AT91_PERIPH_A AT91_PINCTRL_NONE>,
427							<AT91_PIOB 26 AT91_PERIPH_A AT91_PINCTRL_NONE>;
428					};
429				};
430
431				ssc1 {
432					pinctrl_ssc1_tx: ssc1_tx-0 {
433						atmel,pins =
434							<AT91_PIOA 17 AT91_PERIPH_B AT91_PINCTRL_NONE>,
435							<AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_NONE>,
436							<AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_NONE>;
437					};
438
439					pinctrl_ssc1_rx: ssc1_rx-0 {
440						atmel,pins =
441							<AT91_PIOA 20 AT91_PERIPH_B AT91_PINCTRL_NONE>,
442							<AT91_PIOA 21 AT91_PERIPH_B AT91_PINCTRL_NONE>,
443							<AT91_PIOA 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;
444					};
445				};
446
447				ssc2 {
448					pinctrl_ssc2_tx: ssc2_tx-0 {
449						atmel,pins =
450							<AT91_PIOC 25 AT91_PERIPH_B AT91_PINCTRL_NONE>,
451							<AT91_PIOC 26 AT91_PERIPH_B AT91_PINCTRL_NONE>,
452							<AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE>;
453					};
454
455					pinctrl_ssc2_rx: ssc2_rx-0 {
456						atmel,pins =
457							<AT91_PIOC 28 AT91_PERIPH_B AT91_PINCTRL_NONE>,
458							<AT91_PIOC 29 AT91_PERIPH_B AT91_PINCTRL_NONE>,
459							<AT91_PIOC 30 AT91_PERIPH_B AT91_PINCTRL_NONE>;
460					};
461				};
462
463				spi0 {
464					pinctrl_spi0: spi0-0 {
465						atmel,pins =
466							<AT91_PIOA 0 AT91_PERIPH_A AT91_PINCTRL_NONE>,
467							<AT91_PIOA 1 AT91_PERIPH_A AT91_PINCTRL_NONE>,
468							<AT91_PIOA 2 AT91_PERIPH_A AT91_PINCTRL_NONE>;
469					};
470					};
471
472				spi1 {
473					pinctrl_spi1: spi1-0 {
474						atmel,pins =
475							<AT91_PIOB 30 AT91_PERIPH_A AT91_PINCTRL_NONE>,
476							<AT91_PIOB 31 AT91_PERIPH_A AT91_PINCTRL_NONE>,
477							<AT91_PIOB 29 AT91_PERIPH_A AT91_PINCTRL_NONE>;
478					};
479				};
480
481				tcb0 {
482					pinctrl_tcb0_tclk0: tcb0_tclk0-0 {
483						atmel,pins = <AT91_PIOC 16 AT91_PERIPH_B AT91_PINCTRL_NONE>;
484					};
485
486					pinctrl_tcb0_tclk1: tcb0_tclk1-0 {
487						atmel,pins = <AT91_PIOC 17 AT91_PERIPH_B AT91_PINCTRL_NONE>;
488					};
489
490					pinctrl_tcb0_tclk2: tcb0_tclk2-0 {
491						atmel,pins = <AT91_PIOC 18 AT91_PERIPH_B AT91_PINCTRL_NONE>;
492					};
493
494					pinctrl_tcb0_tioa0: tcb0_tioa0-0 {
495						atmel,pins = <AT91_PIOC 19 AT91_PERIPH_B AT91_PINCTRL_NONE>;
496					};
497
498					pinctrl_tcb0_tioa1: tcb0_tioa1-0 {
499						atmel,pins = <AT91_PIOC 21 AT91_PERIPH_B AT91_PINCTRL_NONE>;
500					};
501
502					pinctrl_tcb0_tioa2: tcb0_tioa2-0 {
503						atmel,pins = <AT91_PIOC 23 AT91_PERIPH_B AT91_PINCTRL_NONE>;
504					};
505
506					pinctrl_tcb0_tiob0: tcb0_tiob0-0 {
507						atmel,pins = <AT91_PIOC 20 AT91_PERIPH_B AT91_PINCTRL_NONE>;
508					};
509
510					pinctrl_tcb0_tiob1: tcb0_tiob1-0 {
511						atmel,pins = <AT91_PIOC 22 AT91_PERIPH_B AT91_PINCTRL_NONE>;
512					};
513
514					pinctrl_tcb0_tiob2: tcb0_tiob2-0 {
515						atmel,pins = <AT91_PIOC 24 AT91_PERIPH_B AT91_PINCTRL_NONE>;
516					};
517				};
518
519				i2c0 {
520					pinctrl_i2c_bitbang: i2c-0-bitbang {
521						atmel,pins =
522							<AT91_PIOA 7 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>,
523							<AT91_PIOA 8 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
524					};
525					pinctrl_i2c_twi: i2c-0-twi {
526						atmel,pins =
527							<AT91_PIOA 7 AT91_PERIPH_A AT91_PINCTRL_NONE>,
528							<AT91_PIOA 8 AT91_PERIPH_A AT91_PINCTRL_NONE>;
529					};
530				};
531
532				fb {
533					pinctrl_fb: fb-0 {
534						atmel,pins =
535							<AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE>,
536							<AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE>,
537							<AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE>,
538							<AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE>,
539							<AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_NONE>,
540							<AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE>,
541							<AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>,
542							<AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE>,
543							<AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE>,
544							<AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE>,
545							<AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE>,
546							<AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE>,
547							<AT91_PIOB 18 AT91_PERIPH_A AT91_PINCTRL_NONE>,
548							<AT91_PIOB 19 AT91_PERIPH_A AT91_PINCTRL_NONE>,
549							<AT91_PIOB 20 AT91_PERIPH_A AT91_PINCTRL_NONE>,
550							<AT91_PIOB 23 AT91_PERIPH_B AT91_PINCTRL_NONE>,
551							<AT91_PIOB 24 AT91_PERIPH_B AT91_PINCTRL_NONE>,
552							<AT91_PIOB 25 AT91_PERIPH_B AT91_PINCTRL_NONE>,
553							<AT91_PIOB 26 AT91_PERIPH_B AT91_PINCTRL_NONE>,
554							<AT91_PIOB 27 AT91_PERIPH_B AT91_PINCTRL_NONE>,
555							<AT91_PIOB 28 AT91_PERIPH_B AT91_PINCTRL_NONE>;
556					};
557				};
558
559				pioA: gpio@fffff400 {
560					compatible = "atmel,at91rm9200-gpio";
561					reg = <0xfffff400 0x200>;
562					interrupts = <2 IRQ_TYPE_LEVEL_HIGH 1>;
563					#gpio-cells = <2>;
564					gpio-controller;
565					interrupt-controller;
566					#interrupt-cells = <2>;
567					clocks = <&pmc PMC_TYPE_PERIPHERAL 2>;
568				};
569
570				pioB: gpio@fffff600 {
571					compatible = "atmel,at91rm9200-gpio";
572					reg = <0xfffff600 0x200>;
573					interrupts = <3 IRQ_TYPE_LEVEL_HIGH 1>;
574					#gpio-cells = <2>;
575					gpio-controller;
576					interrupt-controller;
577					#interrupt-cells = <2>;
578					clocks = <&pmc PMC_TYPE_PERIPHERAL 3>;
579				};
580
581				pioC: gpio@fffff800 {
582					compatible = "atmel,at91rm9200-gpio";
583					reg = <0xfffff800 0x200>;
584					interrupts = <4 IRQ_TYPE_LEVEL_HIGH 1>;
585					#gpio-cells = <2>;
586					gpio-controller;
587					interrupt-controller;
588					#interrupt-cells = <2>;
589					clocks = <&pmc PMC_TYPE_PERIPHERAL 4>;
590				};
591			};
592
593			pmc: pmc@fffffc00 {
594				compatible = "atmel,at91sam9261-pmc", "syscon";
595				reg = <0xfffffc00 0x100>;
596				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
597				#clock-cells = <2>;
598				clocks = <&slow_xtal>, <&main_xtal>;
599				clock-names = "slow_xtal", "main_xtal";
600			};
601
602			rstc@fffffd00 {
603				compatible = "atmel,at91sam9260-rstc";
604				reg = <0xfffffd00 0x10>;
605				clocks = <&slow_xtal>;
606			};
607
608			shdwc@fffffd10 {
609				compatible = "atmel,at91sam9260-shdwc";
610				reg = <0xfffffd10 0x10>;
611				clocks = <&slow_xtal>;
612			};
613
614			pit: timer@fffffd30 {
615				compatible = "atmel,at91sam9260-pit";
616				reg = <0xfffffd30 0xf>;
617				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
618				clocks = <&pmc PMC_TYPE_CORE PMC_MCK>;
619			};
620
621			rtc@fffffd20 {
622				compatible = "atmel,at91sam9260-rtt";
623				reg = <0xfffffd20 0x10>;
624				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
625				clocks = <&slow_xtal>;
626				status = "disabled";
627			};
628
629			watchdog@fffffd40 {
630				compatible = "atmel,at91sam9260-wdt";
631				reg = <0xfffffd40 0x10>;
632				interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
633				clocks = <&slow_xtal>;
634				status = "disabled";
635			};
636
637			gpbr: syscon@fffffd50 {
638				compatible = "atmel,at91sam9260-gpbr", "syscon";
639				reg = <0xfffffd50 0x10>;
640				status = "disabled";
641			};
642		};
643	};
644
645	i2c-gpio-0 {
646		compatible = "i2c-gpio";
647		pinctrl-names = "default";
648		pinctrl-0 = <&pinctrl_i2c_bitbang>;
649		gpios = <&pioA 7 GPIO_ACTIVE_HIGH>, /* sda */
650			<&pioA 8 GPIO_ACTIVE_HIGH>; /* scl */
651		i2c-gpio,sda-open-drain;
652		i2c-gpio,scl-open-drain;
653		i2c-gpio,delay-us = <2>;	/* ~100 kHz */
654		#address-cells = <1>;
655		#size-cells = <0>;
656		status = "disabled";
657	};
658};