Skip to content

Commit 7134098

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 c9fb261 commit 7134098

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

@@ -302,6 +322,57 @@
302322
status = "okay";
303323
};
304324

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

538+
imx214_vana_default: imx214-vana-default-state {
539+
pins = "gpio34";
540+
function = "gpio";
541+
542+
drive-strength = <2>;
543+
bias-disable;
544+
};
545+
546+
imx214_vdig_default: imx214-vdig-default-state {
547+
pins = "gpio31";
548+
function = "gpio";
549+
550+
drive-strength = <2>;
551+
bias-disable;
552+
};
553+
554+
467555
lcd_bl_en_default: lcd-bl-en-default-state {
468556
pins = "gpio98";
469557
function = "gpio";
@@ -541,3 +629,14 @@
541629
output-high;
542630
};
543631
};
632+
633+
&camera_rear_default {
634+
/delete-node/ pwdn-pins;
635+
636+
pwdn-pins {
637+
pins = "gpio101";
638+
function = "gpio";
639+
drive-strength = <16>;
640+
bias-disable;
641+
};
642+
};

0 commit comments

Comments
 (0)