]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sm8650-qrd: Enable CAMSS and Samsung S5KJN1 camera sensor
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Thu, 4 Dec 2025 04:15:04 +0000 (06:15 +0200)
committerBjorn Andersson <andersson@kernel.org>
Sat, 3 Jan 2026 14:50:44 +0000 (08:50 -0600)
Add support of Samsung S5KJN1 camera sensor connected to CSIPHY3 over
MIPI D-PHY interface.

Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on SM8650-QRD
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20251204041505.131891-4-vladimir.zapolskiy@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sm8650-qrd.dts

index b2feac61a89f22a6cac8f663f7364fff86c76301..f990e68c7a870d397b12a94802a400f1bd76aa60 100644 (file)
        };
 };
 
+&camss {
+       vdd-csiphy35-0p9-supply = <&vreg_l2i_0p88>;
+       vdd-csiphy35-1p2-supply = <&vreg_l3i_1p2>;
+       status = "okay";
+
+       ports {
+               port@3 {
+                       csiphy3_ep: endpoint {
+                               data-lanes = <0 1 2 3>;
+                               remote-endpoint = <&cam_tele>;
+                       };
+               };
+       };
+};
+
+&cci1 {
+       status = "okay";
+};
+
+&cci1_i2c0 {
+       sensor@56 {
+               compatible = "samsung,s5kjn1";
+               reg = <0x56>;
+               clocks = <&camcc CAM_CC_MCLK3_CLK>;
+               assigned-clocks = <&camcc CAM_CC_MCLK3_CLK>;
+               assigned-clock-rates = <24000000>;
+               reset-gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
+               pinctrl-0 = <&cam3_default>;
+               pinctrl-names = "default";
+               afvdd-supply = <&vreg_l7m_2p96>;
+               vdda-supply = <&vreg_l4m_2p8>;
+               vddd-supply = <&vreg_l2m_1p056>;
+               vddio-supply = <&vreg_l3n_1p8>;
+
+               port {
+                       cam_tele: endpoint {
+                               link-frequencies = /bits/ 64 <700000000>;
+                               remote-endpoint = <&csiphy3_ep>;
+                       };
+               };
+       };
+};
+
 &gpi_dma1 {
        status = "okay";
 };