Skip to content

Commit 540a75d

Browse files
author
André Apitzsch
committed
arm64: dts: qcom: msm8939-longcheer-l9100: add rear camera support
Add rear camera support, using imx214 sensor. Signed-off-by: André Apitzsch <[email protected]>
1 parent 7ce780f commit 540a75d

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,26 @@
4444
};
4545
};
4646

47+
cam_vana_rear_vreg: cam-vana-rear-regulator {
48+
compatible = "regulator-fixed";
49+
regulator-name = "cam_vana_rear_vreg";
50+
startup-delay-us = <0>;
51+
enable-active-high;
52+
gpio = <&tlmm 34 GPIO_ACTIVE_HIGH>;
53+
pinctrl-0 = <&imx214_vana_default>;
54+
pinctrl-names = "default";
55+
};
56+
57+
cam_vdig_rear_vreg: cam-vdig-rear-regulator {
58+
compatible = "regulator-fixed";
59+
regulator-name = "cam_vdig_rear_vreg";
60+
startup-delay-us = <0>;
61+
enable-active-high;
62+
gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>;
63+
pinctrl-0 = <&imx214_vdig_default>;
64+
pinctrl-names = "default";
65+
};
66+
4767
gpio-keys {
4868
compatible = "gpio-keys";
4969

@@ -299,6 +319,57 @@
299319
status = "okay";
300320
};
301321

322+
&camss {
323+
status = "okay";
324+
325+
ports {
326+
port@0 {
327+
reg = <0>;
328+
csiphy0_ep: endpoint {
329+
clock-lanes = <1>;
330+
data-lanes = <0 2 3 4>;
331+
remote-endpoint = <&imx214_ep>;
332+
};
333+
};
334+
};
335+
};
336+
337+
&cci {
338+
status = "okay";
339+
};
340+
341+
&cci_i2c0 {
342+
camera_rear@10 {
343+
compatible = "sony,imx214";
344+
reg = <0x10>;
345+
346+
vdda-supply = <&cam_vana_rear_vreg>;
347+
vddd-supply = <&cam_vdig_rear_vreg>;
348+
vdddo-supply = <&pm8916_l6>;
349+
enable-gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
350+
351+
clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
352+
assigned-clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
353+
assigned-clock-rates = <24000000>;
354+
355+
pinctrl-0 = <&camera_rear_default>;
356+
pinctrl-names = "default";
357+
358+
orientation = <1>; /* Rear camera */
359+
rotation = <270>;
360+
361+
//lens-focus = <&ad5820>;
362+
363+
port {
364+
imx214_ep: endpoint {
365+
data-lanes = <1 2 3 4>;
366+
link-frequencies = /bits/ 64 <600000000>;
367+
remote-endpoint = <&csiphy0_ep>;
368+
};
369+
};
370+
};
371+
};
372+
302373
&gpu {
303374
status = "okay";
304375
};
@@ -461,6 +532,23 @@
461532
bias-pull-up;
462533
};
463534

535+
imx214_vana_default: imx214-vana-default-state {
536+
pins = "gpio34";
537+
function = "gpio";
538+
539+
drive-strength = <2>;
540+
bias-disable;
541+
};
542+
543+
imx214_vdig_default: imx214-vdig-default-state {
544+
pins = "gpio31";
545+
function = "gpio";
546+
547+
drive-strength = <2>;
548+
bias-disable;
549+
};
550+
551+
464552
lcd_bl_en_default: lcd-bl-en-default-state {
465553
pins = "gpio98";
466554
function = "gpio";
@@ -538,3 +626,14 @@
538626
output-high;
539627
};
540628
};
629+
630+
&camera_rear_default {
631+
/delete-node/ pwdn-pins;
632+
633+
pwdn-pins {
634+
pins = "gpio101";
635+
function = "gpio";
636+
drive-strength = <16>;
637+
bias-disable;
638+
};
639+
};

0 commit comments

Comments
 (0)