1/*
2 * at91sam9263ek.dts - Device Tree file for Atmel at91sam9263 reference board
3 *
4 *  Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
5 *
6 * Licensed under GPLv2 only
7 */
8/dts-v1/;
9#include "at91sam9263.dtsi"
10
11/ {
12	model = "Atmel at91sam9263ek";
13	compatible = "atmel,at91sam9263ek", "atmel,at91sam9263", "atmel,at91sam9";
14
15	chosen {
16		bootargs = "mem=64M root=/dev/mtdblock5 rw rootfstype=ubifs";
17		stdout-path = "serial0:115200n8";
18		u-boot,dm-pre-reloc;
19	};
20
21	memory {
22		reg = <0x20000000 0x4000000>;
23	};
24
25	clocks {
26		slow_xtal {
27			clock-frequency = <32768>;
28		};
29
30		main_xtal {
31			clock-frequency = <16367660>;
32		};
33	};
34
35	ahb {
36		apb {
37			dbgu: serial@ffffee00 {
38				u-boot,dm-pre-reloc;
39				status = "okay";
40			};
41
42			usart0: serial@fff8c000 {
43				pinctrl-0 = <
44					&pinctrl_usart0
45					&pinctrl_usart0_rts
46					&pinctrl_usart0_cts>;
47				status = "okay";
48			};
49
50			macb0: ethernet@fffbc000 {
51				phy-mode = "rmii";
52				status = "okay";
53			};
54
55			usb1: gadget@fff78000 {
56				atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>;
57				status = "okay";
58			};
59
60			mmc0: mmc@fff80000 {
61				pinctrl-0 = <
62					&pinctrl_board_mmc0
63					&pinctrl_mmc0_clk
64					&pinctrl_mmc0_slot0_cmd_dat0
65					&pinctrl_mmc0_slot0_dat1_3>;
66				status = "okay";
67				slot@0 {
68					reg = <0>;
69					bus-width = <4>;
70					cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>;
71					wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>;
72				};
73			};
74
75			pinctrl@fffff200 {
76				mmc0 {
77					pinctrl_board_mmc0: mmc0-board {
78						atmel,pins =
79							<AT91_PIOE 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH 	/* PE18 gpio CD pin pull up and deglitch */
80							 AT91_PIOE 19 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;	/* PE19 gpio WP pin pull up */
81					};
82				};
83			};
84
85			spi0: spi@fffa4000 {
86				status = "okay";
87				cs-gpios = <&pioA 5 0>, <0>, <0>, <0>;
88				mtd_dataflash@0 {
89					compatible = "atmel,at45", "atmel,dataflash";
90					spi-max-frequency = <15000000>;
91					reg = <0>;
92				};
93			};
94
95			watchdog@fffffd40 {
96				status = "okay";
97			};
98		};
99
100		fb0: fb@0x00700000 {
101			display = <&display0>;
102			status = "okay";
103
104			display0: display {
105				bits-per-pixel = <16>;
106				atmel,lcdcon-backlight;
107				atmel,dmacon = <0x1>;
108				atmel,lcdcon2 = <0x80008002>;
109				atmel,guard-time = <1>;
110
111				display-timings {
112					native-mode = <&timing0>;
113					timing0: timing0 {
114						clock-frequency = <4965000>;
115						hactive = <240>;
116						vactive = <320>;
117						hback-porch = <1>;
118						hfront-porch = <33>;
119						vback-porch = <1>;
120						vfront-porch = <0>;
121						hsync-len = <5>;
122						vsync-len = <1>;
123						hsync-active = <1>;
124						vsync-active = <1>;
125					};
126				};
127			};
128		};
129
130		nand0: nand@40000000 {
131			nand-bus-width = <8>;
132			nand-ecc-mode = "soft";
133			nand-on-flash-bbt = <1>;
134			status = "okay";
135
136			at91bootstrap@0 {
137				label = "at91bootstrap";
138				reg = <0x0 0x20000>;
139			};
140
141			barebox@20000 {
142				label = "barebox";
143				reg = <0x20000 0x40000>;
144			};
145
146			bareboxenv@60000 {
147				label = "bareboxenv";
148				reg = <0x60000 0x20000>;
149			};
150
151			bareboxenv2@80000 {
152				label = "bareboxenv2";
153				reg = <0x80000 0x20000>;
154			};
155
156			oftree@80000 {
157				label = "oftree";
158				reg = <0xa0000 0x20000>;
159			};
160
161			kernel@a0000 {
162				label = "kernel";
163				reg = <0xc0000 0x400000>;
164			};
165
166			rootfs@4a0000 {
167				label = "rootfs";
168				reg = <0x4c0000 0x7800000>;
169			};
170
171			data@7ca0000 {
172				label = "data";
173				reg = <0x7cc0000 0x8340000>;
174			};
175		};
176
177		usb0: ohci@00a00000 {
178			num-ports = <2>;
179			status = "okay";
180			atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH
181					   &pioA 21 GPIO_ACTIVE_HIGH
182					  >;
183		};
184	};
185
186	leds {
187		compatible = "gpio-leds";
188
189		d3 {
190			label = "d3";
191			gpios = <&pioB 7 GPIO_ACTIVE_HIGH>;
192			linux,default-trigger = "heartbeat";
193		};
194
195		d2 {
196			label = "d2";
197			gpios = <&pioC 29 GPIO_ACTIVE_LOW>;
198			linux,default-trigger = "nand-disk";
199		};
200	};
201
202	gpio_keys {
203		compatible = "gpio-keys";
204
205		left_click {
206			label = "left_click";
207			gpios = <&pioC 5 GPIO_ACTIVE_LOW>;
208			linux,code = <272>;
209			wakeup-source;
210		};
211
212		right_click {
213			label = "right_click";
214			gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
215			linux,code = <273>;
216			wakeup-source;
217		};
218	};
219
220	i2c-gpio-0 {
221		status = "okay";
222
223		24c512@50 {
224			compatible = "24c512";
225			reg = <0x50>;
226			pagesize = <128>;
227		};
228	};
229};
230