Merge tag 'v3.8-rc5' into x86/mm
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / boot / dts / at91sam9263ek.dts
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 console=ttyS0,115200 root=/dev/mtdblock5 rw rootfstype=ubifs";
17 };
18
19 memory {
20 reg = <0x20000000 0x4000000>;
21 };
22
23 clocks {
24 #address-cells = <1>;
25 #size-cells = <1>;
26 ranges;
27
28 main_clock: clock@0 {
29 compatible = "atmel,osc", "fixed-clock";
30 clock-frequency = <16367660>;
31 };
32 };
33
34 ahb {
35 apb {
36 dbgu: serial@ffffee00 {
37 status = "okay";
38 };
39
40 usart0: serial@fff8c000 {
41 pinctrl-0 = <
42 &pinctrl_usart0
43 &pinctrl_usart0_rts
44 &pinctrl_usart0_cts>;
45 status = "okay";
46 };
47
48 macb0: ethernet@fffbc000 {
49 phy-mode = "rmii";
50 status = "okay";
51 };
52
53 usb1: gadget@fff78000 {
54 atmel,vbus-gpio = <&pioA 25 0>;
55 status = "okay";
56 };
57
58 mmc0: mmc@fff80000 {
59 pinctrl-0 = <
60 &pinctrl_board_mmc0
61 &pinctrl_mmc0_clk
62 &pinctrl_mmc0_slot0_cmd_dat0
63 &pinctrl_mmc0_slot0_dat1_3>;
64 status = "okay";
65 slot@0 {
66 reg = <0>;
67 bus-width = <4>;
68 cd-gpios = <&pioE 18 0>;
69 wp-gpios = <&pioE 19 0>;
70 };
71 };
72
73 pinctrl@fffff200 {
74 mmc0 {
75 pinctrl_board_mmc0: mmc0-board {
76 atmel,pins =
77 <5 18 0x0 0x5 /* PE18 gpio CD pin pull up and deglitch */
78 5 19 0x0 0x1>; /* PE19 gpio WP pin pull up */
79 };
80 };
81 };
82 };
83
84 nand0: nand@40000000 {
85 nand-bus-width = <8>;
86 nand-ecc-mode = "soft";
87 nand-on-flash-bbt = <1>;
88 status = "okay";
89
90 at91bootstrap@0 {
91 label = "at91bootstrap";
92 reg = <0x0 0x20000>;
93 };
94
95 barebox@20000 {
96 label = "barebox";
97 reg = <0x20000 0x40000>;
98 };
99
100 bareboxenv@60000 {
101 label = "bareboxenv";
102 reg = <0x60000 0x20000>;
103 };
104
105 bareboxenv2@80000 {
106 label = "bareboxenv2";
107 reg = <0x80000 0x20000>;
108 };
109
110 oftree@80000 {
111 label = "oftree";
112 reg = <0xa0000 0x20000>;
113 };
114
115 kernel@a0000 {
116 label = "kernel";
117 reg = <0xc0000 0x400000>;
118 };
119
120 rootfs@4a0000 {
121 label = "rootfs";
122 reg = <0x4c0000 0x7800000>;
123 };
124
125 data@7ca0000 {
126 label = "data";
127 reg = <0x7cc0000 0x8340000>;
128 };
129 };
130
131 usb0: ohci@00a00000 {
132 num-ports = <2>;
133 status = "okay";
134 atmel,vbus-gpio = <&pioA 24 0
135 &pioA 21 0
136 >;
137 };
138 };
139
140 leds {
141 compatible = "gpio-leds";
142
143 d3 {
144 label = "d3";
145 gpios = <&pioB 7 0>;
146 linux,default-trigger = "heartbeat";
147 };
148
149 d2 {
150 label = "d2";
151 gpios = <&pioC 29 1>;
152 linux,default-trigger = "nand-disk";
153 };
154 };
155
156 gpio_keys {
157 compatible = "gpio-keys";
158 #address-cells = <1>;
159 #size-cells = <0>;
160
161 left_click {
162 label = "left_click";
163 gpios = <&pioC 5 1>;
164 linux,code = <272>;
165 gpio-key,wakeup;
166 };
167
168 right_click {
169 label = "right_click";
170 gpios = <&pioC 4 1>;
171 linux,code = <273>;
172 gpio-key,wakeup;
173 };
174 };
175
176 i2c@0 {
177 status = "okay";
178
179 24c512@50 {
180 compatible = "24c512";
181 reg = <0x50>;
182 pagesize = <128>;
183 };
184 };
185 };