at91-cosino.dtsi revision 262573
1356843Sdim/*
2356843Sdim * at91-cosino.dtsi - Device Tree file for Cosino core module
3356843Sdim *
4356843Sdim * Copyright (C) 2013 - Rodolfo Giometti <giometti@linux.it>
5356843Sdim *			HCE Engineering
6356843Sdim *
7356843Sdim * Derived from at91sam9x5ek.dtsi by:
8356843Sdim *	Copyright (C) 2012 Atmel,
9356843Sdim *	2012 Nicolas Ferre <nicolas.ferre@atmel.com>
10356843Sdim *
11356843Sdim * Licensed under GPLv2 or later.
12356843Sdim */
13356843Sdim
14356843Sdim#include "at91sam9g35.dtsi"
15356843Sdim
16356843Sdim/ {
17356843Sdim	model = "HCE Cosino core module";
18356843Sdim	compatible = "hce,cosino", "atmel,at91sam9x5", "atmel,at91sam9";
19356843Sdim
20356843Sdim	chosen {
21356843Sdim		bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait";
22356843Sdim	};
23356843Sdim
24356843Sdim	memory {
25356843Sdim		reg = <0x20000000 0x8000000>;
26356843Sdim	};
27356843Sdim
28356843Sdim	clocks {
29356843Sdim		#address-cells = <1>;
30356843Sdim		#size-cells = <1>;
31356843Sdim		ranges;
32356843Sdim
33356843Sdim		main_clock: clock@0 {
34356843Sdim			compatible = "atmel,osc", "fixed-clock";
35356843Sdim			clock-frequency = <12000000>;
36356843Sdim		};
37356843Sdim	};
38356843Sdim
39356843Sdim	ahb {
40356843Sdim		apb {
41356843Sdim			mmc0: mmc@f0008000 {
42356843Sdim				pinctrl-0 = <
43356843Sdim					&pinctrl_board_mmc0
44356843Sdim					&pinctrl_mmc0_slot0_clk_cmd_dat0
45356843Sdim					&pinctrl_mmc0_slot0_dat1_3>;
46356843Sdim				status = "okay";
47356843Sdim				slot@0 {
48356843Sdim					reg = <0>;
49356843Sdim					bus-width = <4>;
50356843Sdim					cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>;
51356843Sdim				};
52356843Sdim			};
53356843Sdim
54356843Sdim			dbgu: serial@fffff200 {
55356843Sdim				status = "okay";
56356843Sdim			};
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