1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Samsung's Exynos4210 based SMDKV310 board device tree source
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
6724ba675SRob Herring *		http://www.samsung.com
7724ba675SRob Herring * Copyright (c) 2010-2011 Linaro Ltd.
8724ba675SRob Herring *		www.linaro.org
9724ba675SRob Herring *
10724ba675SRob Herring * Device tree source file for Samsung's SMDKV310 board which is based on
11724ba675SRob Herring * Samsung's Exynos4210 SoC.
12724ba675SRob Herring */
13724ba675SRob Herring
14724ba675SRob Herring/dts-v1/;
15724ba675SRob Herring#include "exynos4210.dtsi"
16724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
17724ba675SRob Herring#include "exynos-mfc-reserved-memory.dtsi"
18724ba675SRob Herring
19724ba675SRob Herring/ {
20724ba675SRob Herring	model = "Samsung smdkv310 evaluation board based on Exynos4210";
21724ba675SRob Herring	compatible = "samsung,smdkv310", "samsung,exynos4210", "samsung,exynos4";
22724ba675SRob Herring
23724ba675SRob Herring	memory@40000000 {
24724ba675SRob Herring		device_type = "memory";
25724ba675SRob Herring		reg = <0x40000000 0x80000000>;
26724ba675SRob Herring	};
27724ba675SRob Herring
28724ba675SRob Herring	aliases {
29724ba675SRob Herring		mmc0 = &sdhci_2;
30724ba675SRob Herring	};
31724ba675SRob Herring
32724ba675SRob Herring	chosen {
33724ba675SRob Herring		bootargs = "root=/dev/ram0 rw ramdisk=8192 initrd=0x41000000,8M init=/linuxrc";
34724ba675SRob Herring		stdout-path = "serial1:115200n8";
35724ba675SRob Herring	};
36724ba675SRob Herring
37724ba675SRob Herring	fixed-rate-clocks {
38724ba675SRob Herring		xxti {
39724ba675SRob Herring			compatible = "samsung,clock-xxti";
40724ba675SRob Herring			clock-frequency = <12000000>;
41724ba675SRob Herring		};
42724ba675SRob Herring
43724ba675SRob Herring		xusbxti {
44724ba675SRob Herring			compatible = "samsung,clock-xusbxti";
45724ba675SRob Herring			clock-frequency = <24000000>;
46724ba675SRob Herring		};
47724ba675SRob Herring
48724ba675SRob Herring		pmic_ap_clk: pmic-ap-clk {
49724ba675SRob Herring			/* Workaround for missing clock on PMIC */
50724ba675SRob Herring			compatible = "fixed-clock";
51724ba675SRob Herring			#clock-cells = <0>;
52724ba675SRob Herring			clock-frequency = <32768>;
53724ba675SRob Herring		};
54724ba675SRob Herring	};
55724ba675SRob Herring};
56724ba675SRob Herring
57724ba675SRob Herring&cpu_thermal {
58724ba675SRob Herring	cooling-maps {
59724ba675SRob Herring		map0 {
60724ba675SRob Herring			/* Corresponds to 800MHz */
61724ba675SRob Herring			cooling-device = <&cpu0 2 2>;
62724ba675SRob Herring		};
63724ba675SRob Herring		map1 {
64724ba675SRob Herring			/* Corresponds to 200MHz */
65724ba675SRob Herring			cooling-device = <&cpu0 4 4>;
66724ba675SRob Herring		};
67724ba675SRob Herring	};
68724ba675SRob Herring};
69724ba675SRob Herring
70724ba675SRob Herring&i2c_0 {
71724ba675SRob Herring	#address-cells = <1>;
72724ba675SRob Herring	#size-cells = <0>;
73724ba675SRob Herring	samsung,i2c-sda-delay = <100>;
74724ba675SRob Herring	samsung,i2c-max-bus-freq = <100000>;
75724ba675SRob Herring	status = "okay";
76724ba675SRob Herring
77724ba675SRob Herring	eeprom@50 {
78724ba675SRob Herring		compatible = "samsung,24ad0xd1";
79724ba675SRob Herring		reg = <0x50>;
80724ba675SRob Herring	};
81724ba675SRob Herring
82724ba675SRob Herring	eeprom@52 {
83724ba675SRob Herring		compatible = "samsung,24ad0xd1";
84724ba675SRob Herring		reg = <0x52>;
85724ba675SRob Herring	};
86724ba675SRob Herring};
87724ba675SRob Herring
88724ba675SRob Herring&keypad {
89724ba675SRob Herring	samsung,keypad-num-rows = <2>;
90724ba675SRob Herring	samsung,keypad-num-columns = <8>;
910da0e880SKrzysztof Kozlowski	linux,input-no-autorepeat;
92724ba675SRob Herring	wakeup-source;
93724ba675SRob Herring	pinctrl-names = "default";
94724ba675SRob Herring	pinctrl-0 = <&keypad_rows &keypad_cols>;
95724ba675SRob Herring	status = "okay";
96724ba675SRob Herring
97724ba675SRob Herring	key-1 {
98724ba675SRob Herring		keypad,row = <0>;
99724ba675SRob Herring		keypad,column = <3>;
100724ba675SRob Herring		linux,code = <2>;
101724ba675SRob Herring	};
102724ba675SRob Herring
103724ba675SRob Herring	key-2 {
104724ba675SRob Herring		keypad,row = <0>;
105724ba675SRob Herring		keypad,column = <4>;
106724ba675SRob Herring		linux,code = <3>;
107724ba675SRob Herring	};
108724ba675SRob Herring
109724ba675SRob Herring	key-3 {
110724ba675SRob Herring		keypad,row = <0>;
111724ba675SRob Herring		keypad,column = <5>;
112724ba675SRob Herring		linux,code = <4>;
113724ba675SRob Herring	};
114724ba675SRob Herring
115724ba675SRob Herring	key-4 {
116724ba675SRob Herring		keypad,row = <0>;
117724ba675SRob Herring		keypad,column = <6>;
118724ba675SRob Herring		linux,code = <5>;
119724ba675SRob Herring	};
120724ba675SRob Herring
121724ba675SRob Herring	key-5 {
122724ba675SRob Herring		keypad,row = <0>;
123724ba675SRob Herring		keypad,column = <7>;
124724ba675SRob Herring		linux,code = <6>;
125724ba675SRob Herring	};
126724ba675SRob Herring
127724ba675SRob Herring	key-a {
128724ba675SRob Herring		keypad,row = <1>;
129724ba675SRob Herring		keypad,column = <3>;
130724ba675SRob Herring		linux,code = <30>;
131724ba675SRob Herring	};
132724ba675SRob Herring
133724ba675SRob Herring	key-b {
134724ba675SRob Herring		keypad,row = <1>;
135724ba675SRob Herring		keypad,column = <4>;
136724ba675SRob Herring		linux,code = <48>;
137724ba675SRob Herring	};
138724ba675SRob Herring
139724ba675SRob Herring	key-c {
140724ba675SRob Herring		keypad,row = <1>;
141724ba675SRob Herring		keypad,column = <5>;
142724ba675SRob Herring		linux,code = <46>;
143724ba675SRob Herring	};
144724ba675SRob Herring
145724ba675SRob Herring	key-d {
146724ba675SRob Herring		keypad,row = <1>;
147724ba675SRob Herring		keypad,column = <6>;
148724ba675SRob Herring		linux,code = <32>;
149724ba675SRob Herring	};
150724ba675SRob Herring
151724ba675SRob Herring	key-e {
152724ba675SRob Herring		keypad,row = <1>;
153724ba675SRob Herring		keypad,column = <7>;
154724ba675SRob Herring		linux,code = <18>;
155724ba675SRob Herring	};
156724ba675SRob Herring};
157724ba675SRob Herring
158724ba675SRob Herring&pinctrl_1 {
159724ba675SRob Herring	keypad_rows: keypad-rows-pins {
160724ba675SRob Herring		samsung,pins = "gpx2-0", "gpx2-1";
161724ba675SRob Herring		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
162724ba675SRob Herring		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
163724ba675SRob Herring		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
164724ba675SRob Herring	};
165724ba675SRob Herring
166724ba675SRob Herring	keypad_cols: keypad-cols-pins {
167724ba675SRob Herring		samsung,pins = "gpx1-0", "gpx1-1", "gpx1-2", "gpx1-3",
168724ba675SRob Herring			       "gpx1-4", "gpx1-5", "gpx1-6", "gpx1-7";
169724ba675SRob Herring		samsung,pin-function = <EXYNOS_PIN_FUNC_3>;
170724ba675SRob Herring		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
171724ba675SRob Herring		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
172724ba675SRob Herring	};
173724ba675SRob Herring};
174724ba675SRob Herring
175724ba675SRob Herring&rtc {
176724ba675SRob Herring	clocks = <&clock CLK_RTC>, <&pmic_ap_clk>;
177724ba675SRob Herring	clock-names = "rtc", "rtc_src";
178724ba675SRob Herring};
179724ba675SRob Herring
180724ba675SRob Herring&sdhci_2 {
181724ba675SRob Herring	bus-width = <4>;
182724ba675SRob Herring	pinctrl-names = "default";
183724ba675SRob Herring	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
184724ba675SRob Herring	status = "okay";
185724ba675SRob Herring};
186724ba675SRob Herring
187724ba675SRob Herring&serial_0 {
188724ba675SRob Herring	status = "okay";
189724ba675SRob Herring};
190724ba675SRob Herring
191724ba675SRob Herring&serial_1 {
192724ba675SRob Herring	status = "okay";
193724ba675SRob Herring};
194724ba675SRob Herring
195724ba675SRob Herring&serial_2 {
196724ba675SRob Herring	status = "okay";
197724ba675SRob Herring};
198724ba675SRob Herring
199724ba675SRob Herring&serial_3 {
200724ba675SRob Herring	status = "okay";
201724ba675SRob Herring};
202724ba675SRob Herring
203724ba675SRob Herring&spi_2 {
204724ba675SRob Herring	cs-gpios = <&gpc1 2 GPIO_ACTIVE_HIGH>;
205724ba675SRob Herring	status = "okay";
206724ba675SRob Herring
207724ba675SRob Herring	flash@0 {
208724ba675SRob Herring		#address-cells = <1>;
209724ba675SRob Herring		#size-cells = <1>;
210724ba675SRob Herring		compatible = "winbond,w25x80", "jedec,spi-nor";
211724ba675SRob Herring		reg = <0>;
212724ba675SRob Herring		spi-max-frequency = <1000000>;
213724ba675SRob Herring
214724ba675SRob Herring		controller-data {
215724ba675SRob Herring			samsung,spi-feedback-delay = <0>;
216724ba675SRob Herring		};
217724ba675SRob Herring
218724ba675SRob Herring		partition@0 {
219724ba675SRob Herring			label = "U-Boot";
220724ba675SRob Herring			reg = <0x0 0x40000>;
221724ba675SRob Herring			read-only;
222724ba675SRob Herring		};
223724ba675SRob Herring
224724ba675SRob Herring		partition@40000 {
225724ba675SRob Herring			label = "Kernel";
226724ba675SRob Herring			reg = <0x40000 0xc0000>;
227724ba675SRob Herring		};
228724ba675SRob Herring	};
229724ba675SRob Herring};
230