Skip to content

Commit 0350c60

Browse files
author
André Apitzsch
committed
arm64: dts: qcom: msm8916-longcheer-l8910: add rear camera support
Add rear camera support, using imx214 sensor. Signed-off-by: André Apitzsch <git@apitzsch.eu>
1 parent 09657b1 commit 0350c60

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@
4545
default-brightness-level = <255>;
4646
};
4747

48+
cam_vana_rear_vreg: cam-vana-rear-regulator {
49+
compatible = "regulator-fixed";
50+
regulator-name = "cam_vana_rear_vreg";
51+
startup-delay-us = <0>;
52+
enable-active-high;
53+
gpio = <&tlmm 34 GPIO_ACTIVE_HIGH>;
54+
pinctrl-0 = <&imx214_vana_default>;
55+
pinctrl-names = "default";
56+
};
57+
58+
cam_vdig_rear_vreg: cam-vdig-rear-regulator {
59+
compatible = "regulator-fixed";
60+
regulator-name = "cam_vdig_rear_vreg";
61+
startup-delay-us = <0>;
62+
enable-active-high;
63+
gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>;
64+
pinctrl-0 = <&imx214_vdig_default>;
65+
pinctrl-names = "default";
66+
};
67+
4868
flash-led-controller {
4969
compatible = "ocs,ocp8110";
5070
enable-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
@@ -277,6 +297,51 @@
277297
status = "okay";
278298
};
279299

300+
&camss {
301+
status = "okay";
302+
303+
ports {
304+
port@0 {
305+
reg = <0>;
306+
csiphy0_ep: endpoint {
307+
clock-lanes = <1>;
308+
data-lanes = <0 2 3 4>;
309+
remote-endpoint = <&imx214_ep>;
310+
};
311+
};
312+
};
313+
};
314+
315+
&cci {
316+
status = "okay";
317+
};
318+
319+
&cci_i2c0 {
320+
camera@10 {
321+
compatible = "sony,imx214";
322+
reg = <0x10>;
323+
324+
vdda-supply = <&cam_vana_rear_vreg>;
325+
vddd-supply = <&cam_vdig_rear_vreg>;
326+
vdddo-supply = <&pm8916_l6>;
327+
enable-gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
328+
clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
329+
clock-frequency = <24000000>;
330+
pinctrl-0 = <&camera_rear_default>;
331+
pinctrl-names = "default";
332+
333+
orientation = <1>; /* Rear camera */
334+
335+
port {
336+
imx214_ep: endpoint {
337+
data-lanes = <1 2 3 4>;
338+
link-frequencies = /bits/ 64 <600000000>;
339+
remote-endpoint = <&csiphy0_ep>;
340+
};
341+
};
342+
};
343+
};
344+
280345
&gpu {
281346
status = "okay";
282347
};
@@ -455,6 +520,22 @@
455520
bias-pull-up;
456521
};
457522

523+
imx214_vana_default: imx214-vana-default-state {
524+
pins = "gpio34";
525+
function = "gpio";
526+
527+
drive-strength = <2>;
528+
bias-disable;
529+
};
530+
531+
imx214_vdig_default: imx214-vdig-default-state {
532+
pins = "gpio31";
533+
function = "gpio";
534+
535+
drive-strength = <2>;
536+
bias-disable;
537+
};
538+
458539
mag_reset_default: mag-reset-default-state {
459540
pins = "gpio111";
460541
function = "gpio";
@@ -539,3 +620,7 @@
539620
qcom,dtest = <1>;
540621
};
541622
};
623+
624+
&camera_rear_default {
625+
/delete-node/ pwdn-pins;
626+
};

0 commit comments

Comments
 (0)