Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[cascardo/linux.git] / arch / arm / boot / dts / exynos4412-smdk4412.dts
1 /*
2  * Samsung's Exynos4412 based SMDK board device tree source
3  *
4  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5  *              http://www.samsung.com
6  *
7  * Device tree source file for Samsung's SMDK4412 board which is based on
8  * Samsung's Exynos4412 SoC.
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License version 2 as
12  * published by the Free Software Foundation.
13 */
14
15 /dts-v1/;
16 #include "exynos4412.dtsi"
17 #include "exynos-mfc-reserved-memory.dtsi"
18
19 / {
20         model = "Samsung SMDK evaluation board based on Exynos4412";
21         compatible = "samsung,smdk4412", "samsung,exynos4412", "samsung,exynos4";
22
23         memory {
24                 reg = <0x40000000 0x40000000>;
25         };
26
27         chosen {
28                 bootargs ="root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M console=ttySAC1,115200 init=/linuxrc";
29                 stdout-path = &serial_1;
30         };
31
32         fixed-rate-clocks {
33                 xxti {
34                         compatible = "samsung,clock-xxti";
35                         clock-frequency = <0>;
36                 };
37
38                 xusbxti {
39                         compatible = "samsung,clock-xusbxti";
40                         clock-frequency = <24000000>;
41                 };
42         };
43 };
44
45 &keypad {
46         samsung,keypad-num-rows = <3>;
47         samsung,keypad-num-columns = <8>;
48         linux,keypad-no-autorepeat;
49         wakeup-source;
50         pinctrl-0 = <&keypad_rows &keypad_cols>;
51         pinctrl-names = "default";
52         status = "okay";
53
54         key_1 {
55                 keypad,row = <1>;
56                 keypad,column = <3>;
57                 linux,code = <2>;
58         };
59
60         key_2 {
61                 keypad,row = <1>;
62                 keypad,column = <4>;
63                 linux,code = <3>;
64         };
65
66         key_3 {
67                 keypad,row = <1>;
68                 keypad,column = <5>;
69                 linux,code = <4>;
70         };
71
72         key_4 {
73                 keypad,row = <1>;
74                 keypad,column = <6>;
75                 linux,code = <5>;
76         };
77
78         key_5 {
79                 keypad,row = <1>;
80                 keypad,column = <7>;
81                 linux,code = <6>;
82         };
83
84         key_A {
85                 keypad,row = <2>;
86                 keypad,column = <6>;
87                 linux,code = <30>;
88         };
89
90         key_B {
91                 keypad,row = <2>;
92                 keypad,column = <7>;
93                 linux,code = <48>;
94         };
95
96         key_C {
97                 keypad,row = <0>;
98                 keypad,column = <5>;
99                 linux,code = <46>;
100         };
101
102         key_D {
103                 keypad,row = <2>;
104                 keypad,column = <5>;
105                 linux,code = <32>;
106         };
107
108         key_E {
109                 keypad,row = <0>;
110                 keypad,column = <7>;
111                 linux,code = <18>;
112         };
113 };
114
115 &pinctrl_1 {
116         keypad_rows: keypad-rows {
117                 samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2";
118                 samsung,pin-function = <3>;
119                 samsung,pin-pud = <3>;
120                 samsung,pin-drv = <0>;
121         };
122
123         keypad_cols: keypad-cols {
124                 samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
125                                "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
126                 samsung,pin-function = <3>;
127                 samsung,pin-pud = <0>;
128                 samsung,pin-drv = <0>;
129         };
130 };
131
132 &sdhci_2 {
133         bus-width = <4>;
134         pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sd2_cd>;
135         pinctrl-names = "default";
136         status = "okay";
137 };
138
139 &serial_0 {
140         status = "okay";
141 };
142
143 &serial_1 {
144         status = "okay";
145 };
146
147 &serial_2 {
148         status = "okay";
149 };
150
151 &serial_3 {
152         status = "okay";
153 };