From: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
Subject: [PATCH v2 4/4] arm64: dts: qcom: kaanapali-mtp: Add s5kjn5 image sensor on CSIPHY2
Date: Mon, 20 Jul 2026 21:57:37 -0700 [thread overview]
Message-ID: <20260720-knp-camera-v2-4-a21c3f0ecd55@oss.qualcomm.com> (raw)
In-Reply-To: <20260720-knp-camera-v2-0-a21c3f0ecd55@oss.qualcomm.com>
Enable the S5KJN5 image sensor which connected to cci0_i2c1 on Kaanapali
MTP. The sensor appears on CCI pins connected to the CSIPHY2 interface
in four lane mode.
Signed-off-by: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/kaanapali-mtp.dts | 90 ++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts b/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts
index 7ccff3d03b78..9d68058f8962 100644
--- a/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts
+++ b/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts
@@ -1235,6 +1235,13 @@ &tlmm {
<119 2>, /* SoCCP */
<144 4>; /* CXM UART */
+ cam2_reset: cam2-reset-state {
+ pins = "gpio3";
+ function = "gpio";
+ drive-strength = <16>;
+ bias-disable;
+ };
+
wlan_en: wlan-en-state {
pins = "gpio16";
function = "gpio";
@@ -1335,6 +1342,89 @@ wcd_default: wcd-reset-n-active-state {
};
};
+&cci0 {
+ status = "okay";
+};
+
+&cci0_i2c1 {
+ 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_l2n_1p2>;
+ vddd-supply = <&vreg_l1m_1p0>;
+ vdda-supply = <&vreg_l4m_2p2>;
+ vdda2-supply = <&vreg_l4n_1p8>;
+ afvdd-supply = <&vreg_l7m_2p8>;
+
+ port {
+ s5kjn5_ep: endpoint {
+ link-frequencies = /bits/ 64 <1248000000>;
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&csiphy2_in_ep>;
+ };
+ };
+ };
+};
+
+&camss {
+ status = "okay";
+
+ ports {
+ /*
+ * port0 => csiphy0
+ * port1 => csiphy1
+ * port2 => csiphy2
+ * port3 => csiphy3
+ * port4 => csiphy4
+ * port5 => csiphy5
+ */
+ port@2 {
+ camss_csiphy2_inep: endpoint@0 {
+ data-lanes = <0 1 2 3>;
+ remote-endpoint = <&csiphy2_out_ep>;
+ };
+ };
+ };
+};
+
+&csiphy2 {
+ vdda-0p9-supply = <&vreg_l3d_0p8>;
+ vdda-1p2-supply = <&vreg_l1d_1p2>;
+
+ status = "okay";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
+ csiphy2_in_ep: endpoint {
+ data-lanes = <0 1 2 3>;
+ clock-lanes = <7>;
+ remote-endpoint = <&s5kjn5_ep>;
+ };
+ };
+
+ port@1 {
+ reg = <1>;
+
+ csiphy2_out_ep: endpoint {
+ remote-endpoint = <&camss_csiphy2_inep>;
+ };
+ };
+ };
+};
+
&uart7 {
status = "okay";
};
--
2.34.1
next prev parent reply other threads:[~2026-07-21 4:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 4:57 [PATCH v2 0/4] Add CCI and CAMSS support for Kaanapali Hangxiang Ma
2026-07-21 4:57 ` [PATCH v2 1/4] arm64: dts: qcom: kaanapali: Add CAMSS block definitions Hangxiang Ma
2026-07-21 4:57 ` [PATCH v2 2/4] arm64: dts: qcom: kaanapali: Add CCI definitions Hangxiang Ma
2026-07-21 4:57 ` [PATCH v2 3/4] arm64: dts: qcom: kaanapali: Add camera MCLK pinctrl Hangxiang Ma
2026-07-21 4:57 ` Hangxiang Ma [this message]
2026-07-24 11:50 ` [PATCH v2 4/4] arm64: dts: qcom: kaanapali-mtp: Add s5kjn5 image sensor on CSIPHY2 Konrad Dybcio
2026-07-31 2:15 ` Hangxiang Ma
2026-07-27 14:04 ` Abel Vesa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260720-knp-camera-v2-4-a21c3f0ecd55@oss.qualcomm.com \
--to=hangxiang.ma@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®