[PATCH RFC 14/15] arm64: dts: qcom: maili-mtp: Enable S5KJN5 camera for Maili MTP

From: Nihal Kumar Gupta

Date: Wed Sep 23 2026 - 07:15:05 EST


Qualcomm Maili MTP carries a Samsung S5KJN5 rear camera sensor on
QUP I2C9, connected to CSIPHY2 via 4-lane CSI-2 D-PHY.

Signed-off-by: Nihal Kumar Gupta <nihal.gupta@xxxxxxxxxxxxxxxx>
---
arch/arm64/boot/dts/qcom/maili-mtp.dts | 64 ++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/maili-mtp.dts b/arch/arm64/boot/dts/qcom/maili-mtp.dts
index 1fdc91e03271c40640910b57f3187311b6077ea9..f8582a21d1b4f58113c6f2d1a26e4d673016894a 100644
--- a/arch/arm64/boot/dts/qcom/maili-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/maili-mtp.dts
@@ -8,6 +8,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/leds/common.h>
+#include <dt-bindings/media/video-interfaces.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include "maili.dtsi"
@@ -743,6 +744,62 @@ vreg_l7n_3p3: ldo7 {
};
};

+&camss {
+ status = "okay";
+};
+
+&camss_csiphy2_inep {
+ data-lanes = <1 2 3 4>;
+};
+
+&csiphy2 {
+ vdda-0p9-supply = <&vreg_l1d_0p9>;
+ vdda-1p2-supply = <&vreg_l3g_1p2>;
+
+ status = "okay";
+};
+
+&csiphy2_in_ep {
+ bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
+ clock-lanes = <0>;
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&s5kjn5_ep>;
+};
+
+&i2c9 {
+ clock-frequency = <400000>;
+ power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>;
+ status = "okay";
+
+ camera@10 {
+ compatible = "samsung,s5kjn5";
+ reg = <0x10>;
+
+ reset-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>;
+
+ pinctrl-0 = <&mclk2_default &cam2_reset_default>;
+ pinctrl-names = "default";
+
+ clocks = <&cambistmclkcc CAM_BIST_MCLK_CC_MCLK2_CLK>;
+ assigned-clocks = <&cambistmclkcc CAM_BIST_MCLK_CC_MCLK2_CLK>;
+ assigned-clock-rates = <19200000>;
+
+ afvdd-supply = <&vreg_l5m_2p8>;
+ vdda-supply = <&vreg_l7m_2p2>;
+ vddd-supply = <&vreg_l1m_1p0>;
+ vddio-supply = <&vreg_l4n_1p8>;
+ vddio1p2-supply = <&vreg_l2n_1p2>;
+
+ port {
+ s5kjn5_ep: endpoint {
+ link-frequencies = /bits/ 64 <1248000000>;
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&csiphy2_in_ep>;
+ };
+ };
+ };
+};
+
&pcie0 {
status = "okay";
};
@@ -906,6 +963,13 @@ &tlmm {
<119 2>, /* SoCCP */
<144 2>, /* CXM UART */
<211 1>; /* NFC Secure IO */
+
+ cam2_reset_default: cam2-reset-default-state {
+ pins = "gpio3";
+ function = "gpio";
+ drive-strength = <16>;
+ bias-disable;
+ };
};

&uart7 {

--
2.34.1