From 57854f43bb896b6415c42afe4ec5c4040e5e58a2 Mon Sep 17 00:00:00 2001 From: Hangxiang Ma Date: Fri, 3 Jul 2026 03:22:57 -0700 Subject: [PATCH] PENDING: arm64: media: dts: sm8750-mtp: Add s5kjn5 image sensor on CSIPHY2 Enable the camera subsystem on the SM8750 MTP along with the S5KJN5 sensor connected to CSIPHY2 through I2C9 on QUPv3_2. Add the sensor reset pin state on the TLMM GPIO and wire up the sensor supplies. Signed-off-by: Hangxiang Ma --- arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 64 +++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts index 4343ec5ca201c..8336d43ebac71 100644 --- a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts @@ -1285,12 +1285,76 @@ &tlmm { /* reserved for secure world */ gpio-reserved-ranges = <36 4>, <74 1>; + + cam2_reset: cam2-reset-state { + pins = "gpio3"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; }; &uart7 { status = "okay"; }; +&vreg_l7n_3p3 { + regulator-always-on; +}; + +&gpi_dma2 { + status = "okay"; +}; + +&i2c9 { + status = "okay"; + qcom,pm-ctrl-client; + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + + camera@10 { + compatible = "samsung,s5kjn5"; + reg = <0x10>; + reset-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&cam2_default &cam2_reset>; + pinctrl-names = "default"; + + clocks = <&cambistmclkcc CAM_BIST_MCLK_CC_MCLK2_CLK>; + assigned-clocks = <&cambistmclkcc CAM_BIST_MCLK_CC_MCLK2_CLK>; + assigned-clock-rates = <19200000>; + + vddio-supply = <&vreg_l1i_1p2>; + vddd-supply = <&vreg_l2m_1p056>; + vdda-supply = <&vreg_l4m_2p8>; + vddio1p2-supply = <&vreg_l5m_1p8>; + afvdd-supply = <&vreg_l7m_2p96>; + + port { + s5kjn5_ep: endpoint { + link-frequencies = /bits/ 64 + <1248000000 840000000 250400000>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&csiphy2_ep>; + }; + }; + }; +}; + +&camss { + vdd-csiphy2-0p8-supply = <&vreg_l3i_0p88>; + vdd-csiphy2-1p2-supply = <&vreg_l3g_1p2>; + + status = "okay"; + + ports { + port@2 { + csiphy2_ep: endpoint { + data-lanes = <0 1 2 3>; + remote-endpoint = <&s5kjn5_ep>; + }; + }; + }; +}; + /* Pinctrl */ &lpass_tlmm { spkr_0_sd_n_active: spkr-0-sd-n-active-state {