1/*
2 * SAMSUNG/GOOGLE Peach-Pit board device tree source
3 *
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 *		http://www.samsung.com
6 *
7 * SPDX-License-Identifier:	GPL-2.0+
8 */
9
10/dts-v1/;
11#include "exynos54xx.dtsi"
12
13/ {
14	model = "Samsung/Google Peach Pi board based on Exynos5800";
15	cpu-model = "Exynos5800";
16
17	compatible = "google,pit-rev#", "google,pit",
18		"google,peach", "samsung,exynos5800", "samsung,exynos5";
19
20	config {
21		google,bad-wake-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
22		hwid = "PIT TEST A-A 7848";
23		lazy-init = <1>;
24	};
25
26	aliases {
27		serial0 = "/serial@12C30000";
28		console = "/serial@12C30000";
29		pmic = "/i2c@12CA0000";
30		i2c104 = &i2c_tunnel;
31	};
32
33	backlight: backlight {
34		compatible = "pwm-backlight";
35		pwms = <&pwm 0 1000000 0>;
36		brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
37		default-brightness-level = <7>;
38		enable-gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
39		power-supply = <&tps65090_fet1>;
40	};
41
42	panel: panel {
43		compatible = "auo,b133htn01";
44		power-supply = <&tps65090_fet6>;
45		backlight = <&backlight>;
46
47		port {
48			panel_in: endpoint {
49				remote-endpoint = <&dp_out>;
50			};
51		};
52	};
53
54	dmc {
55		mem-manuf = "samsung";
56		mem-type = "ddr3";
57		clock-frequency = <800000000>;
58		arm-frequency = <900000000>;
59	};
60
61	tmu@10060000 {
62		samsung,min-temp	= <25>;
63		samsung,max-temp	= <125>;
64		samsung,start-warning	= <95>;
65		samsung,start-tripping	= <105>;
66		samsung,hw-tripping	= <110>;
67		samsung,efuse-min-value	= <40>;
68		samsung,efuse-value	= <55>;
69		samsung,efuse-max-value	= <100>;
70		samsung,slope		= <274761730>;
71		samsung,dc-value	= <25>;
72	};
73
74	/* MAX77802 is on i2c bus 4 */
75	i2c@12CA0000 {
76		clock-frequency = <400000>;
77		power-regulator@9 {
78			compatible = "maxim,max77802-pmic";
79			reg = <0x9>;
80		};
81	};
82
83	i2c@12CD0000 { /* i2c7 */
84		clock-frequency = <100000>;
85	       soundcodec@20 {
86	              reg = <0x20>;
87	              compatible = "maxim,max98090-codec";
88	       };
89	};
90
91        sound@3830000 {
92                samsung,codec-type = "max98090";
93        };
94
95	i2c@12E10000 { /* i2c9 */
96		clock-frequency = <400000>;
97		tpm@20 {
98			compatible = "infineon,slb9645tt";
99			reg = <0x20>;
100		};
101	};
102
103	spi@12d30000 { /* spi1 */
104		spi-max-frequency = <50000000>;
105		firmware_storage_spi: flash@0 {
106			reg = <0>;
107
108			/*
109			 * A region for the kernel to store a panic event
110			 * which the firmware will add to the log.
111			*/
112			elog-panic-event-offset = <0x01e00000 0x100000>;
113
114			elog-shrink-size = <0x400>;
115			elog-full-threshold = <0xc00>;
116		};
117	};
118
119	xhci@12000000 {
120		samsung,vbus-gpio = <&gph0 0 GPIO_ACTIVE_HIGH>;
121	};
122
123	xhci@12400000 {
124		samsung,vbus-gpio = <&gph0 1 GPIO_ACTIVE_HIGH>;
125	};
126
127	fimd@14400000 {
128		samsung,vl-freq = <60>;
129		samsung,vl-col = <1920>;
130		samsung,vl-row = <1080>;
131		samsung,vl-width = <1920>;
132		samsung,vl-height = <1080>;
133
134		samsung,vl-clkp;
135		samsung,vl-dp;
136		samsung,vl-bpix = <4>;
137
138		samsung,vl-hspw = <80>;
139		samsung,vl-hbpd = <172>;
140		samsung,vl-hfpd = <60>;
141		samsung,vl-vspw = <10>;
142		samsung,vl-vbpd = <25>;
143		samsung,vl-vfpd = <10>;
144		samsung,vl-cmd-allow-len = <0xf>;
145
146		samsung,power-on-delay = <30000>;
147		samsung,winid = <3>;
148		samsung,interface-mode = <1>;
149		samsung,dp-enabled = <1>;
150		samsung,dual-lcd-enabled = <0>;
151
152		samsung,bl-en-gpio = <&gpx2 2 GPIO_ACTIVE_HIGH>;
153	};
154};
155
156&dp {
157	status = "okay";
158	samsung,color-space = <0>;
159	samsung,dynamic-range = <0>;
160	samsung,ycbcr-coeff = <0>;
161	samsung,color-depth = <1>;
162	samsung,link-rate = <0x0a>;
163	samsung,lane-count = <2>;
164	samsung,hpd-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>;
165
166	ports {
167		port {
168			dp_out: endpoint {
169				remote-endpoint = <&panel_in>;
170			};
171		};
172	};
173};
174
175&spi_2 {
176	spi-max-frequency = <3125000>;
177	spi-deactivate-delay = <200>;
178	status = "okay";
179	num-cs = <1>;
180	samsung,spi-src-clk = <0>;
181	cs-gpios = <&gpb1 2 0>;
182
183	cros_ec: cros-ec@0 {
184		compatible = "google,cros-ec-spi";
185		interrupt-parent = <&gpx1>;
186		interrupts = <5 0>;
187		reg = <0>;
188		spi-half-duplex;
189		spi-max-timeout-ms = <1100>;
190		ec-interrupt = <&gpx1 5 GPIO_ACTIVE_LOW>;
191
192		/*
193		 * This describes the flash memory within the EC. Note
194		 * that the STM32L flash erases to 0, not 0xff.
195		 */
196		#address-cells = <1>;
197		#size-cells = <1>;
198		flash@8000000 {
199			reg = <0x08000000 0x20000>;
200			erase-value = <0>;
201		};
202
203		controller-data {
204			samsung,spi-feedback-delay = <1>;
205		};
206
207		i2c_tunnel: i2c-tunnel {
208			compatible = "google,cros-ec-i2c-tunnel";
209			#address-cells = <1>;
210			#size-cells = <0>;
211			google,remote-bus = <0>;
212
213			battery: sbs-battery@b {
214				compatible = "sbs,sbs-battery";
215				reg = <0xb>;
216				sbs,poll-retry-count = <1>;
217				sbs,i2c-retry-count = <2>;
218			};
219
220			power-regulator@48 {
221				compatible = "ti,tps65090";
222				reg = <0x48>;
223
224				regulators {
225					tps65090_dcdc1: dcdc1 {
226						ti,enable-ext-control;
227					};
228					tps65090_dcdc2: dcdc2 {
229						ti,enable-ext-control;
230					};
231					tps65090_dcdc3: dcdc3 {
232						ti,enable-ext-control;
233					};
234					tps65090_fet1: fet1 {
235						regulator-name = "vcd_led";
236					};
237					tps65090_fet2: fet2 {
238						regulator-name = "video_mid";
239						regulator-always-on;
240					};
241					tps65090_fet3: fet3 {
242						regulator-name = "wwan_r";
243						regulator-always-on;
244					};
245					tps65090_fet4: fet4 {
246						regulator-name = "sdcard";
247						regulator-always-on;
248					};
249					tps65090_fet5: fet5 {
250						regulator-name = "camout";
251						regulator-always-on;
252					};
253					tps65090_fet6: fet6 {
254						regulator-name = "lcd_vdd";
255					};
256					tps65090_fet7: fet7 {
257						regulator-name = "video_mid_1a";
258						regulator-always-on;
259					};
260					tps65090_ldo1: ldo1 {
261					};
262					tps65090_ldo2: ldo2 {
263					};
264				};
265
266				charger {
267					compatible = "ti,tps65090-charger";
268				};
269			};
270		};
271	};
272};
273
274#include "cros-ec-keyboard.dtsi"
275