Skip to content

Commit 57ca852

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 <[email protected]>
1 parent 3569e25 commit 57ca852

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

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

Lines changed: 86 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,52 @@
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 = <23880000>;
330+
pinctrl-0 = <&camera_rear_default>;
331+
pinctrl-names = "default";
332+
333+
orientation = <1>; /* Rear camera */
334+
rotation = <270>;
335+
336+
port {
337+
imx214_ep: endpoint {
338+
data-lanes = <1 2 3 4>;
339+
link-frequencies = /bits/ 64 <597000000>;
340+
remote-endpoint = <&csiphy0_ep>;
341+
};
342+
};
343+
};
344+
};
345+
280346
&gpu {
281347
status = "okay";
282348
};
@@ -455,6 +521,22 @@
455521
bias-pull-up;
456522
};
457523

524+
imx214_vana_default: imx214-vana-default-state {
525+
pins = "gpio34";
526+
function = "gpio";
527+
528+
drive-strength = <2>;
529+
bias-disable;
530+
};
531+
532+
imx214_vdig_default: imx214-vdig-default-state {
533+
pins = "gpio31";
534+
function = "gpio";
535+
536+
drive-strength = <2>;
537+
bias-disable;
538+
};
539+
458540
mag_reset_default: mag-reset-default-state {
459541
pins = "gpio111";
460542
function = "gpio";
@@ -539,3 +621,7 @@
539621
qcom,dtest = <1>;
540622
};
541623
};
624+
625+
&camera_rear_default {
626+
/delete-node/ pwdn-pins;
627+
};

0 commit comments

Comments
 (0)