Merge remote-tracking branches 'asoc/fix/atmel', 'asoc/fix/compress', 'asoc/fix/da721...
[cascardo/linux.git] / arch / arm / boot / dts / exynos4210-smdkv310.dts
1 /*
2  * Samsung's Exynos4210 based SMDKV310 board device tree source
3  *
4  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  * Copyright (c) 2010-2011 Linaro Ltd.
7  *              www.linaro.org
8  *
9  * Device tree source file for Samsung's SMDKV310 board which is based on
10  * Samsung's Exynos4210 SoC.
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License version 2 as
14  * published by the Free Software Foundation.
15 */
16
17 /dts-v1/;
18 #include "exynos4210.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include "exynos-mfc-reserved-memory.dtsi"
21
22 / {
23         model = "Samsung smdkv310 evaluation board based on Exynos4210";
24         compatible = "samsung,smdkv310", "samsung,exynos4210", "samsung,exynos4";
25
26         memory {
27                 reg = <0x40000000 0x80000000>;
28         };
29
30         chosen {
31                 bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc";
32                 stdout-path = &serial_1;
33         };
34
35         fixed-rate-clocks {
36                 xxti {
37                         compatible = "samsung,clock-xxti";
38                         clock-frequency = <12000000>;
39                 };
40
41                 xusbxti {
42                         compatible = "samsung,clock-xusbxti";
43                         clock-frequency = <24000000>;
44                 };
45         };
46 };
47
48 &i2c_0 {
49         #address-cells = <1>;
50         #size-cells = <0>;
51         samsung,i2c-sda-delay = <100>;
52         samsung,i2c-max-bus-freq = <100000>;
53         status = "okay";
54
55         eeprom@50 {
56                 compatible = "samsung,24ad0xd1";
57                 reg = <0x50>;
58         };
59
60         eeprom@52 {
61                 compatible = "samsung,24ad0xd1";
62                 reg = <0x52>;
63         };
64 };
65
66 &keypad {
67         samsung,keypad-num-rows = <2>;
68         samsung,keypad-num-columns = <8>;
69         linux,keypad-no-autorepeat;
70         wakeup-source;
71         pinctrl-names = "default";
72         pinctrl-0 = <&keypad_rows &keypad_cols>;
73         status = "okay";
74
75         key_1 {
76                 keypad,row = <0>;
77                 keypad,column = <3>;
78                 linux,code = <2>;
79         };
80
81         key_2 {
82                 keypad,row = <0>;
83                 keypad,column = <4>;
84                 linux,code = <3>;
85         };
86
87         key_3 {
88                 keypad,row = <0>;
89                 keypad,column = <5>;
90                 linux,code = <4>;
91         };
92
93         key_4 {
94                 keypad,row = <0>;
95                 keypad,column = <6>;
96                 linux,code = <5>;
97         };
98
99         key_5 {
100                 keypad,row = <0>;
101                 keypad,column = <7>;
102                 linux,code = <6>;
103         };
104
105         key_a {
106                 keypad,row = <1>;
107                 keypad,column = <3>;
108                 linux,code = <30>;
109         };
110
111         key_b {
112                 keypad,row = <1>;
113                 keypad,column = <4>;
114                 linux,code = <48>;
115         };
116
117         key_c {
118                 keypad,row = <1>;
119                 keypad,column = <5>;
120                 linux,code = <46>;
121         };
122
123         key_d {
124                 keypad,row = <1>;
125                 keypad,column = <6>;
126                 linux,code = <32>;
127         };
128
129         key_e {
130                 keypad,row = <1>;
131                 keypad,column = <7>;
132                 linux,code = <18>;
133         };
134 };
135
136 &pinctrl_1 {
137         keypad_rows: keypad-rows {
138                 samsung,pins = "gpx2-0", "gpx2-1";
139                 samsung,pin-function = <3>;
140                 samsung,pin-pud = <3>;
141                 samsung,pin-drv = <0>;
142         };
143
144         keypad_cols: keypad-cols {
145                 samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
146                                "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
147                 samsung,pin-function = <3>;
148                 samsung,pin-pud = <0>;
149                 samsung,pin-drv = <0>;
150         };
151 };
152
153 &sdhci_2 {
154         bus-width = <4>;
155         pinctrl-names = "default";
156         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
157         status = "okay";
158 };
159
160 &serial_0 {
161         status = "okay";
162 };
163
164 &serial_1 {
165         status = "okay";
166 };
167
168 &serial_2 {
169         status = "okay";
170 };
171
172 &serial_3 {
173         status = "okay";
174 };
175
176 &spi_2 {
177         cs-gpios = <&gpc1 2 GPIO_ACTIVE_HIGH>;
178         status = "okay";
179
180         w25x80@0 {
181                 #address-cells = <1>;
182                 #size-cells = <1>;
183                 compatible = "w25x80";
184                 reg = <0>;
185                 spi-max-frequency = <1000000>;
186
187                 controller-data {
188                         samsung,spi-feedback-delay = <0>;
189                 };
190
191                 partition@0 {
192                         label = "U-Boot";
193                         reg = <0x0 0x40000>;
194                         read-only;
195                 };
196
197                 partition@40000 {
198                         label = "Kernel";
199                         reg = <0x40000 0xc0000>;
200                 };
201         };
202 };