Linux Audio

Check our new training course

Loading...
v4.17
  1// SPDX-License-Identifier: GPL-2.0
  2/*
  3 * Samsung's Exynos4210 based Universal C210 board device tree source
  4 *
  5 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
  6 *		http://www.samsung.com
  7 *
  8 * Device tree source file for Samsung's Universal C210 board which is based on
  9 * Samsung's Exynos4210 rev0 SoC.
 10 */
 11
 12/dts-v1/;
 13#include "exynos4210.dtsi"
 14#include <dt-bindings/gpio/gpio.h>
 15
 16/ {
 17	model = "Samsung Universal C210 based on Exynos4210 rev0";
 18	compatible = "samsung,universal_c210", "samsung,exynos4210", "samsung,exynos4";
 19
 20	memory@40000000 {
 21		device_type = "memory";
 22		reg =  <0x40000000 0x10000000
 23			0x50000000 0x10000000>;
 24	};
 25
 26	chosen {
 27		bootargs = "console=ttySAC2,115200N8 root=/dev/mmcblk0p5 rw rootwait earlyprintk panic=5 maxcpus=1";
 28		stdout-path = &serial_2;
 29	};
 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	vemmc_reg: voltage-regulator {
 45	        compatible = "regulator-fixed";
 46		regulator-name = "VMEM_VDD_2_8V";
 47		regulator-min-microvolt = <2800000>;
 48		regulator-max-microvolt = <2800000>;
 49		gpio = <&gpe1 3 GPIO_ACTIVE_HIGH>;
 50		enable-active-high;
 51	};
 52
 
 
 
 
 
 53	gpio-keys {
 54		compatible = "gpio-keys";
 55
 56		vol-up-key {
 57			gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
 58			linux,code = <115>;
 59			label = "volume up";
 60			debounce-interval = <1>;
 61		};
 62
 63		vol-down-key {
 64			gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
 65			linux,code = <114>;
 66			label = "volume down";
 67			debounce-interval = <1>;
 68		};
 69
 70		config-key {
 71			gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
 72			linux,code = <171>;
 73			label = "config";
 74			debounce-interval = <1>;
 75			wakeup-source;
 76		};
 77
 78		camera-key {
 79			gpios = <&gpx2 3 GPIO_ACTIVE_LOW>;
 80			linux,code = <212>;
 81			label = "camera";
 82			debounce-interval = <1>;
 83		};
 84
 85		power-key {
 86			gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
 87			linux,code = <116>;
 88			label = "power";
 89			debounce-interval = <1>;
 90			wakeup-source;
 91		};
 92
 93		ok-key {
 94			gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
 95			linux,code = <352>;
 96			label = "ok";
 97			debounce-interval = <1>;
 98		};
 99	};
100
101	tsp_reg: voltage-regulator {
102	        compatible = "regulator-fixed";
103		regulator-name = "TSP_2_8V";
104		regulator-min-microvolt = <2800000>;
105		regulator-max-microvolt = <2800000>;
106		gpio = <&gpe2 3 GPIO_ACTIVE_HIGH>;
107		enable-active-high;
108	};
109
110	spi-lcd {
111		compatible = "spi-gpio";
112		#address-cells = <1>;
113		#size-cells = <0>;
114
115		gpio-sck = <&gpy3 1 GPIO_ACTIVE_HIGH>;
116		gpio-mosi = <&gpy3 3 GPIO_ACTIVE_HIGH>;
117		num-chipselects = <1>;
118		cs-gpios = <&gpy4 3 GPIO_ACTIVE_HIGH>;
119
120		lcd@0 {
121			compatible = "samsung,ld9040";
122			reg = <0>;
123			vdd3-supply = <&ldo7_reg>;
124			vci-supply = <&ldo17_reg>;
125			reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>;
126			spi-max-frequency = <1200000>;
127			spi-cpol;
128			spi-cpha;
129			power-on-delay = <10>;
130			reset-delay = <10>;
131			panel-width-mm = <90>;
132			panel-height-mm = <154>;
133			display-timings {
134				timing {
135					clock-frequency = <23492370>;
136					hactive = <480>;
137					vactive = <800>;
138					hback-porch = <16>;
139					hfront-porch = <16>;
140					vback-porch = <2>;
141					vfront-porch = <28>;
142					hsync-len = <2>;
143					vsync-len = <1>;
144					hsync-active = <0>;
145					vsync-active = <0>;
146					de-active = <0>;
147					pixelclk-active = <0>;
148				};
149			};
150			port {
151				lcd_ep: endpoint {
152					remote-endpoint = <&fimd_dpi_ep>;
153				};
154			};
155		};
156	};
157
158	hdmi_en: voltage-regulator-hdmi-5v {
159		compatible = "regulator-fixed";
160		regulator-name = "HDMI_5V";
161		regulator-min-microvolt = <5000000>;
162		regulator-max-microvolt = <5000000>;
163		gpio = <&gpe0 1 GPIO_ACTIVE_HIGH>;
164		enable-active-high;
165	};
166
167	hdmi_ddc: i2c-ddc {
168		compatible = "i2c-gpio";
169		gpios = <&gpe4 2 GPIO_ACTIVE_HIGH &gpe4 3 GPIO_ACTIVE_HIGH>;
 
170		i2c-gpio,delay-us = <100>;
171		#address-cells = <1>;
172		#size-cells = <0>;
173
174		pinctrl-0 = <&i2c_ddc_bus>;
175		pinctrl-names = "default";
176		status = "okay";
177	};
178};
179
180&camera {
181	status = "okay";
182
183	pinctrl-names = "default";
184	pinctrl-0 = <>;
185};
186
187&cpu0 {
188	cpu0-supply = <&vdd_arm_reg>;
189};
190
 
 
 
 
 
 
 
 
 
 
 
 
 
191&ehci {
192	status = "okay";
193	port@0 {
194		status = "okay";
195	};
196};
197
198&exynos_usbphy {
199	status = "okay";
200	vbus-supply = <&safeout1_reg>;
201};
202
203&fimc_0 {
204	status = "okay";
205	assigned-clocks = <&clock CLK_MOUT_FIMC0>,
206			  <&clock CLK_SCLK_FIMC0>;
207	assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
208	assigned-clock-rates = <0>, <160000000>;
209};
210
211&fimc_1 {
212	status = "okay";
213	assigned-clocks = <&clock CLK_MOUT_FIMC1>,
214			  <&clock CLK_SCLK_FIMC1>;
215	assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
216	assigned-clock-rates = <0>, <160000000>;
217};
218
219&fimc_2 {
220	status = "okay";
221	assigned-clocks = <&clock CLK_MOUT_FIMC2>,
222			  <&clock CLK_SCLK_FIMC2>;
223	assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
224	assigned-clock-rates = <0>, <160000000>;
225};
226
227&fimc_3 {
228	status = "okay";
229	assigned-clocks = <&clock CLK_MOUT_FIMC3>,
230			  <&clock CLK_SCLK_FIMC3>;
231	assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
232	assigned-clock-rates = <0>, <160000000>;
233};
234
235&fimd {
236	pinctrl-0 = <&lcd_clk>, <&lcd_data24>;
237	pinctrl-names = "default";
238	status = "okay";
239	samsung,invert-vden;
240	samsung,invert-vclk;
241	#address-cells = <1>;
242	#size-cells = <0>;
243	port@3 {
244		reg = <3>;
245		fimd_dpi_ep: endpoint {
246			remote-endpoint = <&lcd_ep>;
247		};
248	};
249};
250
 
 
 
 
 
251&hdmi {
252	hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
253	pinctrl-names = "default";
254	pinctrl-0 = <&hdmi_hpd>;
255	hdmi-en-supply = <&hdmi_en>;
256	vdd-supply = <&ldo3_reg>;
257	vdd_osc-supply = <&ldo4_reg>;
258	vdd_pll-supply = <&ldo3_reg>;
259	ddc = <&hdmi_ddc>;
260	status = "okay";
261};
262
263&hsotg {
264	vusb_d-supply = <&ldo3_reg>;
265	vusb_a-supply = <&ldo8_reg>;
266	dr_mode = "peripheral";
267	status = "okay";
268};
269
270&i2c_3 {
271	samsung,i2c-sda-delay = <100>;
272	samsung,i2c-slave-addr = <0x10>;
273	samsung,i2c-max-bus-freq = <100000>;
274	pinctrl-0 = <&i2c3_bus>;
275	pinctrl-names = "default";
276	status = "okay";
277
278	tsp@4a {
279		/* TBD: Atmel maXtouch touchscreen */
280		reg = <0x4a>;
281	};
282};
283
284&i2c_5 {
285	samsung,i2c-sda-delay = <100>;
286	samsung,i2c-slave-addr = <0x10>;
287	samsung,i2c-max-bus-freq = <100000>;
288	pinctrl-0 = <&i2c5_bus>;
289	pinctrl-names = "default";
290	status = "okay";
291
292	vdd_arm_reg: pmic@60 {
293		compatible = "maxim,max8952";
294		reg = <0x60>;
295
296		max8952,vid-gpios = <&gpx0 3 GPIO_ACTIVE_HIGH>,
297				    <&gpx0 4 GPIO_ACTIVE_HIGH>;
298		max8952,default-mode = <0>;
299		max8952,dvs-mode-microvolt = <1250000>, <1200000>,
300						<1050000>, <950000>;
301		max8952,sync-freq = <0>;
302		max8952,ramp-speed = <0>;
303
304		regulator-name = "vdd_arm";
305		regulator-min-microvolt = <770000>;
306		regulator-max-microvolt = <1400000>;
307		regulator-always-on;
308		regulator-boot-on;
309	};
310
311	pmic@66 {
312		compatible = "national,lp3974";
 
 
 
313		reg = <0x66>;
314
315		max8998,pmic-buck1-default-dvs-idx = <0>;
316		max8998,pmic-buck1-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
317						<&gpx0 6 GPIO_ACTIVE_HIGH>;
318		max8998,pmic-buck1-dvs-voltage = <1100000>, <1000000>,
319						<1100000>, <1000000>;
320
321		max8998,pmic-buck2-default-dvs-idx = <0>;
322		max8998,pmic-buck2-dvs-gpio = <&gpe2 0 GPIO_ACTIVE_HIGH>;
323		max8998,pmic-buck2-dvs-voltage = <1200000>, <1100000>;
324
325		regulators {
326			ldo2_reg: LDO2 {
327				regulator-name = "VALIVE_1.2V";
328				regulator-min-microvolt = <1200000>;
329				regulator-max-microvolt = <1200000>;
330				regulator-always-on;
331			};
332
333			ldo3_reg: LDO3 {
334				regulator-name = "VUSB+MIPI_1.1V";
335				regulator-min-microvolt = <1100000>;
336				regulator-max-microvolt = <1100000>;
337				regulator-always-on;
338			};
339
340			ldo4_reg: LDO4 {
341				regulator-name = "VADC_3.3V";
342				regulator-min-microvolt = <3300000>;
343				regulator-max-microvolt = <3300000>;
344			};
345
346			ldo5_reg: LDO5 {
347				regulator-name = "VTF_2.8V";
348				regulator-min-microvolt = <2800000>;
349				regulator-max-microvolt = <2800000>;
350			};
351
352			ldo6_reg: LDO6 {
353				regulator-name = "LDO6";
354				regulator-min-microvolt = <2000000>;
355				regulator-max-microvolt = <2000000>;
356			};
357
358			ldo7_reg: LDO7 {
359				regulator-name = "VLCD+VMIPI_1.8V";
360				regulator-min-microvolt = <1800000>;
361				regulator-max-microvolt = <1800000>;
362			};
363
364			ldo8_reg: LDO8 {
365				regulator-name = "VUSB+VDAC_3.3V";
366				regulator-min-microvolt = <3300000>;
367				regulator-max-microvolt = <3300000>;
368				regulator-always-on;
369			};
370
371			ldo9_reg: LDO9 {
372				regulator-name = "VCC_2.8V";
373				regulator-min-microvolt = <2800000>;
374				regulator-max-microvolt = <2800000>;
375				regulator-always-on;
376			};
377
378			ldo10_reg: LDO10 {
379				regulator-name = "VPLL_1.1V";
380				regulator-min-microvolt = <1100000>;
381				regulator-max-microvolt = <1100000>;
382				regulator-boot-on;
383				regulator-always-on;
384			};
385
386			ldo11_reg: LDO11 {
387				regulator-name = "CAM_AF_3.3V";
388				regulator-min-microvolt = <3300000>;
389				regulator-max-microvolt = <3300000>;
390			};
391
392			ldo12_reg: LDO12 {
393				regulator-name = "PS_2.8V";
394				regulator-min-microvolt = <2800000>;
395				regulator-max-microvolt = <2800000>;
396			};
397
398			ldo13_reg: LDO13 {
399				regulator-name = "VHIC_1.2V";
400				regulator-min-microvolt = <1200000>;
401				regulator-max-microvolt = <1200000>;
402			};
403
404			ldo14_reg: LDO14 {
405				regulator-name = "CAM_I_HOST_1.8V";
406				regulator-min-microvolt = <1800000>;
407				regulator-max-microvolt = <1800000>;
408			};
409
410			ldo15_reg: LDO15 {
411				regulator-name = "CAM_S_DIG+FM33_CORE_1.2V";
412				regulator-min-microvolt = <1200000>;
413				regulator-max-microvolt = <1200000>;
414			};
415
416			ldo16_reg: LDO16 {
417				regulator-name = "CAM_S_ANA_2.8V";
418				regulator-min-microvolt = <2800000>;
419				regulator-max-microvolt = <2800000>;
420			};
421
422			ldo17_reg: LDO17 {
423				regulator-name = "VCC_3.0V_LCD";
424				regulator-min-microvolt = <3000000>;
425				regulator-max-microvolt = <3000000>;
426			};
427
428			buck1_reg: BUCK1 {
429				regulator-name = "VINT_1.1V";
430				regulator-min-microvolt = <750000>;
431				regulator-max-microvolt = <1500000>;
432				regulator-boot-on;
433				regulator-always-on;
434			};
435
436			buck2_reg: BUCK2 {
437				regulator-name = "VG3D_1.1V";
438				regulator-min-microvolt = <750000>;
439				regulator-max-microvolt = <1500000>;
440				regulator-boot-on;
441			};
442
443			buck3_reg: BUCK3 {
444				regulator-name = "VCC_1.8V";
445				regulator-min-microvolt = <1800000>;
446				regulator-max-microvolt = <1800000>;
447				regulator-always-on;
448			};
449
450			buck4_reg: BUCK4 {
451				regulator-name = "VMEM_1.2V";
452				regulator-min-microvolt = <1200000>;
453				regulator-max-microvolt = <1200000>;
454				regulator-always-on;
455			};
456
457			ap32khz_reg: EN32KHz-AP {
458				regulator-name = "32KHz AP";
459				regulator-always-on;
460			};
461
462			cp32khz_reg: EN32KHz-CP {
463				regulator-name = "32KHz CP";
464			};
465
466			vichg_reg: ENVICHG {
467				regulator-name = "VICHG";
468			};
469
470			safeout1_reg: ESAFEOUT1 {
471				regulator-name = "SAFEOUT1";
472			};
473
474			safeout2_reg: ESAFEOUT2 {
475				regulator-name = "SAFEOUT2";
476				regulator-boot-on;
477			};
478		};
479	};
480};
481
482&i2c_8 {
483	status = "okay";
484};
485
486&mct {
487	compatible = "none";
488};
489
490&mdma1 {
491	reg = <0x12840000 0x1000>;
 
492};
493
494&mixer {
495	status = "okay";
496};
497
498&ohci {
499	status = "okay";
500	port@0 {
501		status = "okay";
502	};
503};
504
505&pinctrl_1 {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
506	hdmi_hpd: hdmi-hpd {
507		samsung,pins = "gpx3-7";
508		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
509	};
510};
511
512&pinctrl_0 {
513	i2c_ddc_bus: i2c-ddc-bus {
514		samsung,pins = "gpe4-2", "gpe4-3";
515		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
516		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
517		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
518	};
519};
520
521&pwm {
522	compatible = "samsung,s5p6440-pwm";
523	status = "okay";
524};
525
 
 
 
 
 
 
526&sdhci_0 {
527	bus-width = <8>;
528	non-removable;
529	pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus8>;
530	pinctrl-names = "default";
531	vmmc-supply = <&vemmc_reg>;
532	status = "okay";
533};
534
535&sdhci_2 {
536	bus-width = <4>;
537	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
538	pinctrl-names = "default";
539	vmmc-supply = <&ldo5_reg>;
540	cd-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
541	cd-inverted;
542	status = "okay";
543};
544
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545&serial_0 {
546	status = "okay";
547	/delete-property/dmas;
548	/delete-property/dma-names;
 
 
 
 
 
 
 
 
 
 
 
549};
550
551&serial_1 {
552	status = "okay";
553	/delete-property/dmas;
554	/delete-property/dma-names;
555};
556
557&serial_2 {
558	status = "okay";
559	/delete-property/dmas;
560	/delete-property/dma-names;
561};
562
563&serial_3 {
564	status = "okay";
565	/delete-property/dmas;
566	/delete-property/dma-names;
567};
568
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569&sysram {
570	smp-sysram@0 {
571		status = "disabled";
572	};
573
574	smp-sysram@5000 {
575		compatible = "samsung,exynos4210-sysram";
576		reg = <0x5000 0x1000>;
577	};
578
579	smp-sysram@1f000 {
580		status = "disabled";
581	};
582};
v5.14.15
  1// SPDX-License-Identifier: GPL-2.0
  2/*
  3 * Samsung's Exynos4210 based Universal C210 board device tree source
  4 *
  5 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
  6 *		http://www.samsung.com
  7 *
  8 * Device tree source file for Samsung's Universal C210 board which is based on
  9 * Samsung's Exynos4210 rev0 SoC.
 10 */
 11
 12/dts-v1/;
 13#include "exynos4210.dtsi"
 14#include <dt-bindings/gpio/gpio.h>
 15
 16/ {
 17	model = "Samsung Universal C210 based on Exynos4210 rev0";
 18	compatible = "samsung,universal_c210", "samsung,exynos4210", "samsung,exynos4";
 19
 20	memory@40000000 {
 21		device_type = "memory";
 22		reg =  <0x40000000 0x10000000
 23			0x50000000 0x10000000>;
 24	};
 25
 26	chosen {
 27		bootargs = "root=/dev/mmcblk0p5 rw rootwait earlyprintk panic=5 maxcpus=1";
 28		stdout-path = "serial2:115200n8";
 29	};
 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		pmic_ap_clk: pmic-ap-clk {
 44			/* Workaround for missing clock on PMIC */
 45			compatible = "fixed-clock";
 46			#clock-cells = <0>;
 47			clock-frequency = <32768>;
 48		};
 49	};
 50
 51	vemmc_reg: voltage-regulator {
 52		compatible = "regulator-fixed";
 53		regulator-name = "VMEM_VDD_2_8V";
 54		regulator-min-microvolt = <2800000>;
 55		regulator-max-microvolt = <2800000>;
 56		gpio = <&gpe1 3 GPIO_ACTIVE_HIGH>;
 57		enable-active-high;
 58	};
 59
 60	wlan_pwrseq: sdhci3-pwrseq {
 61		compatible = "mmc-pwrseq-simple";
 62		reset-gpios = <&gpe3 1 GPIO_ACTIVE_LOW>;
 63	};
 64
 65	gpio-keys {
 66		compatible = "gpio-keys";
 67
 68		vol-up-key {
 69			gpios = <&gpx2 0 GPIO_ACTIVE_LOW>;
 70			linux,code = <115>;
 71			label = "volume up";
 72			debounce-interval = <1>;
 73		};
 74
 75		vol-down-key {
 76			gpios = <&gpx2 1 GPIO_ACTIVE_LOW>;
 77			linux,code = <114>;
 78			label = "volume down";
 79			debounce-interval = <1>;
 80		};
 81
 82		config-key {
 83			gpios = <&gpx2 2 GPIO_ACTIVE_LOW>;
 84			linux,code = <171>;
 85			label = "config";
 86			debounce-interval = <1>;
 87			wakeup-source;
 88		};
 89
 90		camera-key {
 91			gpios = <&gpx2 3 GPIO_ACTIVE_LOW>;
 92			linux,code = <212>;
 93			label = "camera";
 94			debounce-interval = <1>;
 95		};
 96
 97		power-key {
 98			gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
 99			linux,code = <116>;
100			label = "power";
101			debounce-interval = <1>;
102			wakeup-source;
103		};
104
105		ok-key {
106			gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
107			linux,code = <352>;
108			label = "ok";
109			debounce-interval = <1>;
110		};
111	};
112
113	tsp_reg: voltage-regulator {
114		compatible = "regulator-fixed";
115		regulator-name = "TSP_2_8V";
116		regulator-min-microvolt = <2800000>;
117		regulator-max-microvolt = <2800000>;
118		gpio = <&gpe2 3 GPIO_ACTIVE_HIGH>;
119		enable-active-high;
120	};
121
122	spi-3 {
123		compatible = "spi-gpio";
124		#address-cells = <1>;
125		#size-cells = <0>;
126
127		sck-gpios = <&gpy3 1 GPIO_ACTIVE_HIGH>;
128		mosi-gpios = <&gpy3 3 GPIO_ACTIVE_HIGH>;
129		num-chipselects = <1>;
130		cs-gpios = <&gpy4 3 GPIO_ACTIVE_LOW>;
131
132		lcd@0 {
133			compatible = "samsung,ld9040";
134			reg = <0>;
135			vdd3-supply = <&ldo7_reg>;
136			vci-supply = <&ldo17_reg>;
137			reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>;
138			spi-max-frequency = <1200000>;
 
 
139			power-on-delay = <10>;
140			reset-delay = <10>;
141			panel-width-mm = <90>;
142			panel-height-mm = <154>;
143			display-timings {
144				timing {
145					clock-frequency = <23492370>;
146					hactive = <480>;
147					vactive = <800>;
148					hback-porch = <16>;
149					hfront-porch = <16>;
150					vback-porch = <2>;
151					vfront-porch = <28>;
152					hsync-len = <2>;
153					vsync-len = <1>;
154					hsync-active = <0>;
155					vsync-active = <0>;
156					de-active = <0>;
157					pixelclk-active = <0>;
158				};
159			};
160			port {
161				lcd_ep: endpoint {
162					remote-endpoint = <&fimd_dpi_ep>;
163				};
164			};
165		};
166	};
167
168	hdmi_en: voltage-regulator-hdmi-5v {
169		compatible = "regulator-fixed";
170		regulator-name = "HDMI_5V";
171		regulator-min-microvolt = <5000000>;
172		regulator-max-microvolt = <5000000>;
173		gpio = <&gpe0 1 GPIO_ACTIVE_HIGH>;
174		enable-active-high;
175	};
176
177	hdmi_ddc: i2c-ddc {
178		compatible = "i2c-gpio";
179		sda-gpios = <&gpe4 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
180		scl-gpios = <&gpe4 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
181		i2c-gpio,delay-us = <100>;
182		#address-cells = <1>;
183		#size-cells = <0>;
184
185		pinctrl-0 = <&i2c_ddc_bus>;
186		pinctrl-names = "default";
187		status = "okay";
188	};
189};
190
191&camera {
192	status = "okay";
193
194	pinctrl-names = "default";
195	pinctrl-0 = <>;
196};
197
198&cpu0 {
199	cpu0-supply = <&vdd_arm_reg>;
200};
201
202&cpu_thermal {
203	cooling-maps {
204		map0 {
205			/* Corresponds to 800MHz */
206			cooling-device = <&cpu0 2 2>;
207		};
208		map1 {
209			/* Corresponds to 200MHz */
210			cooling-device = <&cpu0 4 4>;
211		};
212	};
213};
214
215&ehci {
216	status = "okay";
217	phys = <&exynos_usbphy 1>;
218	phy-names = "host";
 
219};
220
221&exynos_usbphy {
222	status = "okay";
223	vbus-supply = <&safeout1_reg>;
224};
225
226&fimc_0 {
227	status = "okay";
228	assigned-clocks = <&clock CLK_MOUT_FIMC0>,
229			  <&clock CLK_SCLK_FIMC0>;
230	assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
231	assigned-clock-rates = <0>, <160000000>;
232};
233
234&fimc_1 {
235	status = "okay";
236	assigned-clocks = <&clock CLK_MOUT_FIMC1>,
237			  <&clock CLK_SCLK_FIMC1>;
238	assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
239	assigned-clock-rates = <0>, <160000000>;
240};
241
242&fimc_2 {
243	status = "okay";
244	assigned-clocks = <&clock CLK_MOUT_FIMC2>,
245			  <&clock CLK_SCLK_FIMC2>;
246	assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
247	assigned-clock-rates = <0>, <160000000>;
248};
249
250&fimc_3 {
251	status = "okay";
252	assigned-clocks = <&clock CLK_MOUT_FIMC3>,
253			  <&clock CLK_SCLK_FIMC3>;
254	assigned-clock-parents = <&clock CLK_SCLK_MPLL>;
255	assigned-clock-rates = <0>, <160000000>;
256};
257
258&fimd {
259	pinctrl-0 = <&lcd_clk>, <&lcd_data24>;
260	pinctrl-names = "default";
261	status = "okay";
262	samsung,invert-vden;
263	samsung,invert-vclk;
264	#address-cells = <1>;
265	#size-cells = <0>;
266	port@3 {
267		reg = <3>;
268		fimd_dpi_ep: endpoint {
269			remote-endpoint = <&lcd_ep>;
270		};
271	};
272};
273
274&gpu {
275	mali-supply = <&buck2_reg>;
276	status = "okay";
277};
278
279&hdmi {
280	hpd-gpios = <&gpx3 7 GPIO_ACTIVE_HIGH>;
281	pinctrl-names = "default";
282	pinctrl-0 = <&hdmi_hpd>;
283	hdmi-en-supply = <&hdmi_en>;
284	vdd-supply = <&ldo3_reg>;
285	vdd_osc-supply = <&ldo4_reg>;
286	vdd_pll-supply = <&ldo3_reg>;
287	ddc = <&hdmi_ddc>;
288	status = "okay";
289};
290
291&hsotg {
292	vusb_d-supply = <&ldo3_reg>;
293	vusb_a-supply = <&ldo8_reg>;
294	dr_mode = "peripheral";
295	status = "okay";
296};
297
298&i2c_3 {
299	samsung,i2c-sda-delay = <100>;
300	samsung,i2c-slave-addr = <0x10>;
301	samsung,i2c-max-bus-freq = <100000>;
302	pinctrl-0 = <&i2c3_bus>;
303	pinctrl-names = "default";
304	status = "okay";
305
306	tsp@4a {
307		/* TBD: Atmel maXtouch touchscreen */
308		reg = <0x4a>;
309	};
310};
311
312&i2c_5 {
313	samsung,i2c-sda-delay = <100>;
314	samsung,i2c-slave-addr = <0x10>;
315	samsung,i2c-max-bus-freq = <100000>;
316	pinctrl-0 = <&i2c5_bus>;
317	pinctrl-names = "default";
318	status = "okay";
319
320	vdd_arm_reg: pmic@60 {
321		compatible = "maxim,max8952";
322		reg = <0x60>;
323
324		max8952,vid-gpios = <&gpx0 3 GPIO_ACTIVE_HIGH>,
325				    <&gpx0 4 GPIO_ACTIVE_HIGH>;
326		max8952,default-mode = <0>;
327		max8952,dvs-mode-microvolt = <1250000>, <1200000>,
328						<1050000>, <950000>;
329		max8952,sync-freq = <0>;
330		max8952,ramp-speed = <0>;
331
332		regulator-name = "VARM_1.2V_C210";
333		regulator-min-microvolt = <770000>;
334		regulator-max-microvolt = <1400000>;
335		regulator-always-on;
336		regulator-boot-on;
337	};
338
339	pmic@66 {
340		compatible = "national,lp3974";
341		interrupts-extended = <&gpx0 7 0>, <&gpx2 7 0>;
342		pinctrl-names = "default";
343		pinctrl-0 = <&lp3974_irq>;
344		reg = <0x66>;
345
346		max8998,pmic-buck1-default-dvs-idx = <0>;
347		max8998,pmic-buck1-dvs-gpios = <&gpx0 5 GPIO_ACTIVE_HIGH>,
348						<&gpx0 6 GPIO_ACTIVE_HIGH>;
349		max8998,pmic-buck1-dvs-voltage = <1100000>, <1000000>,
350						<1100000>, <1000000>;
351
352		max8998,pmic-buck2-default-dvs-idx = <0>;
353		max8998,pmic-buck2-dvs-gpio = <&gpe2 0 GPIO_ACTIVE_HIGH>;
354		max8998,pmic-buck2-dvs-voltage = <1200000>, <1100000>;
355
356		regulators {
357			ldo2_reg: LDO2 {
358				regulator-name = "VALIVE_1.2V";
359				regulator-min-microvolt = <1200000>;
360				regulator-max-microvolt = <1200000>;
361				regulator-always-on;
362			};
363
364			ldo3_reg: LDO3 {
365				regulator-name = "VUSB+MIPI_1.1V";
366				regulator-min-microvolt = <1100000>;
367				regulator-max-microvolt = <1100000>;
368				regulator-always-on;
369			};
370
371			ldo4_reg: LDO4 {
372				regulator-name = "VADC_3.3V";
373				regulator-min-microvolt = <3300000>;
374				regulator-max-microvolt = <3300000>;
375			};
376
377			ldo5_reg: LDO5 {
378				regulator-name = "VTF_2.8V";
379				regulator-min-microvolt = <2800000>;
380				regulator-max-microvolt = <2800000>;
381			};
382
383			ldo6_reg: LDO6 {
384				regulator-name = "LDO6";
385				regulator-min-microvolt = <2000000>;
386				regulator-max-microvolt = <2000000>;
387			};
388
389			ldo7_reg: LDO7 {
390				regulator-name = "VLCD+VMIPI_1.8V";
391				regulator-min-microvolt = <1800000>;
392				regulator-max-microvolt = <1800000>;
393			};
394
395			ldo8_reg: LDO8 {
396				regulator-name = "VUSB+VDAC_3.3V";
397				regulator-min-microvolt = <3300000>;
398				regulator-max-microvolt = <3300000>;
399				regulator-always-on;
400			};
401
402			ldo9_reg: LDO9 {
403				regulator-name = "VCC_2.8V";
404				regulator-min-microvolt = <2800000>;
405				regulator-max-microvolt = <2800000>;
406				regulator-always-on;
407			};
408
409			ldo10_reg: LDO10 {
410				regulator-name = "VPLL_1.1V";
411				regulator-min-microvolt = <1100000>;
412				regulator-max-microvolt = <1100000>;
413				regulator-boot-on;
414				regulator-always-on;
415			};
416
417			ldo11_reg: LDO11 {
418				regulator-name = "CAM_AF_3.3V";
419				regulator-min-microvolt = <3300000>;
420				regulator-max-microvolt = <3300000>;
421			};
422
423			ldo12_reg: LDO12 {
424				regulator-name = "PS_2.8V";
425				regulator-min-microvolt = <2800000>;
426				regulator-max-microvolt = <2800000>;
427			};
428
429			ldo13_reg: LDO13 {
430				regulator-name = "VHIC_1.2V";
431				regulator-min-microvolt = <1200000>;
432				regulator-max-microvolt = <1200000>;
433			};
434
435			ldo14_reg: LDO14 {
436				regulator-name = "CAM_I_HOST_1.8V";
437				regulator-min-microvolt = <1800000>;
438				regulator-max-microvolt = <1800000>;
439			};
440
441			ldo15_reg: LDO15 {
442				regulator-name = "CAM_S_DIG+FM33_CORE_1.2V";
443				regulator-min-microvolt = <1200000>;
444				regulator-max-microvolt = <1200000>;
445			};
446
447			ldo16_reg: LDO16 {
448				regulator-name = "CAM_S_ANA_2.8V";
449				regulator-min-microvolt = <2800000>;
450				regulator-max-microvolt = <2800000>;
451			};
452
453			ldo17_reg: LDO17 {
454				regulator-name = "VCC_3.0V_LCD";
455				regulator-min-microvolt = <3000000>;
456				regulator-max-microvolt = <3000000>;
457			};
458
459			buck1_reg: BUCK1 {
460				regulator-name = "VINT_1.1V";
461				regulator-min-microvolt = <750000>;
462				regulator-max-microvolt = <1500000>;
463				regulator-boot-on;
464				regulator-always-on;
465			};
466
467			buck2_reg: BUCK2 {
468				regulator-name = "VG3D_1.1V";
469				regulator-min-microvolt = <750000>;
470				regulator-max-microvolt = <1500000>;
471				regulator-boot-on;
472			};
473
474			buck3_reg: BUCK3 {
475				regulator-name = "VCC_1.8V";
476				regulator-min-microvolt = <1800000>;
477				regulator-max-microvolt = <1800000>;
478				regulator-always-on;
479			};
480
481			buck4_reg: BUCK4 {
482				regulator-name = "VMEM_1.2V";
483				regulator-min-microvolt = <1200000>;
484				regulator-max-microvolt = <1200000>;
485				regulator-always-on;
486			};
487
488			ap32khz_reg: EN32KHz-AP {
489				regulator-name = "32KHz AP";
490				regulator-always-on;
491			};
492
493			cp32khz_reg: EN32KHz-CP {
494				regulator-name = "32KHz CP";
495			};
496
497			vichg_reg: ENVICHG {
498				regulator-name = "VICHG";
499			};
500
501			safeout1_reg: ESAFEOUT1 {
502				regulator-name = "SAFEOUT1";
503			};
504
505			safeout2_reg: ESAFEOUT2 {
506				regulator-name = "SAFEOUT2";
507				regulator-boot-on;
508			};
509		};
510	};
511};
512
513&i2c_8 {
514	status = "okay";
515};
516
517&mct {
518	compatible = "none";
519};
520
521&mdma1 {
522	/* Use the secure mdma0 */
523	status = "disabled";
524};
525
526&mixer {
527	status = "okay";
528};
529
530&ohci {
531	status = "okay";
 
 
 
532};
533
534&pinctrl_1 {
535	bt_shutdown: bt-shutdown {
536		samsung,pins = "gpe1-4";
537		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
538		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
539	};
540
541	bt_host_wakeup: bt-host-wakeup {
542		samsung,pins = "gpx2-6";
543		samsung,pin-function = <EXYNOS_PIN_FUNC_INPUT>;
544		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
545	};
546
547	bt_device_wakeup: bt-device-wakeup {
548		samsung,pins = "gpx3-1";
549		samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
550		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
551	};
552
553	lp3974_irq: lp3974-irq {
554		samsung,pins = "gpx0-7", "gpx2-7";
555		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
556	};
557
558	hdmi_hpd: hdmi-hpd {
559		samsung,pins = "gpx3-7";
560		samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
561	};
562};
563
564&pinctrl_0 {
565	i2c_ddc_bus: i2c-ddc-bus {
566		samsung,pins = "gpe4-2", "gpe4-3";
567		samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
568		samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
569		samsung,pin-drv = <EXYNOS4_PIN_DRV_LV1>;
570	};
571};
572
573&pwm {
574	compatible = "samsung,s5p6440-pwm";
575	status = "okay";
576};
577
578&rtc {
579	status = "okay";
580	clocks = <&clock CLK_RTC>, <&pmic_ap_clk>;
581	clock-names = "rtc", "rtc_src";
582};
583
584&sdhci_0 {
585	bus-width = <8>;
586	non-removable;
587	pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus8>;
588	pinctrl-names = "default";
589	vmmc-supply = <&vemmc_reg>;
590	status = "okay";
591};
592
593&sdhci_2 {
594	bus-width = <4>;
595	pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4>;
596	pinctrl-names = "default";
597	vmmc-supply = <&ldo5_reg>;
598	cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
 
599	status = "okay";
600};
601
602&sdhci_3 {
603	status = "okay";
604
605	#address-cells = <1>;
606	#size-cells = <0>;
607
608	non-removable;
609	bus-width = <4>;
610	mmc-pwrseq = <&wlan_pwrseq>;
611	vmmc-supply = <&ldo5_reg>;
612
613	pinctrl-names = "default";
614	pinctrl-0 = <&sd3_clk>, <&sd3_cmd>, <&sd3_bus4>;
615
616	brcmf: wifi@1 {
617		compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
618		reg = <1>;
619		interrupt-parent = <&gpx2>;
620		interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
621		interrupt-names = "host-wake";
622	};
623};
624
625&serial_0 {
626	status = "okay";
627	/delete-property/dmas;
628	/delete-property/dma-names;
629	pinctrl-0 = <&uart0_data &uart0_fctl>;
630	pinctrl-names = "default";
631
632	bluetooth {
633		compatible = "brcm,bcm4330-bt";
634		pinctrl-0 = <&bt_shutdown &bt_device_wakeup &bt_host_wakeup>;
635		pinctrl-names = "default";
636		shutdown-gpios = <&gpe1 4 GPIO_ACTIVE_HIGH>;
637		device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>;
638		host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
639	};
640};
641
642&serial_1 {
643	status = "okay";
644	/delete-property/dmas;
645	/delete-property/dma-names;
646};
647
648&serial_2 {
649	status = "okay";
650	/delete-property/dmas;
651	/delete-property/dma-names;
652};
653
654&serial_3 {
655	status = "okay";
656	/delete-property/dmas;
657	/delete-property/dma-names;
658};
659
660&soc {
661	mdma0: mdma@12840000 {
662		compatible = "arm,pl330", "arm,primecell";
663		reg = <0x12840000 0x1000>;
664		interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
665		clocks = <&clock CLK_MDMA>;
666		clock-names = "apb_pclk";
667		#dma-cells = <1>;
668		#dma-channels = <8>;
669		#dma-requests = <1>;
670		power-domains = <&pd_lcd0>;
671	};
672};
673
674&sysram {
675	smp-sram@0 {
676		status = "disabled";
677	};
678
679	smp-sram@5000 {
680		compatible = "samsung,exynos4210-sysram";
681		reg = <0x5000 0x1000>;
682	};
683
684	smp-sram@1f000 {
685		status = "disabled";
686	};
687};