forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi
....@@ -15,7 +15,25 @@
1515 i2c10 = &i2c_cm36651;
1616 };
1717
18
- lcd_vdd3_reg: voltage-regulator-6 {
18
+ aat1290 {
19
+ compatible = "skyworks,aat1290";
20
+ flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>;
21
+ enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
22
+
23
+ pinctrl-names = "default", "host", "isp";
24
+ pinctrl-0 = <&camera_flash_host>;
25
+ pinctrl-1 = <&camera_flash_host>;
26
+ pinctrl-2 = <&camera_flash_isp>;
27
+
28
+ flash-led {
29
+ label = "flash";
30
+ led-max-microamp = <520833>;
31
+ flash-max-microamp = <1012500>;
32
+ flash-max-timeout-us = <1940000>;
33
+ };
34
+ };
35
+
36
+ lcd_vdd3_reg: voltage-regulator-10 {
1937 compatible = "regulator-fixed";
2038 regulator-name = "LCD_VDD_2.2V";
2139 regulator-min-microvolt = <2200000>;
....@@ -24,7 +42,7 @@
2442 enable-active-high;
2543 };
2644
27
- ps_als_reg: voltage-regulator-7 {
45
+ ps_als_reg: voltage-regulator-11 {
2846 compatible = "regulator-fixed";
2947 regulator-name = "LED_A_3.0V";
3048 regulator-min-microvolt = <3000000>;
....@@ -35,7 +53,8 @@
3553
3654 i2c_ak8975: i2c-gpio-0 {
3755 compatible = "i2c-gpio";
38
- gpios = <&gpy2 4 GPIO_ACTIVE_HIGH>, <&gpy2 5 GPIO_ACTIVE_HIGH>;
56
+ sda-gpios = <&gpy2 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
57
+ scl-gpios = <&gpy2 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
3958 i2c-gpio,delay-us = <2>;
4059 #address-cells = <1>;
4160 #size-cells = <0>;
....@@ -50,7 +69,8 @@
5069
5170 i2c_cm36651: i2c-gpio-2 {
5271 compatible = "i2c-gpio";
53
- gpios = <&gpf0 0 GPIO_ACTIVE_HIGH>, <&gpf0 1 GPIO_ACTIVE_HIGH>;
72
+ sda-gpios = <&gpf0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
73
+ scl-gpios = <&gpf0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
5474 i2c-gpio,delay-us = <2>;
5575 #address-cells = <1>;
5676 #size-cells = <0>;
....@@ -131,8 +151,65 @@
131151 regulator-max-microvolt = <2800000>;
132152 };
133153
154
+&pinctrl_0 {
155
+ camera_flash_host: camera-flash-host {
156
+ samsung,pins = "gpj1-0";
157
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
158
+ samsung,pin-val = <0>;
159
+ };
160
+
161
+ camera_flash_isp: camera-flash-isp {
162
+ samsung,pins = "gpj1-0";
163
+ samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
164
+ samsung,pin-val = <1>;
165
+ };
166
+};
167
+
134168 &s5c73m3 {
135169 standby-gpios = <&gpm0 1 GPIO_ACTIVE_LOW>; /* ISP_STANDBY */
136170 vdda-supply = <&ldo17_reg>;
137171 status = "okay";
138172 };
173
+
174
+&sound {
175
+ samsung,audio-routing =
176
+ "HP", "HPOUT1L",
177
+ "HP", "HPOUT1R",
178
+
179
+ "SPK", "SPKOUTLN",
180
+ "SPK", "SPKOUTLP",
181
+ "SPK", "SPKOUTRN",
182
+ "SPK", "SPKOUTRP",
183
+
184
+ "RCV", "HPOUT2N",
185
+ "RCV", "HPOUT2P",
186
+
187
+ "HDMI", "LINEOUT1N",
188
+ "HDMI", "LINEOUT1P",
189
+
190
+ "LINE", "LINEOUT2N",
191
+ "LINE", "LINEOUT2P",
192
+
193
+ "IN1LP", "MICBIAS1",
194
+ "IN1LN", "MICBIAS1",
195
+ "Main Mic", "MICBIAS1",
196
+
197
+ "IN1RP", "Sub Mic",
198
+ "IN1RN", "Sub Mic",
199
+
200
+ "IN2LP:VXRN", "MICBIAS2",
201
+ "Headset Mic", "MICBIAS2",
202
+
203
+ "IN2RN", "FM In",
204
+ "IN2RP:VXRP", "FM In";
205
+};
206
+
207
+&submic_bias_reg {
208
+ gpio = <&gpf2 0 GPIO_ACTIVE_HIGH>;
209
+ enable-active-high;
210
+};
211
+
212
+&touchkey_reg {
213
+ gpio = <&gpm0 0 GPIO_ACTIVE_HIGH>;
214
+ status = "okay";
215
+};