Re: [PATCH v8 16/23] arm64: dts: qcom: sm8750-qrd: Enable S5KJN1 camera sensor
From: Wenmeng Liu
Date: Wed Dec 02 2026 - 06:07:41 EST
Hi Vladimir,
On 12/2/2026 6:56 PM, Vladimir Zapolskiy wrote:
On 12/2/26 11:59, Wenmeng Liu wrote:I wanted to keep it for better extensibility, but for now, I think it's better to remove it. Will do it.
Enable CAMSS, CCI1 and CSIPHY3 on the SM8750 QRD board. The S5KJN1
camera sensor is connected to CCI1 I2C bus 0, uses MCLK3 at 24 MHz and
connects to CSIPHY3 over a 4-lane D-PHY link.
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@xxxxxxxxxx>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
Signed-off-by: Wenmeng Liu <wenmeng.liu@xxxxxxxxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/sm8750-qrd.dts | 71 +++++++++++++++++++++++ ++++++++++
1 file changed, 71 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts b/arch/arm64/ boot/dts/qcom/sm8750-qrd.dts
index 75927e1f7b9ab0316781c64dbcc82d3394c414f6..020652e2b892e5dffaf79bffa139c1f997256f7d 100644
--- a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
+++ b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts
@@ -7,6 +7,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
+#include <dt-bindings/media/video-interfaces.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include "sm8750.dtsi"
#include "pm8010.dtsi"
@@ -858,6 +859,69 @@ vreg_l7n_3p3: ldo7 {
};
};
+&camss {
+ status = "okay";
+};
+
+&camss_csiphy3_in_port {
+ camss_csiphy3_in_ep: endpoint {
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&csiphy3_out_ep>;
+ };
+};
+
+&cci1 {
+ status = "okay";
+};
+
+&cci1_i2c0 {
+ camera@56 {
+ compatible = "samsung,s5kjn1";
+ reg = <0x56>;
+
+ reset-gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
+ pinctrl-0 = <&cam_mclk3_default &cam3_reset_default>;
+ pinctrl-names = "default";
+
+ clocks = <&cambistmclkcc CAM_BIST_MCLK_CC_MCLK3_CLK>;
+ assigned-clocks = <&cambistmclkcc CAM_BIST_MCLK_CC_MCLK3_CLK>;
+ assigned-clock-rates = <24000000>;
+
+ vdda-supply = <&vreg_l4m_2p8>;
+ vddd-supply = <&vreg_l2m_1p056>;
+ vddio-supply = <&vreg_l5m_1p8>;
+
+ port {
+ s5kjn1_out_ep: endpoint {
+ data-lanes = <1 2 3 4>;
Drop 'data-lanes' property, the sensor does not support any other configuration.
Thanks,
Wenmeng
+ link-frequencies = /bits/ 64 <700000000>;
+ remote-endpoint = <&csiphy3_in_ep>;
+ };
+ };
+ };
+};
+
+&csiphy3 {
+ vdda-0p9-supply = <&vreg_l1f_0p88>;
+ vdda-1p2-supply = <&vreg_l3g_1p2>;
+
+ status = "okay";
+};
+
+&csiphy3_in_port {
+ csiphy3_in_ep: endpoint {
+ bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&s5kjn1_out_ep>;
+ };
+};
+
+&csiphy3_out_port {
+ csiphy3_out_ep: endpoint {
+ remote-endpoint = <&camss_csiphy3_in_ep>;
+ };
+};
+
&gpu {
status = "okay";
};
@@ -1081,6 +1145,13 @@ &tlmm {
/* reserved for secure world */
gpio-reserved-ranges = <36 4>, <74 1>;
+ cam3_reset_default: cam3-reset-default-state {
+ pins = "gpio109";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
sdc2_card_det_n: sd-card-det-n-state {
pins = "gpio55";
function = "gpio";