Linux Audio

Check our new training course

Loading...
v4.17
  1// SPDX-License-Identifier: GPL-2.0
  2/*
  3 * Samsung's Exynos3250 based Rinato board device tree source
  4 *
  5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
  6 *		http://www.samsung.com
  7 *
  8 * Device tree source file for Samsung's Rinato board which is based on
  9 * Samsung Exynos3250 SoC.
 10 */
 11
 12/dts-v1/;
 13#include "exynos3250.dtsi"
 14#include "exynos4412-ppmu-common.dtsi"
 15#include <dt-bindings/input/input.h>
 16#include <dt-bindings/gpio/gpio.h>
 17#include <dt-bindings/clock/samsung,s2mps11.h>
 18
 19/ {
 20	model = "Samsung Rinato board";
 21	compatible = "samsung,rinato", "samsung,exynos3250", "samsung,exynos3";
 22
 23	aliases {
 24		i2c7 = &i2c_max77836;
 25	};
 26
 
 
 
 
 27	memory@40000000 {
 28		device_type = "memory";
 29		reg =  <0x40000000 0x1ff00000>;
 30	};
 31
 32	firmware@205f000 {
 33		compatible = "samsung,secure-firmware";
 34		reg = <0x0205F000 0x1000>;
 35	};
 36
 37	gpio_keys {
 38		compatible = "gpio-keys";
 39
 40		power_key {
 41			gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
 42			linux,code = <KEY_POWER>;
 43			label = "power key";
 44			debounce-interval = <10>;
 45			wakeup-source;
 46		};
 47	};
 48
 
 
 
 
 
 49	i2c_max77836: i2c-gpio-0 {
 50		compatible = "i2c-gpio";
 51		gpios = <&gpd0 2 GPIO_ACTIVE_HIGH>, <&gpd0 3 GPIO_ACTIVE_HIGH>;
 
 52		#address-cells = <1>;
 53		#size-cells = <0>;
 54
 55		max77836: subpmic@25 {
 56			compatible = "maxim,max77836";
 57			interrupt-parent = <&gpx1>;
 58			interrupts = <5 IRQ_TYPE_NONE>;
 59			reg = <0x25>;
 60			wakeup-source;
 61
 62			muic: max77836-muic {
 63				compatible = "maxim,max77836-muic";
 64			};
 65
 66			regulators {
 67				compatible = "maxim,max77836-regulator";
 68				safeout_reg: SAFEOUT {
 69					regulator-name = "SAFEOUT";
 70				};
 71
 72				charger_reg: CHARGER {
 73					regulator-name = "CHARGER";
 74					regulator-min-microamp = <45000>;
 75					regulator-max-microamp = <475000>;
 76					regulator-boot-on;
 77				};
 78
 79				motor_reg: LDO1 {
 80					regulator-name = "MOT_2.7V";
 81					regulator-min-microvolt = <1100000>;
 82					regulator-max-microvolt = <2700000>;
 83				};
 84
 85				LDO2 {
 86					regulator-name = "UNUSED_LDO2";
 87					regulator-min-microvolt = <800000>;
 88					regulator-max-microvolt = <3950000>;
 89				};
 90			};
 91
 92			charger {
 93				compatible = "maxim,max77836-charger";
 94
 95				maxim,constant-uvolt = <4350000>;
 96				maxim,fast-charge-uamp = <225000>;
 97				maxim,eoc-uamp = <7500>;
 98				maxim,ovp-uvolt = <6500000>;
 99			};
100		};
101	};
102
103	haptics {
104		compatible = "regulator-haptic";
105		haptic-supply = <&motor_reg>;
106		min-microvolt = <1100000>;
107		max-microvolt = <2700000>;
108	};
109
110	thermal-zones {
111		cpu_thermal: cpu-thermal {
112			cooling-maps {
113				map0 {
114					/* Corresponds to 500MHz */
115					cooling-device = <&cpu0 5 5>;
 
116				};
117				map1 {
118					/* Corresponds to 200MHz */
119					cooling-device = <&cpu0 8 8>;
 
120				};
121			};
122		};
123	};
124};
125
126&adc {
127	vdd-supply = <&ldo3_reg>;
128	status = "okay";
129	assigned-clocks = <&cmu CLK_SCLK_TSADC>;
130	assigned-clock-rates = <6000000>;
131
132	thermistor-ap {
133		compatible = "ntc,ncp15wb473";
134		pullup-uv = <1800000>;
135		pullup-ohm = <100000>;
136		pulldown-ohm = <100000>;
137		io-channels = <&adc 0>;
138	};
139
140	thermistor-battery {
141		compatible = "ntc,ncp15wb473";
142		pullup-uv = <1800000>;
143		pullup-ohm = <100000>;
144		pulldown-ohm = <100000>;
145		io-channels = <&adc 1>;
146	};
147};
148
149&bus_dmc {
150	devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
151	vdd-supply = <&buck1_reg>;
152	status = "okay";
153};
154
155&bus_leftbus {
156	devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
157	vdd-supply = <&buck3_reg>;
158	status = "okay";
159};
160
161&bus_rightbus {
162	devfreq = <&bus_leftbus>;
163	status = "okay";
164};
165
166&bus_lcd0 {
167	devfreq = <&bus_leftbus>;
168	status = "okay";
169};
170
171&bus_fsys {
172	devfreq = <&bus_leftbus>;
173	status = "okay";
174};
175
176&bus_mcuisp {
177	devfreq = <&bus_leftbus>;
178	status = "okay";
179};
180
181&bus_isp {
182	devfreq = <&bus_leftbus>;
183	status = "okay";
184};
185
186&bus_peril {
187	devfreq = <&bus_leftbus>;
188	status = "okay";
189};
190
191&bus_mfc {
192	devfreq = <&bus_leftbus>;
193	status = "okay";
194};
195
 
 
 
 
196&cpu0 {
197	cpu0-supply = <&buck2_reg>;
198};
199
200&exynos_usbphy {
201	status = "okay";
202	vbus-supply = <&safeout_reg>;
203};
204
205&hsotg {
206	vusb_d-supply = <&ldo15_reg>;
207	vusb_a-supply = <&ldo12_reg>;
208	dr_mode = "peripheral";
209	status = "okay";
210};
211
212&dsi_0 {
213	vddcore-supply = <&ldo6_reg>;
214	vddio-supply = <&ldo6_reg>;
215	samsung,burst-clock-frequency = <250000000>;
216	samsung,esc-clock-frequency = <20000000>;
217	samsung,pll-clock-frequency = <24000000>;
218	status = "okay";
219
220	panel@0 {
221		compatible = "samsung,s6e63j0x03";
222		reg = <0>;
223		vdd3-supply = <&ldo16_reg>;
224		vci-supply = <&ldo20_reg>;
225		reset-gpios = <&gpe0 1 GPIO_ACTIVE_LOW>;
226		te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
227	};
228};
229
230&fimd {
231	status = "okay";
232
233	i80-if-timings {
234		cs-setup = <0>;
235		wr-setup = <0>;
236		wr-act = <1>;
237		wr-hold = <0>;
238	};
239};
240
 
 
 
 
 
241&i2c_0 {
242	#address-cells = <1>;
243	#size-cells = <0>;
244	samsung,i2c-sda-delay = <100>;
245	samsung,i2c-slave-addr = <0x10>;
246	samsung,i2c-max-bus-freq = <100000>;
247	status = "okay";
248
249	s2mps14_pmic@66 {
250		compatible = "samsung,s2mps14-pmic";
251		interrupt-parent = <&gpx0>;
252		interrupts = <7 IRQ_TYPE_NONE>;
253		reg = <0x66>;
254		wakeup-source;
255
256		s2mps14_osc: clocks {
257			compatible = "samsung,s2mps14-clk";
258			#clock-cells = <1>;
259			clock-output-names = "s2mps14_ap", "unused",
260				"s2mps14_bt";
261		};
262
263		regulators {
264			ldo1_reg: LDO1 {
265				regulator-name = "VAP_ALIVE_1.0V";
266				regulator-min-microvolt = <1000000>;
267				regulator-max-microvolt = <1000000>;
268				regulator-always-on;
269
270				regulator-state-mem {
271					regulator-on-in-suspend;
272				};
273			};
274
275			ldo2_reg: LDO2 {
276				regulator-name = "VAP_M1_1.2V";
277				regulator-min-microvolt = <1200000>;
278				regulator-max-microvolt = <1200000>;
279				regulator-always-on;
280
281				regulator-state-mem {
282					regulator-off-in-suspend;
283				};
284			};
285
286			ldo3_reg: LDO3 {
287				regulator-name = "VCC_AP_1.8V";
288				regulator-min-microvolt = <1800000>;
289				regulator-max-microvolt = <1800000>;
290				regulator-always-on;
291
292				regulator-state-mem {
293					regulator-off-in-suspend;
294				};
295			};
296
297			ldo4_reg: LDO4 {
298				regulator-name = "VAP_AVDD_PLL1";
299				regulator-min-microvolt = <1800000>;
300				regulator-max-microvolt = <1800000>;
301				regulator-always-on;
302
303				regulator-state-mem {
304					regulator-off-in-suspend;
305				};
306			};
307
308			ldo5_reg: LDO5 {
309				regulator-name = "VAP_PLL_ISO_1.0V";
310				regulator-min-microvolt = <1000000>;
311				regulator-max-microvolt = <1000000>;
312				regulator-always-on;
313
314				regulator-state-mem {
315					regulator-off-in-suspend;
316				};
317			};
318
319			ldo6_reg: LDO6 {
320				regulator-name = "VAP_VMIPI_1.0V";
321				regulator-min-microvolt = <1000000>;
322				regulator-max-microvolt = <1000000>;
323				regulator-always-on;
324
325				regulator-state-mem {
326					regulator-off-in-suspend;
327				};
328			};
329
330			ldo7_reg: LDO7 {
331				regulator-name = "VAP_AVDD_1.8V";
332				regulator-min-microvolt = <1800000>;
333				regulator-max-microvolt = <1800000>;
334				regulator-always-on;
335
336				regulator-state-mem {
337					regulator-off-in-suspend;
338				};
339			};
340
341			ldo8_reg: LDO8 {
342				regulator-name = "VAP_USB_3.0V";
343				regulator-min-microvolt = <3000000>;
344				regulator-max-microvolt = <3000000>;
345				regulator-always-on;
346
347				regulator-state-mem {
348					regulator-off-in-suspend;
349				};
350			};
351
352			ldo9_reg: LDO9 {
353				regulator-name = "V_LPDDR_1.2V";
354				regulator-min-microvolt = <1200000>;
355				regulator-max-microvolt = <1200000>;
356				regulator-always-on;
357
358				regulator-state-mem {
359					regulator-on-in-suspend;
360				};
361			};
362
363			ldo10_reg: LDO10 {
364				regulator-name = "UNUSED_LDO10";
365				regulator-min-microvolt = <1000000>;
366				regulator-max-microvolt = <1000000>;
367
368				regulator-state-mem {
369					regulator-off-in-suspend;
370				};
371			};
372
373			ldo11_reg: LDO11 {
374				regulator-name = "V_EMMC_1.8V";
375				regulator-min-microvolt = <1800000>;
376				regulator-max-microvolt = <1800000>;
377				samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
378			};
379
380			ldo12_reg: LDO12 {
381				regulator-name = "V_EMMC_2.8V";
382				regulator-min-microvolt = <2800000>;
383				regulator-max-microvolt = <2800000>;
384				samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
385			};
386
387			ldo13_reg: LDO13 {
388				regulator-name = "CAM_AVDD_2.8V";
389				regulator-min-microvolt = <2800000>;
390				regulator-max-microvolt = <2800000>;
391
392				regulator-state-mem {
393					regulator-off-in-suspend;
394				};
395			};
396
397			ldo14_reg: LDO14 {
398				regulator-name = "UNUSED_LDO14";
399				regulator-min-microvolt = <2700000>;
400				regulator-max-microvolt = <2700000>;
401
402				regulator-state-mem {
403					regulator-off-in-suspend;
404				};
405			};
406
407			ldo15_reg: LDO15 {
408				regulator-name = "TSP_AVDD_3.3V";
409				regulator-min-microvolt = <3300000>;
410				regulator-max-microvolt = <3300000>;
411
412				regulator-state-mem {
413					regulator-off-in-suspend;
414				};
415			};
416
417			ldo16_reg: LDO16 {
418				regulator-name = "LCD_VDD_3.3V";
419				regulator-min-microvolt = <3300000>;
420				regulator-max-microvolt = <3300000>;
421
422				regulator-state-mem {
423					regulator-off-in-suspend;
424				};
425			};
426
427			ldo17_reg: LDO17 {
428				regulator-name = "V_IRLED_3.3V";
429				regulator-min-microvolt = <3300000>;
430				regulator-max-microvolt = <3300000>;
431
432				regulator-state-mem {
433					regulator-off-in-suspend;
434				};
435			};
436
437			ldo18_reg: LDO18 {
438				regulator-name = "CAM_AF_2.8V";
439				regulator-min-microvolt = <2800000>;
440				regulator-max-microvolt = <2800000>;
441
442				regulator-state-mem {
443					regulator-off-in-suspend;
444				};
445			};
446
447			ldo19_reg: LDO19 {
448				regulator-name = "TSP_VDD_1.8V";
449				regulator-min-microvolt = <1800000>;
450				regulator-max-microvolt = <1800000>;
451
452				regulator-state-mem {
453					regulator-off-in-suspend;
454				};
455			};
456
457			ldo20_reg: LDO20 {
458				regulator-name = "LCD_VDD_1.8V";
459				regulator-min-microvolt = <1800000>;
460				regulator-max-microvolt = <1800000>;
461
462				regulator-state-mem {
463					regulator-off-in-suspend;
464				};
465			};
466
467			ldo21_reg: LDO21 {
468				regulator-name = "CAM_IO_1.8V";
469				regulator-min-microvolt = <1800000>;
470				regulator-max-microvolt = <1800000>;
471
472				regulator-state-mem {
473					regulator-off-in-suspend;
474				};
475			};
476
477			ldo22_reg: LDO22 {
478				regulator-name = "CAM_DVDD_1.2V";
479				regulator-min-microvolt = <1200000>;
480				regulator-max-microvolt = <1200000>;
481
482				regulator-state-mem {
483					regulator-off-in-suspend;
484				};
485			};
486
487			ldo23_reg: LDO23 {
488				regulator-name = "HRM_VCC_1.8V";
489				regulator-min-microvolt = <1800000>;
490				regulator-max-microvolt = <1800000>;
491				regulator-always-on;
492			};
493
494			ldo24_reg: LDO24 {
495				regulator-name = "HRM_VCC_3.3V";
496				regulator-min-microvolt = <3000000>;
497				regulator-max-microvolt = <3000000>;
498
499				regulator-state-mem {
500					regulator-off-in-suspend;
501				};
502			};
503
504			ldo25_reg: LDO25 {
505				regulator-name = "UNUSED_LDO25";
506				regulator-min-microvolt = <3000000>;
507				regulator-max-microvolt = <3000000>;
508
509				regulator-state-mem {
510					regulator-off-in-suspend;
511				};
512			};
513
514			buck1_reg: BUCK1 {
515				regulator-name = "VAP_MIF_1.0V";
516				regulator-min-microvolt = <800000>;
517				regulator-max-microvolt = <900000>;
518				regulator-always-on;
519
520				regulator-state-mem {
521					regulator-off-in-suspend;
522				};
523			};
524
525			buck2_reg: BUCK2 {
526				regulator-name = "VAP_ARM_1.0V";
527				regulator-min-microvolt = <850000>;
528				regulator-max-microvolt = <1150000>;
529				regulator-always-on;
530
531				regulator-state-mem {
532					regulator-off-in-suspend;
533				};
534			};
535
536			buck3_reg: BUCK3 {
537				regulator-name = "VAP_INT3D_1.0V";
538				regulator-min-microvolt = <850000>;
539				regulator-max-microvolt = <1000000>;
540				regulator-always-on;
541
542				regulator-state-mem {
543					regulator-off-in-suspend;
544				};
545			};
546
547			buck4_reg: BUCK4 {
548				regulator-name = "VCC_SUB_1.95V";
549				regulator-min-microvolt = <1950000>;
550				regulator-max-microvolt = <1950000>;
551				regulator-always-on;
552
553				regulator-state-mem {
554					regulator-on-in-suspend;
555				};
556			};
557
558			buck5_reg: BUCK5 {
559				regulator-name = "VCC_SUB_1.35V";
560				regulator-min-microvolt = <1350000>;
561				regulator-max-microvolt = <1350000>;
562				regulator-always-on;
563
564				regulator-state-mem {
565					regulator-on-in-suspend;
566				};
567			};
568		};
569	};
570};
571
572&i2c_1 {
573	#address-cells = <1>;
574	#size-cells = <0>;
575	samsung,i2c-sda-delay = <100>;
576	samsung,i2c-slave-addr = <0x10>;
577	samsung,i2c-max-bus-freq = <400000>;
578	status = "okay";
579
580	fuelgauge@36 {
581		compatible = "maxim,max77836-battery";
582		interrupt-parent = <&gpx1>;
583		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
584		reg = <0x36>;
585	};
586};
587
588&i2s2 {
589	status = "okay";
590};
591
592&jpeg {
593	status = "okay";
594};
595
596&mshc_0 {
597	#address-cells = <1>;
598	#size-cells = <0>;
599	broken-cd;
600	non-removable;
601	cap-mmc-highspeed;
602	desc-num = <4>;
603	mmc-hs200-1_8v;
604	card-detect-delay = <200>;
605	vmmc-supply = <&ldo12_reg>;
606	clock-frequency = <100000000>;
607	max-frequency = <100000000>;
608	samsung,dw-mshc-ciu-div = <1>;
609	samsung,dw-mshc-sdr-timing = <0 1>;
610	samsung,dw-mshc-ddr-timing = <1 2>;
611	pinctrl-names = "default";
612	pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>;
613	bus-width = <8>;
614	status = "okay";
615};
616
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
617&serial_0 {
618	assigned-clocks = <&cmu CLK_SCLK_UART0>;
619	assigned-clock-rates = <100000000>;
620	status = "okay";
 
 
 
 
 
 
 
 
 
621};
622
623&serial_1 {
624	status = "okay";
625};
626
627&tmu {
628	vtmu-supply = <&ldo7_reg>;
629	status = "okay";
630};
631
632&rtc {
633	clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>;
634	clock-names = "rtc", "rtc_src";
635	status = "okay";
636};
637
638&xusbxti {
639	clock-frequency = <24000000>;
640};
641
642&pinctrl_0 {
643	pinctrl-names = "default";
644	pinctrl-0 = <&initial0 &sleep0>;
645
646	initial0: initial-state {
647		PIN_IN(gpa1-4, DOWN, LV1);
648		PIN_IN(gpa1-5, DOWN, LV1);
649
650		PIN_IN(gpc0-0, DOWN, LV1);
651		PIN_IN(gpc0-1, DOWN, LV1);
652		PIN_IN(gpc0-2, DOWN, LV1);
653		PIN_IN(gpc0-3, DOWN, LV1);
654		PIN_IN(gpc0-4, DOWN, LV1);
655
656		PIN_IN(gpd0-0, DOWN, LV1);
657		PIN_IN(gpd0-1, DOWN, LV1);
658	};
659
660	sleep0: sleep-state {
661		PIN_SLP(gpa0-0, INPUT, DOWN);
662		PIN_SLP(gpa0-1, INPUT, DOWN);
663		PIN_SLP(gpa0-2, INPUT, DOWN);
664		PIN_SLP(gpa0-3, INPUT, DOWN);
665		PIN_SLP(gpa0-4, INPUT, DOWN);
666		PIN_SLP(gpa0-5, INPUT, DOWN);
667		PIN_SLP(gpa0-6, INPUT, DOWN);
668		PIN_SLP(gpa0-7, INPUT, DOWN);
669
670		PIN_SLP(gpa1-0, INPUT, DOWN);
671		PIN_SLP(gpa1-1, INPUT, DOWN);
672		PIN_SLP(gpa1-2, INPUT, DOWN);
673		PIN_SLP(gpa1-3, INPUT, DOWN);
674		PIN_SLP(gpa1-4, INPUT, DOWN);
675		PIN_SLP(gpa1-5, INPUT, DOWN);
676
677		PIN_SLP(gpb-0, PREV, NONE);
678		PIN_SLP(gpb-1, PREV, NONE);
679		PIN_SLP(gpb-2, PREV, NONE);
680		PIN_SLP(gpb-3, PREV, NONE);
681		PIN_SLP(gpb-4, INPUT, DOWN);
682		PIN_SLP(gpb-5, INPUT, DOWN);
683		PIN_SLP(gpb-6, INPUT, DOWN);
684		PIN_SLP(gpb-7, INPUT, DOWN);
685
686		PIN_SLP(gpc0-0, INPUT, DOWN);
687		PIN_SLP(gpc0-1, INPUT, DOWN);
688		PIN_SLP(gpc0-2, INPUT, DOWN);
689		PIN_SLP(gpc0-3, INPUT, DOWN);
690		PIN_SLP(gpc0-4, INPUT, DOWN);
691
692		PIN_SLP(gpc1-0, INPUT, DOWN);
693		PIN_SLP(gpc1-1, INPUT, DOWN);
694		PIN_SLP(gpc1-2, INPUT, DOWN);
695		PIN_SLP(gpc1-3, INPUT, DOWN);
696		PIN_SLP(gpc1-4, INPUT, DOWN);
697
698		PIN_SLP(gpd0-0, INPUT, DOWN);
699		PIN_SLP(gpd0-1, INPUT, DOWN);
700		PIN_SLP(gpd0-2, INPUT, NONE);
701		PIN_SLP(gpd0-3, INPUT, NONE);
702
703		PIN_SLP(gpd1-0, INPUT, NONE);
704		PIN_SLP(gpd1-1, INPUT, NONE);
705		PIN_SLP(gpd1-2, INPUT, NONE);
706		PIN_SLP(gpd1-3, INPUT, NONE);
707	};
708};
709
710&pinctrl_1 {
711	pinctrl-names = "default";
712	pinctrl-0 = <&initial1 &sleep1>;
713
714	initial1: initial-state {
715		PIN_IN(gpe0-6, DOWN, LV1);
716		PIN_IN(gpe0-7, DOWN, LV1);
717
718		PIN_IN(gpe1-0, DOWN, LV1);
719		PIN_IN(gpe1-3, DOWN, LV1);
720		PIN_IN(gpe1-4, DOWN, LV1);
721		PIN_IN(gpe1-5, DOWN, LV1);
722		PIN_IN(gpe1-6, DOWN, LV1);
723
724		PIN_IN(gpk2-0, DOWN, LV1);
725		PIN_IN(gpk2-1, DOWN, LV1);
726		PIN_IN(gpk2-2, DOWN, LV1);
727		PIN_IN(gpk2-3, DOWN, LV1);
728		PIN_IN(gpk2-4, DOWN, LV1);
729		PIN_IN(gpk2-5, DOWN, LV1);
730		PIN_IN(gpk2-6, DOWN, LV1);
731
732		PIN_IN(gpm0-0, DOWN, LV1);
733		PIN_IN(gpm0-1, DOWN, LV1);
734		PIN_IN(gpm0-2, DOWN, LV1);
735		PIN_IN(gpm0-3, DOWN, LV1);
736		PIN_IN(gpm0-4, DOWN, LV1);
737		PIN_IN(gpm0-5, DOWN, LV1);
738		PIN_IN(gpm0-6, DOWN, LV1);
739		PIN_IN(gpm0-7, DOWN, LV1);
740
741		PIN_IN(gpm1-0, DOWN, LV1);
742		PIN_IN(gpm1-1, DOWN, LV1);
743		PIN_IN(gpm1-2, DOWN, LV1);
744		PIN_IN(gpm1-3, DOWN, LV1);
745		PIN_IN(gpm1-4, DOWN, LV1);
746		PIN_IN(gpm1-5, DOWN, LV1);
747		PIN_IN(gpm1-6, DOWN, LV1);
748
749		PIN_IN(gpm2-0, DOWN, LV1);
750		PIN_IN(gpm2-1, DOWN, LV1);
751
752		PIN_IN(gpm3-0, DOWN, LV1);
753		PIN_IN(gpm3-1, DOWN, LV1);
754		PIN_IN(gpm3-2, DOWN, LV1);
755		PIN_IN(gpm3-3, DOWN, LV1);
756		PIN_IN(gpm3-4, DOWN, LV1);
757
758		PIN_IN(gpm4-1, DOWN, LV1);
759		PIN_IN(gpm4-2, DOWN, LV1);
760		PIN_IN(gpm4-3, DOWN, LV1);
761		PIN_IN(gpm4-4, DOWN, LV1);
762		PIN_IN(gpm4-5, DOWN, LV1);
763		PIN_IN(gpm4-6, DOWN, LV1);
764		PIN_IN(gpm4-7, DOWN, LV1);
765	};
766
767	sleep1: sleep-state {
768		PIN_SLP(gpe0-0, PREV, NONE);
769		PIN_SLP(gpe0-1, PREV, NONE);
770		PIN_SLP(gpe0-2, INPUT, DOWN);
771		PIN_SLP(gpe0-3, INPUT, UP);
772		PIN_SLP(gpe0-4, INPUT, DOWN);
773		PIN_SLP(gpe0-5, INPUT, DOWN);
774		PIN_SLP(gpe0-6, INPUT, DOWN);
775		PIN_SLP(gpe0-7, INPUT, DOWN);
776
777		PIN_SLP(gpe1-0, INPUT, DOWN);
778		PIN_SLP(gpe1-1, PREV, NONE);
779		PIN_SLP(gpe1-2, INPUT, DOWN);
780		PIN_SLP(gpe1-3, INPUT, DOWN);
781		PIN_SLP(gpe1-4, INPUT, DOWN);
782		PIN_SLP(gpe1-5, INPUT, DOWN);
783		PIN_SLP(gpe1-6, INPUT, DOWN);
784		PIN_SLP(gpe1-7, INPUT, NONE);
785
786		PIN_SLP(gpe2-0, INPUT, NONE);
787		PIN_SLP(gpe2-1, INPUT, NONE);
788		PIN_SLP(gpe2-2, INPUT, NONE);
789
790		PIN_SLP(gpk0-0, INPUT, DOWN);
791		PIN_SLP(gpk0-1, INPUT, DOWN);
792		PIN_SLP(gpk0-2, OUT0, NONE);
793		PIN_SLP(gpk0-3, INPUT, DOWN);
794		PIN_SLP(gpk0-4, INPUT, DOWN);
795		PIN_SLP(gpk0-5, INPUT, DOWN);
796		PIN_SLP(gpk0-6, INPUT, DOWN);
797		PIN_SLP(gpk0-7, INPUT, DOWN);
798
799		PIN_SLP(gpk1-0, INPUT, DOWN);
800		PIN_SLP(gpk1-1, INPUT, DOWN);
801		PIN_SLP(gpk1-2, INPUT, DOWN);
802		PIN_SLP(gpk1-3, INPUT, DOWN);
803		PIN_SLP(gpk1-4, INPUT, DOWN);
804		PIN_SLP(gpk1-5, INPUT, DOWN);
805		PIN_SLP(gpk1-6, INPUT, DOWN);
806
807		PIN_SLP(gpk2-0, INPUT, DOWN);
808		PIN_SLP(gpk2-1, INPUT, DOWN);
809		PIN_SLP(gpk2-2, INPUT, DOWN);
810		PIN_SLP(gpk2-3, INPUT, DOWN);
811		PIN_SLP(gpk2-4, INPUT, DOWN);
812		PIN_SLP(gpk2-5, INPUT, DOWN);
813		PIN_SLP(gpk2-6, INPUT, DOWN);
814
815		PIN_SLP(gpl0-0, INPUT, DOWN);
816		PIN_SLP(gpl0-1, INPUT, DOWN);
817		PIN_SLP(gpl0-2, INPUT, DOWN);
818		PIN_SLP(gpl0-3, INPUT, DOWN);
819
820		PIN_SLP(gpm0-0, INPUT, DOWN);
821		PIN_SLP(gpm0-1, INPUT, DOWN);
822		PIN_SLP(gpm0-2, INPUT, DOWN);
823		PIN_SLP(gpm0-3, INPUT, DOWN);
824		PIN_SLP(gpm0-4, INPUT, DOWN);
825		PIN_SLP(gpm0-5, INPUT, DOWN);
826		PIN_SLP(gpm0-6, INPUT, DOWN);
827		PIN_SLP(gpm0-7, INPUT, DOWN);
828
829		PIN_SLP(gpm1-0, INPUT, DOWN);
830		PIN_SLP(gpm1-1, INPUT, DOWN);
831		PIN_SLP(gpm1-2, INPUT, DOWN);
832		PIN_SLP(gpm1-3, INPUT, DOWN);
833		PIN_SLP(gpm1-4, INPUT, DOWN);
834		PIN_SLP(gpm1-5, INPUT, DOWN);
835		PIN_SLP(gpm1-6, INPUT, DOWN);
836
837		PIN_SLP(gpm2-0, INPUT, DOWN);
838		PIN_SLP(gpm2-1, INPUT, DOWN);
839		PIN_SLP(gpm2-2, INPUT, DOWN);
840		PIN_SLP(gpm2-3, INPUT, DOWN);
841		PIN_SLP(gpm2-4, INPUT, DOWN);
842
843		PIN_SLP(gpm3-0, INPUT, DOWN);
844		PIN_SLP(gpm3-1, INPUT, DOWN);
845		PIN_SLP(gpm3-2, INPUT, DOWN);
846		PIN_SLP(gpm3-3, INPUT, DOWN);
847		PIN_SLP(gpm3-4, INPUT, DOWN);
848		PIN_SLP(gpm3-5, INPUT, DOWN);
849		PIN_SLP(gpm3-6, INPUT, DOWN);
850		PIN_SLP(gpm3-7, INPUT, DOWN);
851
852		PIN_SLP(gpm4-0, INPUT, DOWN);
853		PIN_SLP(gpm4-1, INPUT, DOWN);
854		PIN_SLP(gpm4-2, INPUT, DOWN);
855		PIN_SLP(gpm4-3, INPUT, DOWN);
856		PIN_SLP(gpm4-4, INPUT, DOWN);
857		PIN_SLP(gpm4-5, INPUT, DOWN);
858		PIN_SLP(gpm4-6, INPUT, DOWN);
859		PIN_SLP(gpm4-7, INPUT, DOWN);
860	};
861};
v5.14.15
  1// SPDX-License-Identifier: GPL-2.0
  2/*
  3 * Samsung's Exynos3250 based Rinato board device tree source
  4 *
  5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
  6 *		http://www.samsung.com
  7 *
  8 * Device tree source file for Samsung's Rinato board which is based on
  9 * Samsung Exynos3250 SoC.
 10 */
 11
 12/dts-v1/;
 13#include "exynos3250.dtsi"
 14#include "exynos4412-ppmu-common.dtsi"
 15#include <dt-bindings/input/input.h>
 16#include <dt-bindings/gpio/gpio.h>
 17#include <dt-bindings/clock/samsung,s2mps11.h>
 18
 19/ {
 20	model = "Samsung Rinato board";
 21	compatible = "samsung,rinato", "samsung,exynos3250", "samsung,exynos3";
 22
 23	aliases {
 24		i2c7 = &i2c_max77836;
 25	};
 26
 27	chosen {
 28		stdout-path = &serial_1;
 29	};
 30
 31	memory@40000000 {
 32		device_type = "memory";
 33		reg = <0x40000000 0x1ff00000>;
 34	};
 35
 36	firmware@205f000 {
 37		compatible = "samsung,secure-firmware";
 38		reg = <0x0205F000 0x1000>;
 39	};
 40
 41	gpio-keys {
 42		compatible = "gpio-keys";
 43
 44		power-key {
 45			gpios = <&gpx2 7 GPIO_ACTIVE_LOW>;
 46			linux,code = <KEY_POWER>;
 47			label = "power key";
 48			debounce-interval = <10>;
 49			wakeup-source;
 50		};
 51	};
 52
 53	wlan_pwrseq: mshc1-pwrseq {
 54		compatible = "mmc-pwrseq-simple";
 55		reset-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
 56	};
 57
 58	i2c_max77836: i2c-gpio-0 {
 59		compatible = "i2c-gpio";
 60		sda-gpios = <&gpd0 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 61		scl-gpios = <&gpd0 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 62		#address-cells = <1>;
 63		#size-cells = <0>;
 64
 65		max77836: pmic@25 {
 66			compatible = "maxim,max77836";
 67			interrupt-parent = <&gpx1>;
 68			interrupts = <5 IRQ_TYPE_NONE>;
 69			reg = <0x25>;
 70			wakeup-source;
 71
 72			muic: max77836-muic {
 73				compatible = "maxim,max77836-muic";
 74			};
 75
 76			regulators {
 77				compatible = "maxim,max77836-regulator";
 78				safeout_reg: SAFEOUT {
 79					regulator-name = "SAFEOUT";
 80				};
 81
 82				charger_reg: CHARGER {
 83					regulator-name = "CHARGER";
 84					regulator-min-microamp = <45000>;
 85					regulator-max-microamp = <475000>;
 86					regulator-boot-on;
 87				};
 88
 89				motor_reg: LDO1 {
 90					regulator-name = "MOT_2.7V";
 91					regulator-min-microvolt = <1100000>;
 92					regulator-max-microvolt = <2700000>;
 93				};
 94
 95				LDO2 {
 96					regulator-name = "UNUSED_LDO2";
 97					regulator-min-microvolt = <800000>;
 98					regulator-max-microvolt = <3950000>;
 99				};
100			};
101
102			charger {
103				compatible = "maxim,max77836-charger";
104
105				maxim,constant-uvolt = <4350000>;
106				maxim,fast-charge-uamp = <225000>;
107				maxim,eoc-uamp = <7500>;
108				maxim,ovp-uvolt = <6500000>;
109			};
110		};
111	};
112
113	haptics {
114		compatible = "regulator-haptic";
115		haptic-supply = <&motor_reg>;
116		min-microvolt = <1100000>;
117		max-microvolt = <2700000>;
118	};
119
120	thermal-zones {
121		cpu_thermal: cpu-thermal {
122			cooling-maps {
123				map0 {
124					/* Corresponds to 500MHz */
125					cooling-device = <&cpu0 5 5>,
126							 <&cpu1 5 5>;
127				};
128				map1 {
129					/* Corresponds to 200MHz */
130					cooling-device = <&cpu0 8 8>,
131							 <&cpu1 8 8>;
132				};
133			};
134		};
135	};
136};
137
138&adc {
139	vdd-supply = <&ldo3_reg>;
140	status = "okay";
141	assigned-clocks = <&cmu CLK_SCLK_TSADC>;
142	assigned-clock-rates = <6000000>;
143
144	thermistor-ap {
145		compatible = "murata,ncp15wb473";
146		pullup-uv = <1800000>;
147		pullup-ohm = <100000>;
148		pulldown-ohm = <100000>;
149		io-channels = <&adc 0>;
150	};
151
152	thermistor-battery {
153		compatible = "murata,ncp15wb473";
154		pullup-uv = <1800000>;
155		pullup-ohm = <100000>;
156		pulldown-ohm = <100000>;
157		io-channels = <&adc 1>;
158	};
159};
160
161&bus_dmc {
162	devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
163	vdd-supply = <&buck1_reg>;
164	status = "okay";
165};
166
167&bus_leftbus {
168	devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
169	vdd-supply = <&buck3_reg>;
170	status = "okay";
171};
172
173&bus_rightbus {
174	devfreq = <&bus_leftbus>;
175	status = "okay";
176};
177
178&bus_lcd0 {
179	devfreq = <&bus_leftbus>;
180	status = "okay";
181};
182
183&bus_fsys {
184	devfreq = <&bus_leftbus>;
185	status = "okay";
186};
187
188&bus_mcuisp {
189	devfreq = <&bus_leftbus>;
190	status = "okay";
191};
192
193&bus_isp {
194	devfreq = <&bus_leftbus>;
195	status = "okay";
196};
197
198&bus_peril {
199	devfreq = <&bus_leftbus>;
200	status = "okay";
201};
202
203&bus_mfc {
204	devfreq = <&bus_leftbus>;
205	status = "okay";
206};
207
208&cmu {
209	clocks = <&xusbxti>;
210};
211
212&cpu0 {
213	cpu0-supply = <&buck2_reg>;
214};
215
216&exynos_usbphy {
217	status = "okay";
218	vbus-supply = <&safeout_reg>;
219};
220
221&hsotg {
222	vusb_d-supply = <&ldo15_reg>;
223	vusb_a-supply = <&ldo12_reg>;
224	dr_mode = "peripheral";
225	status = "okay";
226};
227
228&dsi_0 {
229	vddcore-supply = <&ldo6_reg>;
230	vddio-supply = <&ldo6_reg>;
231	samsung,burst-clock-frequency = <250000000>;
232	samsung,esc-clock-frequency = <20000000>;
233	samsung,pll-clock-frequency = <24000000>;
234	status = "okay";
235
236	panel@0 {
237		compatible = "samsung,s6e63j0x03";
238		reg = <0>;
239		vdd3-supply = <&ldo16_reg>;
240		vci-supply = <&ldo20_reg>;
241		reset-gpios = <&gpe0 1 GPIO_ACTIVE_LOW>;
242		te-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
243	};
244};
245
246&fimd {
247	status = "okay";
248
249	i80-if-timings {
250		cs-setup = <0>;
251		wr-setup = <0>;
252		wr-act = <1>;
253		wr-hold = <0>;
254	};
255};
256
257&gpu {
258	mali-supply = <&buck3_reg>;
259	status = "okay";
260};
261
262&i2c_0 {
263	#address-cells = <1>;
264	#size-cells = <0>;
265	samsung,i2c-sda-delay = <100>;
266	samsung,i2c-slave-addr = <0x10>;
267	samsung,i2c-max-bus-freq = <100000>;
268	status = "okay";
269
270	pmic@66 {
271		compatible = "samsung,s2mps14-pmic";
272		interrupt-parent = <&gpx0>;
273		interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
274		reg = <0x66>;
275		wakeup-source;
276
277		s2mps14_osc: clocks {
278			compatible = "samsung,s2mps14-clk";
279			#clock-cells = <1>;
280			clock-output-names = "s2mps14_ap", "unused",
281				"s2mps14_bt";
282		};
283
284		regulators {
285			ldo1_reg: LDO1 {
286				regulator-name = "VAP_ALIVE_1.0V";
287				regulator-min-microvolt = <1000000>;
288				regulator-max-microvolt = <1000000>;
289				regulator-always-on;
290
291				regulator-state-mem {
292					regulator-on-in-suspend;
293				};
294			};
295
296			ldo2_reg: LDO2 {
297				regulator-name = "VAP_M1_1.2V";
298				regulator-min-microvolt = <1200000>;
299				regulator-max-microvolt = <1200000>;
300				regulator-always-on;
301
302				regulator-state-mem {
303					regulator-off-in-suspend;
304				};
305			};
306
307			ldo3_reg: LDO3 {
308				regulator-name = "VCC_AP_1.8V";
309				regulator-min-microvolt = <1800000>;
310				regulator-max-microvolt = <1800000>;
311				regulator-always-on;
312
313				regulator-state-mem {
314					regulator-off-in-suspend;
315				};
316			};
317
318			ldo4_reg: LDO4 {
319				regulator-name = "VAP_AVDD_PLL1";
320				regulator-min-microvolt = <1800000>;
321				regulator-max-microvolt = <1800000>;
322				regulator-always-on;
323
324				regulator-state-mem {
325					regulator-off-in-suspend;
326				};
327			};
328
329			ldo5_reg: LDO5 {
330				regulator-name = "VAP_PLL_ISO_1.0V";
331				regulator-min-microvolt = <1000000>;
332				regulator-max-microvolt = <1000000>;
333				regulator-always-on;
334
335				regulator-state-mem {
336					regulator-off-in-suspend;
337				};
338			};
339
340			ldo6_reg: LDO6 {
341				regulator-name = "VAP_VMIPI_1.0V";
342				regulator-min-microvolt = <1000000>;
343				regulator-max-microvolt = <1000000>;
344				regulator-always-on;
345
346				regulator-state-mem {
347					regulator-off-in-suspend;
348				};
349			};
350
351			ldo7_reg: LDO7 {
352				regulator-name = "VAP_AVDD_1.8V";
353				regulator-min-microvolt = <1800000>;
354				regulator-max-microvolt = <1800000>;
355				regulator-always-on;
356
357				regulator-state-mem {
358					regulator-off-in-suspend;
359				};
360			};
361
362			ldo8_reg: LDO8 {
363				regulator-name = "VAP_USB_3.0V";
364				regulator-min-microvolt = <3000000>;
365				regulator-max-microvolt = <3000000>;
366				regulator-always-on;
367
368				regulator-state-mem {
369					regulator-off-in-suspend;
370				};
371			};
372
373			ldo9_reg: LDO9 {
374				regulator-name = "V_LPDDR_1.2V";
375				regulator-min-microvolt = <1200000>;
376				regulator-max-microvolt = <1200000>;
377				regulator-always-on;
378
379				regulator-state-mem {
380					regulator-on-in-suspend;
381				};
382			};
383
384			ldo10_reg: LDO10 {
385				regulator-name = "UNUSED_LDO10";
386				regulator-min-microvolt = <1000000>;
387				regulator-max-microvolt = <1000000>;
388
389				regulator-state-mem {
390					regulator-off-in-suspend;
391				};
392			};
393
394			ldo11_reg: LDO11 {
395				regulator-name = "V_EMMC_1.8V";
396				regulator-min-microvolt = <1800000>;
397				regulator-max-microvolt = <1800000>;
398				samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
399			};
400
401			ldo12_reg: LDO12 {
402				regulator-name = "V_EMMC_2.8V";
403				regulator-min-microvolt = <2800000>;
404				regulator-max-microvolt = <2800000>;
405				samsung,ext-control-gpios = <&gpk0 2 GPIO_ACTIVE_HIGH>;
406			};
407
408			ldo13_reg: LDO13 {
409				regulator-name = "CAM_AVDD_2.8V";
410				regulator-min-microvolt = <2800000>;
411				regulator-max-microvolt = <2800000>;
412
413				regulator-state-mem {
414					regulator-off-in-suspend;
415				};
416			};
417
418			ldo14_reg: LDO14 {
419				regulator-name = "UNUSED_LDO14";
420				regulator-min-microvolt = <2700000>;
421				regulator-max-microvolt = <2700000>;
422
423				regulator-state-mem {
424					regulator-off-in-suspend;
425				};
426			};
427
428			ldo15_reg: LDO15 {
429				regulator-name = "TSP_AVDD_3.3V";
430				regulator-min-microvolt = <3300000>;
431				regulator-max-microvolt = <3300000>;
432
433				regulator-state-mem {
434					regulator-off-in-suspend;
435				};
436			};
437
438			ldo16_reg: LDO16 {
439				regulator-name = "LCD_VDD_3.3V";
440				regulator-min-microvolt = <3300000>;
441				regulator-max-microvolt = <3300000>;
442
443				regulator-state-mem {
444					regulator-off-in-suspend;
445				};
446			};
447
448			ldo17_reg: LDO17 {
449				regulator-name = "V_IRLED_3.3V";
450				regulator-min-microvolt = <3300000>;
451				regulator-max-microvolt = <3300000>;
452
453				regulator-state-mem {
454					regulator-off-in-suspend;
455				};
456			};
457
458			ldo18_reg: LDO18 {
459				regulator-name = "CAM_AF_2.8V";
460				regulator-min-microvolt = <2800000>;
461				regulator-max-microvolt = <2800000>;
462
463				regulator-state-mem {
464					regulator-off-in-suspend;
465				};
466			};
467
468			ldo19_reg: LDO19 {
469				regulator-name = "TSP_VDD_1.8V";
470				regulator-min-microvolt = <1800000>;
471				regulator-max-microvolt = <1800000>;
472
473				regulator-state-mem {
474					regulator-off-in-suspend;
475				};
476			};
477
478			ldo20_reg: LDO20 {
479				regulator-name = "LCD_VDD_1.8V";
480				regulator-min-microvolt = <1800000>;
481				regulator-max-microvolt = <1800000>;
482
483				regulator-state-mem {
484					regulator-off-in-suspend;
485				};
486			};
487
488			ldo21_reg: LDO21 {
489				regulator-name = "CAM_IO_1.8V";
490				regulator-min-microvolt = <1800000>;
491				regulator-max-microvolt = <1800000>;
492
493				regulator-state-mem {
494					regulator-off-in-suspend;
495				};
496			};
497
498			ldo22_reg: LDO22 {
499				regulator-name = "CAM_DVDD_1.2V";
500				regulator-min-microvolt = <1200000>;
501				regulator-max-microvolt = <1200000>;
502
503				regulator-state-mem {
504					regulator-off-in-suspend;
505				};
506			};
507
508			ldo23_reg: LDO23 {
509				regulator-name = "HRM_VCC_1.8V";
510				regulator-min-microvolt = <1800000>;
511				regulator-max-microvolt = <1800000>;
512				regulator-always-on;
513			};
514
515			ldo24_reg: LDO24 {
516				regulator-name = "HRM_VCC_3.3V";
517				regulator-min-microvolt = <3000000>;
518				regulator-max-microvolt = <3000000>;
519
520				regulator-state-mem {
521					regulator-off-in-suspend;
522				};
523			};
524
525			ldo25_reg: LDO25 {
526				regulator-name = "UNUSED_LDO25";
527				regulator-min-microvolt = <3000000>;
528				regulator-max-microvolt = <3000000>;
529
530				regulator-state-mem {
531					regulator-off-in-suspend;
532				};
533			};
534
535			buck1_reg: BUCK1 {
536				regulator-name = "VAP_MIF_1.0V";
537				regulator-min-microvolt = <800000>;
538				regulator-max-microvolt = <900000>;
539				regulator-always-on;
540
541				regulator-state-mem {
542					regulator-off-in-suspend;
543				};
544			};
545
546			buck2_reg: BUCK2 {
547				regulator-name = "VAP_ARM_1.0V";
548				regulator-min-microvolt = <850000>;
549				regulator-max-microvolt = <1150000>;
550				regulator-always-on;
551
552				regulator-state-mem {
553					regulator-off-in-suspend;
554				};
555			};
556
557			buck3_reg: BUCK3 {
558				regulator-name = "VAP_INT3D_1.0V";
559				regulator-min-microvolt = <850000>;
560				regulator-max-microvolt = <1000000>;
561				regulator-always-on;
562
563				regulator-state-mem {
564					regulator-off-in-suspend;
565				};
566			};
567
568			buck4_reg: BUCK4 {
569				regulator-name = "VCC_SUB_1.95V";
570				regulator-min-microvolt = <1950000>;
571				regulator-max-microvolt = <1950000>;
572				regulator-always-on;
573
574				regulator-state-mem {
575					regulator-on-in-suspend;
576				};
577			};
578
579			buck5_reg: BUCK5 {
580				regulator-name = "VCC_SUB_1.35V";
581				regulator-min-microvolt = <1350000>;
582				regulator-max-microvolt = <1350000>;
583				regulator-always-on;
584
585				regulator-state-mem {
586					regulator-on-in-suspend;
587				};
588			};
589		};
590	};
591};
592
593&i2c_1 {
594	#address-cells = <1>;
595	#size-cells = <0>;
596	samsung,i2c-sda-delay = <100>;
597	samsung,i2c-slave-addr = <0x10>;
598	samsung,i2c-max-bus-freq = <400000>;
599	status = "okay";
600
601	fuelgauge@36 {
602		compatible = "maxim,max77836-battery";
603		interrupt-parent = <&gpx1>;
604		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
605		reg = <0x36>;
606	};
607};
608
609&i2s2 {
610	status = "okay";
611};
612
613&jpeg {
614	status = "okay";
615};
616
617&mshc_0 {
 
 
618	broken-cd;
619	non-removable;
620	cap-mmc-highspeed;
621	desc-num = <4>;
622	mmc-hs200-1_8v;
623	card-detect-delay = <200>;
624	vmmc-supply = <&ldo12_reg>;
625	clock-frequency = <100000000>;
626	max-frequency = <100000000>;
627	samsung,dw-mshc-ciu-div = <1>;
628	samsung,dw-mshc-sdr-timing = <0 1>;
629	samsung,dw-mshc-ddr-timing = <1 2>;
630	pinctrl-names = "default";
631	pinctrl-0 = <&sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8>;
632	bus-width = <8>;
633	status = "okay";
634};
635
636&mshc_1 {
637	status = "okay";
638
639	#address-cells = <1>;
640	#size-cells = <0>;
641
642	non-removable;
643	cap-sd-highspeed;
644	cap-sdio-irq;
645	keep-power-in-suspend;
646	samsung,dw-mshc-ciu-div = <1>;
647	samsung,dw-mshc-sdr-timing = <0 1>;
648	samsung,dw-mshc-ddr-timing = <1 2>;
649	pinctrl-names = "default";
650	pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus1 &sd1_bus4>;
651	bus-width = <4>;
652
653	mmc-pwrseq = <&wlan_pwrseq>;
654
655	brcmf: wifi@1 {
656		compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
657		reg = <1>;
658
659		interrupt-parent = <&gpx1>;
660		interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
661		interrupt-names = "host-wake";
662	};
663};
664
665&serial_0 {
666	assigned-clocks = <&cmu CLK_SCLK_UART0>;
667	assigned-clock-rates = <100000000>;
668	status = "okay";
669
670	bluetooth {
671		compatible = "brcm,bcm4330-bt";
672		max-speed = <3000000>;
673		shutdown-gpios = <&gpe0 0 GPIO_ACTIVE_HIGH>;
674		device-wakeup-gpios = <&gpx3 1 GPIO_ACTIVE_HIGH>;
675		host-wakeup-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
676		clocks = <&s2mps14_osc S2MPS11_CLK_BT>;
677	};
678};
679
680&serial_1 {
681	status = "okay";
682};
683
684&tmu {
685	vtmu-supply = <&ldo7_reg>;
686	status = "okay";
687};
688
689&rtc {
690	clocks = <&cmu CLK_RTC>, <&s2mps14_osc S2MPS11_CLK_AP>;
691	clock-names = "rtc", "rtc_src";
692	status = "okay";
693};
694
695&xusbxti {
696	clock-frequency = <24000000>;
697};
698
699&pinctrl_0 {
700	pinctrl-names = "default";
701	pinctrl-0 = <&initial0 &sleep0>;
702
703	initial0: initial-state {
704		PIN_IN(gpa1-4, DOWN, LV1);
705		PIN_IN(gpa1-5, DOWN, LV1);
706
707		PIN_IN(gpc0-0, DOWN, LV1);
708		PIN_IN(gpc0-1, DOWN, LV1);
709		PIN_IN(gpc0-2, DOWN, LV1);
710		PIN_IN(gpc0-3, DOWN, LV1);
711		PIN_IN(gpc0-4, DOWN, LV1);
712
713		PIN_IN(gpd0-0, DOWN, LV1);
714		PIN_IN(gpd0-1, DOWN, LV1);
715	};
716
717	sleep0: sleep-state {
718		PIN_SLP(gpa0-0, INPUT, DOWN);
719		PIN_SLP(gpa0-1, INPUT, DOWN);
720		PIN_SLP(gpa0-2, INPUT, DOWN);
721		PIN_SLP(gpa0-3, INPUT, DOWN);
722		PIN_SLP(gpa0-4, INPUT, DOWN);
723		PIN_SLP(gpa0-5, INPUT, DOWN);
724		PIN_SLP(gpa0-6, INPUT, DOWN);
725		PIN_SLP(gpa0-7, INPUT, DOWN);
726
727		PIN_SLP(gpa1-0, INPUT, DOWN);
728		PIN_SLP(gpa1-1, INPUT, DOWN);
729		PIN_SLP(gpa1-2, INPUT, DOWN);
730		PIN_SLP(gpa1-3, INPUT, DOWN);
731		PIN_SLP(gpa1-4, INPUT, DOWN);
732		PIN_SLP(gpa1-5, INPUT, DOWN);
733
734		PIN_SLP(gpb-0, PREV, NONE);
735		PIN_SLP(gpb-1, PREV, NONE);
736		PIN_SLP(gpb-2, PREV, NONE);
737		PIN_SLP(gpb-3, PREV, NONE);
738		PIN_SLP(gpb-4, INPUT, DOWN);
739		PIN_SLP(gpb-5, INPUT, DOWN);
740		PIN_SLP(gpb-6, INPUT, DOWN);
741		PIN_SLP(gpb-7, INPUT, DOWN);
742
743		PIN_SLP(gpc0-0, INPUT, DOWN);
744		PIN_SLP(gpc0-1, INPUT, DOWN);
745		PIN_SLP(gpc0-2, INPUT, DOWN);
746		PIN_SLP(gpc0-3, INPUT, DOWN);
747		PIN_SLP(gpc0-4, INPUT, DOWN);
748
749		PIN_SLP(gpc1-0, INPUT, DOWN);
750		PIN_SLP(gpc1-1, INPUT, DOWN);
751		PIN_SLP(gpc1-2, INPUT, DOWN);
752		PIN_SLP(gpc1-3, INPUT, DOWN);
753		PIN_SLP(gpc1-4, INPUT, DOWN);
754
755		PIN_SLP(gpd0-0, INPUT, DOWN);
756		PIN_SLP(gpd0-1, INPUT, DOWN);
757		PIN_SLP(gpd0-2, INPUT, NONE);
758		PIN_SLP(gpd0-3, INPUT, NONE);
759
760		PIN_SLP(gpd1-0, INPUT, NONE);
761		PIN_SLP(gpd1-1, INPUT, NONE);
762		PIN_SLP(gpd1-2, INPUT, NONE);
763		PIN_SLP(gpd1-3, INPUT, NONE);
764	};
765};
766
767&pinctrl_1 {
768	pinctrl-names = "default";
769	pinctrl-0 = <&initial1 &sleep1>;
770
771	initial1: initial-state {
772		PIN_IN(gpe0-6, DOWN, LV1);
773		PIN_IN(gpe0-7, DOWN, LV1);
774
775		PIN_IN(gpe1-0, DOWN, LV1);
776		PIN_IN(gpe1-3, DOWN, LV1);
777		PIN_IN(gpe1-4, DOWN, LV1);
778		PIN_IN(gpe1-5, DOWN, LV1);
779		PIN_IN(gpe1-6, DOWN, LV1);
780
781		PIN_IN(gpk2-0, DOWN, LV1);
782		PIN_IN(gpk2-1, DOWN, LV1);
783		PIN_IN(gpk2-2, DOWN, LV1);
784		PIN_IN(gpk2-3, DOWN, LV1);
785		PIN_IN(gpk2-4, DOWN, LV1);
786		PIN_IN(gpk2-5, DOWN, LV1);
787		PIN_IN(gpk2-6, DOWN, LV1);
788
789		PIN_IN(gpm0-0, DOWN, LV1);
790		PIN_IN(gpm0-1, DOWN, LV1);
791		PIN_IN(gpm0-2, DOWN, LV1);
792		PIN_IN(gpm0-3, DOWN, LV1);
793		PIN_IN(gpm0-4, DOWN, LV1);
794		PIN_IN(gpm0-5, DOWN, LV1);
795		PIN_IN(gpm0-6, DOWN, LV1);
796		PIN_IN(gpm0-7, DOWN, LV1);
797
798		PIN_IN(gpm1-0, DOWN, LV1);
799		PIN_IN(gpm1-1, DOWN, LV1);
800		PIN_IN(gpm1-2, DOWN, LV1);
801		PIN_IN(gpm1-3, DOWN, LV1);
802		PIN_IN(gpm1-4, DOWN, LV1);
803		PIN_IN(gpm1-5, DOWN, LV1);
804		PIN_IN(gpm1-6, DOWN, LV1);
805
806		PIN_IN(gpm2-0, DOWN, LV1);
807		PIN_IN(gpm2-1, DOWN, LV1);
808
809		PIN_IN(gpm3-0, DOWN, LV1);
810		PIN_IN(gpm3-1, DOWN, LV1);
811		PIN_IN(gpm3-2, DOWN, LV1);
812		PIN_IN(gpm3-3, DOWN, LV1);
813		PIN_IN(gpm3-4, DOWN, LV1);
814
815		PIN_IN(gpm4-1, DOWN, LV1);
816		PIN_IN(gpm4-2, DOWN, LV1);
817		PIN_IN(gpm4-3, DOWN, LV1);
818		PIN_IN(gpm4-4, DOWN, LV1);
819		PIN_IN(gpm4-5, DOWN, LV1);
820		PIN_IN(gpm4-6, DOWN, LV1);
821		PIN_IN(gpm4-7, DOWN, LV1);
822	};
823
824	sleep1: sleep-state {
825		PIN_SLP(gpe0-0, PREV, NONE);
826		PIN_SLP(gpe0-1, PREV, NONE);
827		PIN_SLP(gpe0-2, INPUT, DOWN);
828		PIN_SLP(gpe0-3, INPUT, UP);
829		PIN_SLP(gpe0-4, INPUT, DOWN);
830		PIN_SLP(gpe0-5, INPUT, DOWN);
831		PIN_SLP(gpe0-6, INPUT, DOWN);
832		PIN_SLP(gpe0-7, INPUT, DOWN);
833
834		PIN_SLP(gpe1-0, INPUT, DOWN);
835		PIN_SLP(gpe1-1, PREV, NONE);
836		PIN_SLP(gpe1-2, INPUT, DOWN);
837		PIN_SLP(gpe1-3, INPUT, DOWN);
838		PIN_SLP(gpe1-4, INPUT, DOWN);
839		PIN_SLP(gpe1-5, INPUT, DOWN);
840		PIN_SLP(gpe1-6, INPUT, DOWN);
841		PIN_SLP(gpe1-7, INPUT, NONE);
842
843		PIN_SLP(gpe2-0, INPUT, NONE);
844		PIN_SLP(gpe2-1, INPUT, NONE);
845		PIN_SLP(gpe2-2, INPUT, NONE);
846
847		PIN_SLP(gpk0-0, INPUT, DOWN);
848		PIN_SLP(gpk0-1, INPUT, DOWN);
849		PIN_SLP(gpk0-2, OUT0, NONE);
850		PIN_SLP(gpk0-3, INPUT, DOWN);
851		PIN_SLP(gpk0-4, INPUT, DOWN);
852		PIN_SLP(gpk0-5, INPUT, DOWN);
853		PIN_SLP(gpk0-6, INPUT, DOWN);
854		PIN_SLP(gpk0-7, INPUT, DOWN);
855
856		PIN_SLP(gpk1-0, INPUT, DOWN);
857		PIN_SLP(gpk1-1, INPUT, DOWN);
858		PIN_SLP(gpk1-2, INPUT, DOWN);
859		PIN_SLP(gpk1-3, INPUT, DOWN);
860		PIN_SLP(gpk1-4, INPUT, DOWN);
861		PIN_SLP(gpk1-5, INPUT, DOWN);
862		PIN_SLP(gpk1-6, INPUT, DOWN);
863
864		PIN_SLP(gpk2-0, INPUT, DOWN);
865		PIN_SLP(gpk2-1, INPUT, DOWN);
866		PIN_SLP(gpk2-2, INPUT, DOWN);
867		PIN_SLP(gpk2-3, INPUT, DOWN);
868		PIN_SLP(gpk2-4, INPUT, DOWN);
869		PIN_SLP(gpk2-5, INPUT, DOWN);
870		PIN_SLP(gpk2-6, INPUT, DOWN);
871
872		PIN_SLP(gpl0-0, INPUT, DOWN);
873		PIN_SLP(gpl0-1, INPUT, DOWN);
874		PIN_SLP(gpl0-2, INPUT, DOWN);
875		PIN_SLP(gpl0-3, INPUT, DOWN);
876
877		PIN_SLP(gpm0-0, INPUT, DOWN);
878		PIN_SLP(gpm0-1, INPUT, DOWN);
879		PIN_SLP(gpm0-2, INPUT, DOWN);
880		PIN_SLP(gpm0-3, INPUT, DOWN);
881		PIN_SLP(gpm0-4, INPUT, DOWN);
882		PIN_SLP(gpm0-5, INPUT, DOWN);
883		PIN_SLP(gpm0-6, INPUT, DOWN);
884		PIN_SLP(gpm0-7, INPUT, DOWN);
885
886		PIN_SLP(gpm1-0, INPUT, DOWN);
887		PIN_SLP(gpm1-1, INPUT, DOWN);
888		PIN_SLP(gpm1-2, INPUT, DOWN);
889		PIN_SLP(gpm1-3, INPUT, DOWN);
890		PIN_SLP(gpm1-4, INPUT, DOWN);
891		PIN_SLP(gpm1-5, INPUT, DOWN);
892		PIN_SLP(gpm1-6, INPUT, DOWN);
893
894		PIN_SLP(gpm2-0, INPUT, DOWN);
895		PIN_SLP(gpm2-1, INPUT, DOWN);
896		PIN_SLP(gpm2-2, INPUT, DOWN);
897		PIN_SLP(gpm2-3, INPUT, DOWN);
898		PIN_SLP(gpm2-4, INPUT, DOWN);
899
900		PIN_SLP(gpm3-0, INPUT, DOWN);
901		PIN_SLP(gpm3-1, INPUT, DOWN);
902		PIN_SLP(gpm3-2, INPUT, DOWN);
903		PIN_SLP(gpm3-3, INPUT, DOWN);
904		PIN_SLP(gpm3-4, INPUT, DOWN);
905		PIN_SLP(gpm3-5, INPUT, DOWN);
906		PIN_SLP(gpm3-6, INPUT, DOWN);
907		PIN_SLP(gpm3-7, INPUT, DOWN);
908
909		PIN_SLP(gpm4-0, INPUT, DOWN);
910		PIN_SLP(gpm4-1, INPUT, DOWN);
911		PIN_SLP(gpm4-2, INPUT, DOWN);
912		PIN_SLP(gpm4-3, INPUT, DOWN);
913		PIN_SLP(gpm4-4, INPUT, DOWN);
914		PIN_SLP(gpm4-5, INPUT, DOWN);
915		PIN_SLP(gpm4-6, INPUT, DOWN);
916		PIN_SLP(gpm4-7, INPUT, DOWN);
917	};
918};