ARM: dts: exynos: Convert MFC device to generic reserved memory bindings
[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 &mfc {
137         memory-region = <&mfc_left>, <&mfc_right>;
138         status = "okay";
139 };
140
141 &pinctrl_1 {
142         keypad_rows: keypad-rows {
143                 samsung,pins = "gpx2-0", "gpx2-1";
144                 samsung,pin-function = <3>;
145                 samsung,pin-pud = <3>;
146                 samsung,pin-drv = <0>;
147         };
148
149         keypad_cols: keypad-cols {
150                 samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
151                                "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
152                 samsung,pin-function = <3>;
153                 samsung,pin-pud = <0>;
154                 samsung,pin-drv = <0>;
155         };
156 };
157
158 &sdhci_2 {
159         bus-width = <4>;
160         pinctrl-names = "default";
161         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
162         status = "okay";
163 };
164
165 &serial_0 {
166         status = "okay";
167 };
168
169 &serial_1 {
170         status = "okay";
171 };
172
173 &serial_2 {
174         status = "okay";
175 };
176
177 &serial_3 {
178         status = "okay";
179 };
180
181 &spi_2 {
182         cs-gpios = <&gpc1 2 GPIO_ACTIVE_HIGH>;
183         status = "okay";
184
185         w25x80@0 {
186                 #address-cells = <1>;
187                 #size-cells = <1>;
188                 compatible = "w25x80";
189                 reg = <0>;
190                 spi-max-frequency = <1000000>;
191
192                 controller-data {
193                         samsung,spi-feedback-delay = <0>;
194                 };
195
196                 partition@0 {
197                         label = "U-Boot";
198                         reg = <0x0 0x40000>;
199                         read-only;
200                 };
201
202                 partition@40000 {
203                         label = "Kernel";
204                         reg = <0x40000 0xc0000>;
205                 };
206         };
207 };