Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64: dts: qcom: msm8916-longcheer-l8910: add rear camera support #366

Open
wants to merge 15 commits into
base: wip/msm8916/6.13-rc2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <600000000>;
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;
};
2 changes: 2 additions & 0 deletions arch/arm64/configs/msm8916_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_KSM=y
CONFIG_TRANSPARENT_HUGEPAGE=y
CONFIG_CMA=y
CONFIG_CMA_SIZE_MBYTES=256
CONFIG_LRU_GEN=y
CONFIG_LRU_GEN_ENABLED=y
CONFIG_NET=y
Expand Down Expand Up @@ -272,6 +273,7 @@ CONFIG_V4L_PLATFORM_DRIVERS=y
CONFIG_V4L_MEM2MEM_DRIVERS=y
CONFIG_VIDEO_QCOM_CAMSS=m
CONFIG_VIDEO_QCOM_VENUS=m
CONFIG_VIDEO_IMX214=m
CONFIG_DRM=y
CONFIG_DRM_MSM=m
# CONFIG_DRM_MSM_MDP4 is not set
Expand Down
1 change: 1 addition & 0 deletions drivers/media/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ config VIDEO_IMX214
tristate "Sony IMX214 sensor support"
depends on GPIOLIB
select REGMAP_I2C
select V4L2_CCI_I2C
help
This is a Video4Linux2 sensor driver for the Sony
IMX214 camera.
Expand Down
Loading