Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / exynos4412-galaxy-s3.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Samsung's Exynos4412 based Galaxy S3 board device tree source
4  *
5  * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6  *              http://www.samsung.com
7  */
8
9 /dts-v1/;
10 #include "exynos4412-midas.dtsi"
11
12 / {
13         aliases {
14                 i2c9 = &i2c_ak8975;
15                 i2c10 = &i2c_cm36651;
16         };
17
18         regulators {
19                 lcd_vdd3_reg: voltage-regulator-2 {
20                         compatible = "regulator-fixed";
21                         regulator-name = "LCD_VDD_2.2V";
22                         regulator-min-microvolt = <2200000>;
23                         regulator-max-microvolt = <2200000>;
24                         gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>;
25                         enable-active-high;
26                 };
27
28                 ps_als_reg: voltage-regulator-5 {
29                         compatible = "regulator-fixed";
30                         regulator-name = "LED_A_3.0V";
31                         regulator-min-microvolt = <3000000>;
32                         regulator-max-microvolt = <3000000>;
33                         gpio = <&gpj0 5 GPIO_ACTIVE_HIGH>;
34                         enable-active-high;
35                 };
36         };
37
38         i2c_ak8975: i2c-gpio-0 {
39                 compatible = "i2c-gpio";
40                 gpios = <&gpy2 4 GPIO_ACTIVE_HIGH>, <&gpy2 5 GPIO_ACTIVE_HIGH>;
41                 i2c-gpio,delay-us = <2>;
42                 #address-cells = <1>;
43                 #size-cells = <0>;
44                 status = "okay";
45
46                 ak8975@c {
47                         compatible = "asahi-kasei,ak8975";
48                         reg = <0x0c>;
49                         gpios = <&gpj0 7 GPIO_ACTIVE_HIGH>;
50                 };
51         };
52
53         i2c_cm36651: i2c-gpio-2 {
54                 compatible = "i2c-gpio";
55                 gpios = <&gpf0 0 GPIO_ACTIVE_LOW>, <&gpf0 1 GPIO_ACTIVE_LOW>;
56                 i2c-gpio,delay-us = <2>;
57                 #address-cells = <1>;
58                 #size-cells = <0>;
59
60                 cm36651@18 {
61                         compatible = "capella,cm36651";
62                         reg = <0x18>;
63                         interrupt-parent = <&gpx0>;
64                         interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
65                         vled-supply = <&ps_als_reg>;
66                 };
67         };
68 };
69
70 &buck9_reg {
71         maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>;
72 };
73
74 &cam_af_reg {
75         gpio = <&gpm0 4 GPIO_ACTIVE_HIGH>;
76         status = "okay";
77 };
78
79 &cam_io_reg {
80         gpio = <&gpm0 2 GPIO_ACTIVE_HIGH>;
81         status = "okay";
82 };
83
84 &dsi_0 {
85         status = "okay";
86
87         panel@0 {
88                 compatible = "samsung,s6e8aa0";
89                 reg = <0>;
90                 vdd3-supply = <&lcd_vdd3_reg>;
91                 vci-supply = <&ldo25_reg>;
92                 reset-gpios = <&gpf2 1 GPIO_ACTIVE_HIGH>;
93                 power-on-delay= <50>;
94                 reset-delay = <100>;
95                 init-delay = <100>;
96                 flip-horizontal;
97                 flip-vertical;
98                 panel-width-mm = <58>;
99                 panel-height-mm = <103>;
100
101                 display-timings {
102                         timing-0 {
103                                 clock-frequency = <57153600>;
104                                 hactive = <720>;
105                                 vactive = <1280>;
106                                 hfront-porch = <5>;
107                                 hback-porch = <5>;
108                                 hsync-len = <5>;
109                                 vfront-porch = <13>;
110                                 vback-porch = <1>;
111                                 vsync-len = <2>;
112                         };
113                 };
114         };
115 };
116
117 &i2c_3 {
118         mms114-touchscreen@48 {
119                 compatible = "melfas,mms114";
120                 reg = <0x48>;
121                 interrupt-parent = <&gpm2>;
122                 interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
123                 x-size = <720>;
124                 y-size = <1280>;
125                 avdd-supply = <&ldo23_reg>;
126                 vdd-supply = <&ldo24_reg>;
127         };
128 };
129
130 &ldo25_reg {
131         regulator-name = "LCD_VCC_3.3V";
132         regulator-min-microvolt = <2800000>;
133         regulator-max-microvolt = <2800000>;
134 };
135
136 &s5c73m3 {
137         standby-gpios = <&gpm0 1 GPIO_ACTIVE_LOW>;   /* ISP_STANDBY */
138         vdda-supply = <&ldo17_reg>;
139         status = "okay";
140 };