Skip to content

Commit 45e24f4

Browse files
committed
arm64: dts: qcom: msm8939-alcatel-idol3: add ov8858 front cam sensor
Add support for front camera using ovti,ov8858 sensor. Signed-off-by: Vincent Knecht <[email protected]>
1 parent b21aee9 commit 45e24f4

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed

arch/arm64/boot/dts/qcom/msm8939-alcatel-idol3.dts

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,26 @@
8888
};
8989
};
9090

91+
reg_cam_vana: regulator-cam-vana {
92+
compatible = "regulator-fixed";
93+
regulator-name = "cam_vana";
94+
startup-delay-us = <0>;
95+
enable-active-high;
96+
gpio = <&tlmm 17 GPIO_ACTIVE_HIGH>;
97+
pinctrl-0 = <&cam_vana_default>;
98+
pinctrl-names = "default";
99+
};
100+
101+
reg_cam_vdig: regulator-cam-vdig {
102+
compatible = "regulator-fixed";
103+
regulator-name = "cam_vdig";
104+
startup-delay-us = <0>;
105+
enable-active-high;
106+
gpio = <&tlmm 109 GPIO_ACTIVE_HIGH>;
107+
pinctrl-0 = <&cam_vdig_default>;
108+
pinctrl-names = "default";
109+
};
110+
91111
reg_lcd_enn: regulator-lcd-enn {
92112
compatible = "regulator-fixed";
93113
regulator-name = "lcd_enn";
@@ -310,8 +330,65 @@
310330
};
311331
};
312332

333+
/*
334+
* The OEM wired the usual gpio34 to proximity sensor
335+
* and used gpio94 for the rear camera pwdn pin...
336+
*/
337+
&camera_rear_default {
338+
pwdn-pins {
339+
pins = "gpio94";
340+
};
341+
};
342+
313343
&camss {
314344
status = "okay";
345+
346+
ports {
347+
port@1 {
348+
reg = <1>;
349+
csiphy1_ep: endpoint {
350+
clock-lanes = <1>;
351+
data-lanes = <0 2>;
352+
remote-endpoint = <&ov8858_ep>;
353+
};
354+
};
355+
};
356+
};
357+
358+
&cci {
359+
status = "okay";
360+
};
361+
362+
&cci_i2c0 {
363+
camera@10 {
364+
compatible = "ovti,ov8858";
365+
reg = <0x10>;
366+
367+
clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
368+
clock-names = "xvclk";
369+
assigned-clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
370+
assigned-clock-rates = <24000000>;
371+
372+
avdd-supply = <&reg_cam_vana>;
373+
dvdd-supply = <&reg_cam_vdig>;
374+
dovdd-supply = <&pm8916_l6>;
375+
376+
reset-gpios = <&tlmm 28 GPIO_ACTIVE_LOW>;
377+
powerdown-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
378+
pinctrl-0 = <&camera_front_default>;
379+
pinctrl-names = "default";
380+
381+
orientation = <0>; /* front camera */
382+
rotation = <270>;
383+
384+
port {
385+
ov8858_ep: endpoint {
386+
data-lanes = <1 2>;
387+
link-frequencies = /bits/ 64 <360000000>;
388+
remote-endpoint = <&csiphy1_ep>;
389+
};
390+
};
391+
};
315392
};
316393

317394
&gpu {
@@ -512,6 +589,22 @@
512589
bias-disable;
513590
};
514591

592+
cam_vana_default: cam-vana-default-state {
593+
pins = "gpio17";
594+
function = "gpio";
595+
596+
drive-strength = <2>;
597+
bias-disable;
598+
};
599+
600+
cam_vdig_default: cam-vdig-default-state {
601+
pins = "gpio109";
602+
function = "gpio";
603+
604+
drive-strength = <2>;
605+
bias-disable;
606+
};
607+
515608
gpio_keys_volume_up_default: gpio-keys-volume-up-default-state {
516609
pins = "gpio107";
517610
function = "gpio";

0 commit comments

Comments
 (0)