Skip to content

Commit 9623686

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 9623686

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

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

Lines changed: 98 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,56 @@
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+
353+
enable-gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
354+
355+
clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
356+
assigned-clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
357+
assigned-clock-rates = <24000000>;
358+
359+
pinctrl-0 = <&camera_rear_default>;
360+
pinctrl-names = "default";
361+
362+
orientation = <1>;
363+
rotation = <270>;
364+
365+
port {
366+
imx214_ep: endpoint {
367+
data-lanes = <1 2 3 4>;
368+
link-frequencies = /bits/ 64 <600000000>;
369+
remote-endpoint = <&csiphy0_ep>;
370+
};
371+
};
372+
};
373+
};
374+
305375
&gpu {
306376
status = "okay";
307377
};
@@ -464,6 +534,23 @@
464534
bias-pull-up;
465535
};
466536

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

0 commit comments

Comments
 (0)