at91-cosino.dtsi revision 262569
1/*
2 * at91-cosino.dtsi - Device Tree file for Cosino core module
3 *
4 * Copyright (C) 2013 - Rodolfo Giometti <giometti@linux.it>
5 *			HCE Engineering
6 *
7 * Derived from at91sam9x5ek.dtsi by:
8 *	Copyright (C) 2012 Atmel,
9 *	2012 Nicolas Ferre <nicolas.ferre@atmel.com>
10 *
11 * Licensed under GPLv2 or later.
12 */
13
14#include "at91sam9g35.dtsi"
15
16/ {
17	model = "HCE Cosino core module";
18	compatible = "hce,cosino", "atmel,at91sam9x5", "atmel,at91sam9";
19
20	chosen {
21		bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait";
22	};
23
24	memory {
25		reg = <0x20000000 0x8000000>;
26	};
27
28	clocks {
29		#address-cells = <1>;
30		#size-cells = <1>;
31		ranges;
32
33		main_clock: clock@0 {
34			compatible = "atmel,osc", "fixed-clock";
35			clock-frequency = <12000000>;
36		};
37	};
38
39	ahb {
40		apb {
41			mmc0: mmc@f0008000 {
42				pinctrl-0 = <
43					&pinctrl_board_mmc0
44					&pinctrl_mmc0_slot0_clk_cmd_dat0
45					&pinctrl_mmc0_slot0_dat1_3>;
46				status = "okay";
47				slot@0 {
48					reg = <0>;
49					bus-width = <4>;
50					cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
51				};
52			};
53
54			dbgu: serial@fffff200 {
55				status = "okay";
56			};
57
58			usart0: serial@f801c000 {
59				status = "okay";
60			};
61
62			i2c0: i2c@f8010000 {
63				status = "okay";
64			};
65
66			adc0: adc@f804c000 {
67				atmel,adc-clock-rate = <1000000>;
68				atmel,adc-ts-wires = <4>;
69				atmel,adc-ts-pressure-threshold = <10000>;
70				status = "okay";
71			};
72
73			pinctrl@fffff400 {
74				mmc0 {
75					pinctrl_board_mmc0: mmc0-board {
76						atmel,pins =
77							<AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;	/* PD15 gpio CD pin pull up and deglitch */
78					};
79				};
80			};
81
82			watchdog@fffffe40 {
83				status = "okay";
84			};
85		};
86
87		nand0: nand@40000000 {
88			nand-bus-width = <8>;
89			nand-ecc-mode = "hw";
90			atmel,has-pmecc;	/* Enable PMECC */
91			atmel,pmecc-cap = <4>;
92			atmel,pmecc-sector-size = <512>;
93			nand-on-flash-bbt;
94			status = "okay";
95
96			at91bootstrap@0 {
97				label = "at91bootstrap";
98				reg = <0x0 0x40000>;
99			};
100
101			uboot@40000 {
102				label = "u-boot";
103				reg = <0x40000 0x80000>;
104			};
105
106			ubootenv@c0000 {
107				label = "U-Boot Env";
108				reg = <0xc0000 0x140000>;
109			};
110
111			kernel@200000 {
112				label = "kernel";
113				reg = <0x200000 0x600000>;
114			};
115
116			rootfs@800000 {
117				label = "rootfs";
118				reg = <0x800000 0x0f800000>;
119			};
120		};
121	};
122};
123