]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blame - arch/arm/boot/dts/exynos4412-smdk4412.dts
ARM: dts: exynos: Use macros for pinctrl configuration on exynos4210
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / exynos4412-smdk4412.dts
CommitLineData
86666adc
TA
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/;
3799279f 16#include "exynos4412.dtsi"
8b9ac7e3 17#include "exynos-mfc-reserved-memory.dtsi"
86666adc
TA
18
19/ {
20 model = "Samsung SMDK evaluation board based on Exynos4412";
8bdb31b4 21 compatible = "samsung,smdk4412", "samsung,exynos4412", "samsung,exynos4";
86666adc
TA
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";
62d38099 29 stdout-path = &serial_1;
86666adc
TA
30 };
31
3d06a5c1
KK
32 fixed-rate-clocks {
33 xxti {
34 compatible = "samsung,clock-xxti";
35 clock-frequency = <0>;
c9b92dd7
SK
36 };
37
3d06a5c1
KK
38 xusbxti {
39 compatible = "samsung,clock-xusbxti";
40 clock-frequency = <24000000>;
c9b92dd7
SK
41 };
42 };
3d06a5c1 43};
c9b92dd7 44
3d06a5c1
KK
45&keypad {
46 samsung,keypad-num-rows = <3>;
47 samsung,keypad-num-columns = <8>;
48 linux,keypad-no-autorepeat;
36a0282a 49 wakeup-source;
3d06a5c1
KK
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 };
c9b92dd7 59
3d06a5c1
KK
60 key_2 {
61 keypad,row = <1>;
62 keypad,column = <4>;
63 linux,code = <3>;
64 };
c9b92dd7 65
3d06a5c1
KK
66 key_3 {
67 keypad,row = <1>;
68 keypad,column = <5>;
69 linux,code = <4>;
70 };
c9b92dd7 71
3d06a5c1
KK
72 key_4 {
73 keypad,row = <1>;
74 keypad,column = <6>;
75 linux,code = <5>;
76 };
c9b92dd7 77
3d06a5c1
KK
78 key_5 {
79 keypad,row = <1>;
80 keypad,column = <7>;
81 linux,code = <6>;
82 };
c9b92dd7 83
3d06a5c1
KK
84 key_A {
85 keypad,row = <2>;
86 keypad,column = <6>;
87 linux,code = <30>;
c9b92dd7
SK
88 };
89
3d06a5c1
KK
90 key_B {
91 keypad,row = <2>;
92 keypad,column = <7>;
93 linux,code = <48>;
b914c318
SK
94 };
95
3d06a5c1
KK
96 key_C {
97 keypad,row = <0>;
98 keypad,column = <5>;
99 linux,code = <46>;
32486d14
SK
100 };
101
3d06a5c1
KK
102 key_D {
103 keypad,row = <2>;
104 keypad,column = <5>;
105 linux,code = <32>;
86666adc
TA
106 };
107
3d06a5c1
KK
108 key_E {
109 keypad,row = <0>;
110 keypad,column = <7>;
111 linux,code = <18>;
86666adc 112 };
3d06a5c1
KK
113};
114
3d06a5c1
KK
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>;
86666adc
TA
121 };
122
3d06a5c1
KK
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>;
86666adc 129 };
3d06a5c1 130};
8b6076d4 131
3d06a5c1
KK
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};
8b6076d4 138
3d06a5c1
KK
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";
86666adc 153};