Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916-longcheer-l8910: add rear camera support
Browse files Browse the repository at this point in the history
Add rear camera support, using imx214 sensor.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
  • Loading branch information
André Apitzsch committed Aug 29, 2024
1 parent a2dcfb6 commit 20e342e
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@
default-brightness-level = <255>;
};

cam_vana_rear_vreg: cam-vana-rear-regulator {
compatible = "regulator-fixed";
regulator-name = "cam_vana_rear_vreg";
startup-delay-us = <0>;
enable-active-high;
gpio = <&tlmm 34 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&imx214_vana_default>;
pinctrl-names = "default";
};

cam_vdig_rear_vreg: cam-vdig-rear-regulator {
compatible = "regulator-fixed";
regulator-name = "cam_vdig_rear_vreg";
startup-delay-us = <0>;
enable-active-high;
gpio = <&tlmm 31 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&imx214_vdig_default>;
pinctrl-names = "default";
};

flash-led-controller {
compatible = "ocs,ocp8110";
enable-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
Expand Down Expand Up @@ -277,6 +297,51 @@
status = "okay";
};

&camss {
status = "okay";

ports {
port@0 {
reg = <0>;
csiphy0_ep: endpoint {
clock-lanes = <1>;
data-lanes = <0 2 3 4>;
remote-endpoint = <&imx214_ep>;
};
};
};
};

&cci {
status = "okay";
};

&cci_i2c0 {
camera@10 {
compatible = "sony,imx214";
reg = <0x10>;

vdda-supply = <&cam_vana_rear_vreg>;
vddd-supply = <&cam_vdig_rear_vreg>;
vdddo-supply = <&pm8916_l6>;
enable-gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>;
clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
clock-frequency = <24000000>;
pinctrl-0 = <&camera_rear_default>;
pinctrl-names = "default";

orientation = <1>; /* Rear camera */

port {
imx214_ep: endpoint {
data-lanes = <1 2 3 4>;
link-frequencies = /bits/ 64 <480000000>;
remote-endpoint = <&csiphy0_ep>;
};
};
};
};

&gpu {
status = "okay";
};
Expand Down Expand Up @@ -455,6 +520,22 @@
bias-pull-up;
};

imx214_vana_default: imx214-vana-default-state {
pins = "gpio34";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

imx214_vdig_default: imx214-vdig-default-state {
pins = "gpio31";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

mag_reset_default: mag-reset-default-state {
pins = "gpio111";
function = "gpio";
Expand Down Expand Up @@ -539,3 +620,7 @@
qcom,dtest = <1>;
};
};

&camera_rear_default {
/delete-node/ pwdn-pins;
};

0 comments on commit 20e342e

Please sign in to comment.