* [PATCH v26 0/4] media: qcom: camss: Add Kaanapali support
@ 2026-12-02 14:42 Hangxiang Ma
2026-12-02 14:42 ` [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions Hangxiang Ma
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Hangxiang Ma @ 2026-12-02 14:42 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel,
jeyaprakash.soundrapandian, Vijay Kumar Tumati, Hangxiang Ma,
Konrad Dybcio, Abel Vesa, Vladimir Zapolskiy, Loic Poulain,
Bryan O'Donoghue, Nihal Kumar Gupta
Add support for the RDI only CAMSS camera driver on Kaanapali. Enabling
RDI path involves adding the support for a set of CSIPHY, CSID and TFE
modules, with each TFE having multiple RDI ports. This hardware
architecture requires 'qdss_debug_xo' clock for CAMNOC to be functional.
Kaanapali camera subsystem provides:
- 6 x CSIPHY (CSI Physical Layer)
- 3 x TPG (Test Pattern Generator)
- 3 x CSID (CSI Decoder)
- 2 x CSID Lite
- 3 x VFE (Video Front End), 5 RDI per VFE
- 2 x VFE Lite, 4 RDI per VFE Lite
This series has been tested using the following commands with S5KJN5 sensor.
- media-ctl --reset
- media-ctl -V '"msm_csiphy2":0[fmt:SGBRG10/4096x3072]'
- media-ctl -V '"msm_csid0":0[fmt:SGBRG10/4096x3072]'
- media-ctl -V '"msm_vfe0_rdi0":0[fmt:SGBRG10/4096x3072]'
- media-ctl -l '"msm_csiphy2":1->"msm_csid0":0[1]'
- media-ctl -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]'
- yavta --capture=20 -I -n 5 -f SGBRG10P -s 4096x3072 -F /dev/video0
PHY driver part for maintainer Vinod Koul (3):
[1] dt-bindings: phy: qcom,x1e80100-csi2-phy: Add Kaanapali CSI2 PHY
[2] phy: qcom-mipi-csi2: Parametrise the common status register offset
[3] phy: qcom-mipi-csi2: Add Kaanapali support
CAMSS driver part for maintainer Bryan O'Donoghue (8):
[1] media: qcom: camss: Add addr_update hooks and guard CSID reg_update
[2] media: dt-bindings: Add CAMSS device for Kaanapali
[3] media: qcom: camss: Add Kaanapali compatible
[4] media: qcom: camss: Add PM clock definitions for Kaanapali
[5] media: qcom: camss: Allow CSI2 PHY devices without CSIPHY resources
[6] media: qcom: camss: csid: Add support for CSID 1080
[7] media: qcom: camss: vfe: Add support for VFE 1080
[8] media: qcom: camss: tpg: Add support for v2.4.0 TPG
DTS part for maintainer Bjorn Andersson (4):
[1] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions
[2] arm64: dts: qcom: kaanapali: Add CCI controller nodes
[3] arm64: dts: qcom: kaanapali: Add camera MCLK pinctrl
[4] arm64: dts: qcom: kaanapali-mtp-camera-s5kjn5: Add DT overlay
Signed-off-by: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
---
Changes in v26:
- Rebase on tip of next-20261201
- Drop merged PHY and CAMSS driver part and resolve Makefile conflict
- Link to v25: https://patch.msgid.link/20261112-kaanapali-camss-v25-0-1d709f57f370@oss.qualcomm.com
Changes in v25:
- Rebase onto the tip of next-20261112 to resolve a conflict
- Reverse TPG hw_version and reset order, as reset depends on it - bod
- Link to v24: https://patch.msgid.link/20261102-kaanapali-camss-v24-0-d6b8f3f6f66f@oss.qualcomm.com
Changes in v24:
- Reorder Kaanapali CSI2 DPHY compatibles alphanumerically - Abel
- Refine the CSI2 PHY binding commit description - Vladimir
- Use 8775p TPG resources instead of x1e resources - Vladimir
- Align tpgX and csiphy_rx clock names with the 8775p platform - Vladimir
- Remove the unused gcc_axi_sf clock - Vladimir
- Remove redundant CSIPHY resource definitions by introducing
compatible-specific code and keeping .csiphy_num instead in the
resource list to denotes the CSIPHY number - Vladimir
- Remove redundant .is_lite entries from CSID and VFE resources - bod
- Link to v23: https://patch.msgid.link/20261028-kaanapali-camss-v23-0-95f250b18612@oss.qualcomm.com
Changes in v23:
- Add the CAMSS top register region to the DTS - Loic
- Use the GPIO function with bias disabled for CCI sleep states - Loic
- Move the common CPAS/GCC AHB and AXI clocks to the pm_clks array
in a separate patch and drop them from the VFE clock lists - Loic
- Replace the CSID AUP/RUP union with separate reg_update/addr_update
field pairs to simplify the logic - Loic
- Link to v22: https://patch.msgid.link/20261024-kaanapali-camss-v22-0-7da3ea49c8a1@oss.qualcomm.com
Changes in v22:
- Add addr_update operation function to CSID and VFE to extend the
CAMSS capability for split AUP/RUP in CSID instead of traversing
the media graph to dig out CSID reg_update capability - Loic/bod
- Modify CSID 1080 and VFE 1080 to adapt the split AUP/RUP design
- Add SOF and EOF enable bits with top level RDI status offset to
allow their corresponding interrupts but not configured on - bod
- Remove redundant space between the specific property and its
paired property name - Konrad
- Collect RBs and Acks from Bryan and Konrad
- Link to v21: https://patch.msgid.link/20261011-kaanapali-camss-v21-0-04fd28d815c6@oss.qualcomm.com
Changes in v21:
- Drop reg_update_after_csid_config flag. Skip the VFE-side stream-on
REG_UPDATE only when the connected CSID implements reg_update - bod
- Add address and size cell properties in camera node to avoid
potential warnings during compilation
- Link to v20: https://patch.msgid.link/20261010-kaanapali-camss-v20-0-63e98ce9ac0c@oss.qualcomm.com
Changes in v20:
- Remove the redundant null check for reg_update_clear in VFE - bod
- Define the port property for CSIPHY nodes and align the style of
CAMSS and CSIPHY nodes - bod
- Replace bias-pull-up and bias-pull-down with bias-disable for the
SCL/SDA pins of CCI nodes in TLMM, as internal weak pull is inproper
with existing board level pull up resistors - Loic
- Align the if-else condition in TPG version judgement and remove the
redundant comments in TPG code but describe the hardware changes in
commit description
- Add Kaanapali camera subsystem and S5KJN5 enablement dtso
- Link to v19: https://patch.msgid.link/20261008-kaanapali-camss-v19-0-b2c583ef50e0@oss.qualcomm.com
Changes in v19:
- Remove the internal CSIPHY hardware operations for CAMSS - bod
- Collect RBs tags from Bryan and Rob for CAMSS binding - bod/Rob
- Split the PHY and CAMSS into separate parts and document the
corresponding maintainers in cover letter - bod
- Link to v18: https://patch.msgid.link/20261003-kaanapali-camss-v18-0-87ba4ebe0db1@oss.qualcomm.com
Changes in v18:
- Rename CSID and VFE hardware version from Gen4 to 1080 - bod
- Correct the description for CAMSS ports in binding - Krzysztof
- Add lane count fallback path for CSID RX configuration - Sashiko
- Align the TFE lite line count with the commit description - Sashiko
- Use hyphenated pattern for MCLK node names - Sashiko
- Resolve conflicts introduced by Glymur in CSI2 PHY binding
- Correct the spelling mistakes in cover letter and enhance commit
description for compatible and CSIPHY
- Link to v17: https://lore.kernel.org/r/20260928-kaanapali-camss-v17-0-dcf3fd37f76c@oss.qualcomm.com
Changes in v17:
- Rebase due to CSIPHY re-arch dependencies merged - bod
- Remove redundant CSIPHY resources in CAMSS block
- Enhance the commit title description for CAMSS and CSIPHY blocks
- Collet RBs from Loic
- Link to v16: https://lore.kernel.org/r/20260915-kaanapali-camss-v16-0-c9f3f6f4180c@oss.qualcomm.com
Changes in v16:
- Remove RBs for binding, CSIPHY and CAMSS DT as tags stale due to
split-CSIPHY re-arch - Krzysztof
- Update CAMSS bindings and driver support for the standalone CSI2 PHY
provider and graph-based PHY lookup model - bod
- Add the CDM IOMMU stream and simplify CAMSS binding example part by
removing redundant subnodes - bod
- Improve commit descriptions for CAMSS compatible, CSID, VFE, TPG
- Clarify the common-status-offset change with x1e80100 compatibility
details and future SoC offset considerations
- Add Kaanapali camera DT descriptions, including CAMSS, six CSIPHYs,
three CCI controllers, camera-control I2C, and MCLK pinctrl states
- Rename I2C and MCLK pinctrl nodes to include interface identifiers
- Link to v15: https://lore.kernel.org/r/20260720-kaanapali-camss-v15-0-c0b1c1167c5d@oss.qualcomm.com
Changes in v15:
- Add TPG v2.4.0 support
- Drive the CSIPHY through the standalone phy-qcom-mipi-csi2 DPHY
driver, which let CAMSS csiphy_res only carry id, ops and formats
- Add a preparatory patch parametrising the PHY common status offset
- Add the mipi_csi2_dphy_3nm_kaanapali config and "qcom,kaanapali-csi2-phy"
based on the new split-csiphy arch
- Link to v14: https://lore.kernel.org/r/20260601-kaanapali-camss-v14-0-e76f26aa6691@oss.qualcomm.com
Changes in v14:
- Define 'CSI2_RX_CFG0_PHY_SEL_BASE_IDX' locally in camss-csid-gen4.c - bod
- Align csiphy lane registers value capitalization and case rule for 2.4.0
- Rebase this series due to conflict - bod
- Link to v13: https://lore.kernel.org/r/20260508-kaanapali-camss-v13-0-2541d8e55651@oss.qualcomm.com
Changes in v13:
- Remove prerequisite dependencies that have been merged upstream
- Remove redundant empty 'regulators' initializers in csid and vfe - bod
- Revert binding from full hardware description to CAMSS-only scope for
modular and incremental development - bod
- Rename icc path names and vfe clock names to drop redundancies - Krzysztof
- Separate port index from VC value in csid_configure_stream(). Previously
vc was used as both the loop iterator and the hardware VC, causing
misconfiguration on RDI path starting from 1 - bod
- Link to v12: https://lore.kernel.org/all/20260112-kaanapali-camss-v12-0-15b7af73401e@oss.qualcomm.com/
Changes in v12:
- Add CSIPHY regulator current due to regulator interface changed - bod
- Link to v11: https://lore.kernel.org/r/20260112-kaanapali-camss-v11-0-81e4f59a5d08@oss.qualcomm.com
Changes in v11:
- Rebase this series due to conflict - bod
- Update binding commit message to align with previous generations
- Link to v10: https://lore.kernel.org/r/20251211-add-support-for-camss-on-kaanapali-v10-0-39e8874dcd27@oss.qualcomm.com
Changes in v10:
- Update interconnect and CX domain AXI clock names to be consistent with
previous generations - bod
- Update the struct name for csiphy lane register settings to make it reusable
for other compatible chipsets
- Updated power domain names to IFE for consistency - Krzysztof
- Add description for acronyms listed in binding commit message - Dmitry
- Link to v9: https://lore.kernel.org/r/20251208-add-support-for-camss-on-kaanapali-v9-0-3fcd31258415@oss.qualcomm.com
Changes in v9:
- Updates the names of some of the resources in DT bindings to be consistent
with previous generations and improve the commit its message. The name
changes are also applied to csiphy and vfe camss resource lists - bod
- Link to v8: https://lore.kernel.org/r/20251130-add-support-for-camss-on-kaanapali-v8-0-143a8265e6e8@oss.qualcomm.com
Changes in v8:
- Change csid and vfe driver file names as 'gen4' to reuse for other SOCs - bod
- Add missing register descriptions to binding and cover letter commit log - bod
- Link to v7: https://lore.kernel.org/r/20251120-add-support-for-camss-on-kaanapali-v7-0-de27f9a67ce6@oss.qualcomm.com
Changes in v7:
- Add ICP SYS registers to camss binding - bod
- Rename 'is_deferred' to 'reg_update_after_csid_config' to do rup/aup
after csid config to make it clearer and simplify its call path - bod
- Remove unnecessary bitwise AND while configuring image address to bus- bod
- Tidy up a comment and a couple of hex values and csid/vfe - bod
- Link to v6: https://lore.kernel.org/r/20251113-add-support-for-camss-on-kaanapali-v6-0-1e6038785a8e@oss.qualcomm.com
Changes in v6:
- Modified the bindings to represent the whole of the camera hardware on
KNP than just what is exercised by the CAMSS driver by extending the
descriptions and the properties, the regs, clocks, interrupts, power
domains, iommus etc. In addition, use the word 'vfe' everywhere in the
bindings to be clear that all of those resources are referring to the
same front end modules. - Krzysztof/bod
- Change camss vfe power domain names to align with the binding file
- Link to v5: https://lore.kernel.org/r/20251030-add-support-for-camss-on-kaanapali-v5-0-f8e12bea3d02@oss.qualcomm.com
Changes in v5:
- Refine v4 change log - Krzysztof
- Fix typo by removing redundant numerical version in kaanapali camss binding
comment description - Krzysztof
- Add missing tags that should be posted with v4 revision - Krzysztof/Andi
- Link to v4: https://lore.kernel.org/r/20251028-add-support-for-camss-on-kaanapali-v4-0-7eb484c89585@oss.qualcomm.com
Changes in v4:
- Add detailed hardware descriptions and revise message title to follow the
standard comment format for kaanapali camss binding file - Krzysztof
- Format kaanapali camss binding file to keep style consistency, by reverting
power domain name from TFE to IFE and keeping clocks name order as last
generation - Krzysztof
- Separate the 1.2 and 0.9 voltage supply DT flags for each CSIPHY to allow
for arbitrary board design with common or unique supplies to each of the PHYs
in kaanapali camss binding example, based on v2 comments - bod/Vladimir
- Link to v3: https://lore.kernel.org/r/20251023-add-support-for-camss-on-kaanapali-v3-0-02abc9a107bf@oss.qualcomm.com
Changes in v3:
- Use the name 'ahb' for 'cam_top_ahb' clock in cci binding file - Vladimir
- Reduce and simplify CSIPHY supply, port properties in camss bindings - Vladimir
- Resolve the dependency issues in the camss bindings file using ephemeral
DT nodes - Vladimir/Dmitry
- Update hf mnoc name and bandwidth values for icc module - bod
- Split CSIPHY status macro changes into a separate patch series - bod
- Add clear functions for AUP/RUP update in csid and vfe for consistency - bod
- Clarify why the RUP and AUP register update process is deferred - bod
- Clarify the necessity to keep NRT clocks for vfe - Vijay
- Link to v2: https://lore.kernel.org/r/20251014-add-support-for-camss-on-kaanapali-v2-0-f5745ba2dff9@oss.qualcomm.com
Changes in v2:
- Aggregate CSI2_RX_CFG0_PHY_SEL_BASE_IDX definition into 'camss-csid.h' - bod
- Remove 'camss-csid-1080.h' and use 'camss-csid-gen3.h' header instead - bod
- Remove redundant code in 'camss-csid-1080.c' and align the namespaces - bod
- Slipt 'camnoc_rt_axi' clock in vfe matching list into a single patch - bod
- Add whole vfe write engine client mappings in comment - bod
- Remove hardcoded image buffer number but use 'CAMSS_INIT_BUF_COUNT' - bod
- Remove SoC specific logic for vfe ops->reg_update and add a new variable
to determine whether ops->reg_update is deferred or not - bod
- Add description to explain why 'qdss_debug_xo' should be retained - bod
- Add the procss node in csiphy register list comment - bod
- Rename the variable 'cmn_status_offset' to 'common_status_offset' and
align this with macro in csiphy register structure to avoid ambiguity - bod
- Aggregate Kaanapali items into the definition that introduced by
'qcom,qcm2290-cci' in cci binding file - Loic
- Format 'kaanpali-camss.yaml' binding file
- Link to v1: https://lore.kernel.org/r/20250924-knp-cam-v1-0-b72d6deea054@oss.qualcomm.com
---
Hangxiang Ma (4):
arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions
arm64: dts: qcom: kaanapali: Add CCI controller nodes
arm64: dts: qcom: kaanapali: Add camera MCLK pinctrl
arm64: dts: qcom: kaanapali-mtp-camera-s5kjn5: Add DT overlay
arch/arm64/boot/dts/qcom/Makefile | 5 +
.../boot/dts/qcom/kaanapali-mtp-camera-s5kjn5.dtso | 81 +++
arch/arm64/boot/dts/qcom/kaanapali-mtp.dts | 7 +
arch/arm64/boot/dts/qcom/kaanapali.dtsi | 758 +++++++++++++++++++++
4 files changed, 851 insertions(+)
---
base-commit: 7de7fb8ebb0c9ebc7ad6677974d715ee630496ea
change-id: 20260112-kaanapali-camss-73772d44eff7
Best regards,
--
Hangxiang Ma <hangxiang.ma@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions 2026-12-02 14:42 [PATCH v26 0/4] media: qcom: camss: Add Kaanapali support Hangxiang Ma @ 2026-12-02 14:42 ` Hangxiang Ma 2026-12-02 14:56 ` sashiko-bot 2026-12-02 14:42 ` [PATCH v26 2/4] arm64: dts: qcom: kaanapali: Add CCI controller nodes Hangxiang Ma ` (2 subsequent siblings) 3 siblings, 1 reply; 6+ messages in thread From: Hangxiang Ma @ 2026-12-02 14:42 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-arm-msm, devicetree, linux-kernel, jeyaprakash.soundrapandian, Vijay Kumar Tumati, Hangxiang Ma, Konrad Dybcio, Abel Vesa Describe the CAMSS and CSIPHY blocks on Kaanapali so that camera pipelines can be enabled by board device trees. The camera subsystem contains: - 6 x CSIPHY (CSI Physical Layer) - 3 x TPG (Test Pattern Generator) - 3 x CSID (CSI Decoder) - 2 x CSID Lite - 3 x VFE (Video Front End), 5 RDI per VFE - 2 x VFE Lite, 4 RDI per VFE Lite Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Signed-off-by: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 399 ++++++++++++++++++++++++++++++++ 1 file changed, 399 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/kaanapali.dtsi b/arch/arm64/boot/dts/qcom/kaanapali.dtsi index 132577d540bf..807bca6d5bfa 100644 --- a/arch/arm64/boot/dts/qcom/kaanapali.dtsi +++ b/arch/arm64/boot/dts/qcom/kaanapali.dtsi @@ -20,6 +20,7 @@ #include <dt-bindings/interconnect/qcom,kaanapali-rpmh.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/mailbox/qcom-ipcc.h> +#include <dt-bindings/phy/phy.h> #include <dt-bindings/phy/phy-qcom-qmp.h> #include <dt-bindings/power/qcom-rpmpd.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> @@ -3614,6 +3615,382 @@ usb_dp_qmpphy_dp_in: endpoint { }; }; + camss: isp@900b000 { + compatible = "qcom,kaanapali-camss"; + + reg = <0x0 0x0900b000 0x0 0x1000>, + <0x0 0x09253000 0x0 0x5e80>, + <0x0 0x09263000 0x0 0x5e80>, + <0x0 0x09273000 0x0 0x5e80>, + <0x0 0x092d3000 0x0 0x3880>, + <0x0 0x092e7000 0x0 0x3880>, + <0x0 0x093fd000 0x0 0x400>, + <0x0 0x093fe000 0x0 0x400>, + <0x0 0x093ff000 0x0 0x400>, + <0x0 0x09151000 0x0 0x20000>, + <0x0 0x09171000 0x0 0x20000>, + <0x0 0x09191000 0x0 0x20000>, + <0x0 0x092dc000 0x0 0x1300>, + <0x0 0x092f0000 0x0 0x1300>; + reg-names = "top", + "csid0", + "csid1", + "csid2", + "csid_lite0", + "csid_lite1", + "tpg0", + "tpg1", + "tpg2", + "vfe0", + "vfe1", + "vfe2", + "vfe_lite0", + "vfe_lite1"; + + clocks = <&camcc CAM_CC_CAMNOC_NRT_AXI_CLK>, + <&camcc CAM_CC_CAMNOC_RT_AXI_CLK>, + <&camcc CAM_CC_CAM_TOP_AHB_CLK>, + <&camcc CAM_CC_CAM_TOP_FAST_AHB_CLK>, + <&camcc CAM_CC_CAMNOC_RT_TFE_0_MAIN_CLK>, + <&camcc CAM_CC_CAMNOC_RT_TFE_1_MAIN_CLK>, + <&camcc CAM_CC_CAMNOC_RT_TFE_2_MAIN_CLK>, + <&camcc CAM_CC_CAMNOC_RT_IFE_LITE_CLK>, + <&camcc CAM_CC_CSID_CLK>, + <&camcc CAM_CC_CSID_CSIPHY_RX_CLK>, + <&gcc GCC_CAMERA_HF_AXI_CLK>, + <&camcc CAM_CC_TFE_0_MAIN_CLK>, + <&camcc CAM_CC_TFE_0_MAIN_FAST_AHB_CLK>, + <&camcc CAM_CC_TFE_1_MAIN_CLK>, + <&camcc CAM_CC_TFE_1_MAIN_FAST_AHB_CLK>, + <&camcc CAM_CC_TFE_2_MAIN_CLK>, + <&camcc CAM_CC_TFE_2_MAIN_FAST_AHB_CLK>, + <&camcc CAM_CC_IFE_LITE_CLK>, + <&camcc CAM_CC_IFE_LITE_AHB_CLK>, + <&camcc CAM_CC_IFE_LITE_CPHY_RX_CLK>, + <&camcc CAM_CC_IFE_LITE_CSID_CLK>, + <&camcc CAM_CC_QDSS_DEBUG_XO_CLK>; + clock-names = "camnoc_nrt_axi", + "camnoc_rt_axi", + "cpas_ahb", + "cpas_fast_ahb", + "cpas_vfe0", + "cpas_vfe1", + "cpas_vfe2", + "cpas_vfe_lite", + "csid", + "csiphy_rx", + "gcc_axi_hf", + "vfe0", + "vfe0_fast_ahb", + "vfe1", + "vfe1_fast_ahb", + "vfe2", + "vfe2_fast_ahb", + "vfe_lite", + "vfe_lite_ahb", + "vfe_lite_cphy_rx", + "vfe_lite_csid", + "qdss_debug_xo"; + + interrupts = <GIC_SPI 601 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 603 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 431 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 605 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 376 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 433 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 436 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 457 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 606 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 377 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "csid0", + "csid1", + "csid2", + "csid_lite0", + "csid_lite1", + "vfe0", + "vfe1", + "vfe2", + "vfe_lite0", + "vfe_lite1"; + + interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &config_noc SLAVE_CAMERA_CFG QCOM_ICC_TAG_ACTIVE_ONLY>, + <&mmss_noc MASTER_CAMNOC_HF QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "ahb", + "hf_mnoc"; + + iommus = <&apps_smmu 0x1c00 0x00>; + + power-domains = <&camcc CAM_CC_TFE_0_GDSC>, + <&camcc CAM_CC_TFE_1_GDSC>, + <&camcc CAM_CC_TFE_2_GDSC>, + <&camcc CAM_CC_TITAN_TOP_GDSC>; + power-domain-names = "ife0", + "ife1", + "ife2", + "top"; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + camss_csiphy0_in_port: port@0 { + reg = <0>; + }; + + camss_csiphy1_in_port: port@1 { + reg = <1>; + }; + + camss_csiphy2_in_port: port@2 { + reg = <2>; + }; + + camss_csiphy3_in_port: port@3 { + reg = <3>; + }; + + camss_csiphy4_in_port: port@4 { + reg = <4>; + }; + + camss_csiphy5_in_port: port@5 { + reg = <5>; + }; + }; + }; + + csiphy0: phy@9523000 { + compatible = "qcom,kaanapali-csi2-phy"; + reg = <0x0 0x09523000 0x0 0x2000>; + + clocks = <&camcc CAM_CC_CSIPHY0_CLK>, + <&camcc CAM_CC_CSI0PHYTIMER_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>; + clock-names = "core", + "timer", + "ahb"; + + interrupts = <GIC_SPI 477 IRQ_TYPE_EDGE_RISING>; + + operating-points-v2 = <&csiphy_mxc_opp_table>; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>, + <&rpmhpd RPMHPD_MMCX>, + <&rpmhpd RPMHPD_MXC>; + power-domain-names = "top", + "mmcx", + "mx"; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csiphy0_in_port: port@0 { + reg = <0>; + }; + + csiphy0_out_port: port@1 { + reg = <1>; + }; + }; + }; + + csiphy1: phy@9525000 { + compatible = "qcom,kaanapali-csi2-phy"; + reg = <0x0 0x09525000 0x0 0x2000>; + + clocks = <&camcc CAM_CC_CSIPHY1_CLK>, + <&camcc CAM_CC_CSI1PHYTIMER_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>; + clock-names = "core", + "timer", + "ahb"; + + interrupts = <GIC_SPI 478 IRQ_TYPE_EDGE_RISING>; + + operating-points-v2 = <&csiphy_mxc_opp_table>; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>, + <&rpmhpd RPMHPD_MMCX>, + <&rpmhpd RPMHPD_MXC>; + power-domain-names = "top", + "mmcx", + "mx"; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csiphy1_in_port: port@0 { + reg = <0>; + }; + + csiphy1_out_port: port@1 { + reg = <1>; + }; + }; + }; + + csiphy2: phy@9527000 { + compatible = "qcom,kaanapali-csi2-phy"; + reg = <0x0 0x09527000 0x0 0x2000>; + + clocks = <&camcc CAM_CC_CSIPHY2_CLK>, + <&camcc CAM_CC_CSI2PHYTIMER_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>; + clock-names = "core", + "timer", + "ahb"; + + interrupts = <GIC_SPI 479 IRQ_TYPE_EDGE_RISING>; + + operating-points-v2 = <&csiphy_mxc_opp_table>; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>, + <&rpmhpd RPMHPD_MMCX>, + <&rpmhpd RPMHPD_MXC>; + power-domain-names = "top", + "mmcx", + "mx"; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csiphy2_in_port: port@0 { + reg = <0>; + }; + + csiphy2_out_port: port@1 { + reg = <1>; + }; + }; + }; + + csiphy3: phy@9529000 { + compatible = "qcom,kaanapali-csi2-phy"; + reg = <0x0 0x09529000 0x0 0x2000>; + + clocks = <&camcc CAM_CC_CSIPHY3_CLK>, + <&camcc CAM_CC_CSI3PHYTIMER_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>; + clock-names = "core", + "timer", + "ahb"; + + interrupts = <GIC_SPI 448 IRQ_TYPE_EDGE_RISING>; + + operating-points-v2 = <&csiphy_mxc_opp_table>; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>, + <&rpmhpd RPMHPD_MMCX>, + <&rpmhpd RPMHPD_MXC>; + power-domain-names = "top", + "mmcx", + "mx"; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csiphy3_in_port: port@0 { + reg = <0>; + }; + + csiphy3_out_port: port@1 { + reg = <1>; + }; + }; + }; + + csiphy4: phy@952b000 { + compatible = "qcom,kaanapali-csi2-phy"; + reg = <0x0 0x0952b000 0x0 0x2000>; + + clocks = <&camcc CAM_CC_CSIPHY4_CLK>, + <&camcc CAM_CC_CSI4PHYTIMER_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>; + clock-names = "core", + "timer", + "ahb"; + + interrupts = <GIC_SPI 122 IRQ_TYPE_EDGE_RISING>; + + operating-points-v2 = <&csiphy_mxc_opp_table>; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>, + <&rpmhpd RPMHPD_MMCX>, + <&rpmhpd RPMHPD_MXC>; + power-domain-names = "top", + "mmcx", + "mx"; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csiphy4_in_port: port@0 { + reg = <0>; + }; + + csiphy4_out_port: port@1 { + reg = <1>; + }; + }; + }; + + csiphy5: phy@952d000 { + compatible = "qcom,kaanapali-csi2-phy"; + reg = <0x0 0x0952d000 0x0 0x2000>; + + clocks = <&camcc CAM_CC_CSIPHY5_CLK>, + <&camcc CAM_CC_CSI5PHYTIMER_CLK>, + <&camcc CAM_CC_CORE_AHB_CLK>; + clock-names = "core", + "timer", + "ahb"; + + interrupts = <GIC_SPI 89 IRQ_TYPE_EDGE_RISING>; + + operating-points-v2 = <&csiphy_mxc_opp_table>; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>, + <&rpmhpd RPMHPD_MMCX>, + <&rpmhpd RPMHPD_MXC>; + power-domain-names = "top", + "mmcx", + "mx"; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + csiphy5_in_port: port@0 { + reg = <0>; + }; + + csiphy5_out_port: port@1 { + reg = <1>; + }; + }; + }; + camcc: clock-controller@956d000 { compatible = "qcom,kaanapali-camcc"; reg = <0x0 0x0956d000 0x0 0x80000>; @@ -6566,6 +6943,28 @@ pdp_tx: scp-sram-section@100 { }; }; + csiphy_mxc_opp_table: opp-table-mxc { + compatible = "operating-points-v2"; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + required-opps = <&rpmhpd_opp_low_svs_d1>, + <&rpmhpd_opp_low_svs_d1>; + }; + + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + required-opps = <&rpmhpd_opp_low_svs>, + <&rpmhpd_opp_low_svs>; + }; + + opp-480000000 { + opp-hz = /bits/ 64 <480000000>; + required-opps = <&rpmhpd_opp_low_svs>, + <&rpmhpd_opp_low_svs>; + }; + }; + thermal-zones { cpullc-0-0-thermal { thermal-sensors = <&tsens0 0>; -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions 2026-12-02 14:42 ` [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions Hangxiang Ma @ 2026-12-02 14:56 ` sashiko-bot 0 siblings, 0 replies; 6+ messages in thread From: sashiko-bot @ 2026-12-02 14:56 UTC (permalink / raw) To: Hangxiang Ma; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] arm64: dts: qcom: kaanapali: csiphy_mxc_opp_table uses invalid 300 MHz OPP - [Low] arm64: dts: qcom: kaanapali: unused phy.h include and opp-table-mxc order -- commit b7929ea53a4609ad74d3aaa49a2d3680b0247558 Author: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com> arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions This commit adds device tree nodes for the CAMSS camera subsystem, six CSIPHY instances, and the CSIPHY MXC OPP table on the Qualcomm Kaanapali SoC. > diff --git a/arch/arm64/boot/dts/qcom/kaanapali.dtsi b/arch/arm64/boot/dts/qcom/kaanapali.dtsi > index 132577d540bfb..807bca6d5bfa7 100644 > --- a/arch/arm64/boot/dts/qcom/kaanapali.dtsi > +++ b/arch/arm64/boot/dts/qcom/kaanapali.dtsi > @@ -20,6 +20,7 @@ > #include <dt-bindings/interconnect/qcom,kaanapali-rpmh.h> > #include <dt-bindings/interrupt-controller/arm-gic.h> > #include <dt-bindings/mailbox/qcom-ipcc.h> > +#include <dt-bindings/phy/phy.h> > #include <dt-bindings/phy/phy-qcom-qmp.h> > #include <dt-bindings/power/qcom-rpmpd.h> > #include <dt-bindings/regulator/qcom,rpmh-regulator.h> [Severity: Low] This isn't a bug, but dt-bindings/phy/phy.h is not used in this file. Also, the top-level opp-table-mxc node added below sits between soc@0 and thermal-zones instead of in alphabetical order by node name (between memory@a0000000 and pmu). [ ... ] > @@ -6566,6 +6943,28 @@ pdp_tx: scp-sram-section@100 { > }; > }; > > + csiphy_mxc_opp_table: opp-table-mxc { > + compatible = "operating-points-v2"; > + > + opp-300000000 { > + opp-hz = /bits/ 64 <300000000>; > + required-opps = <&rpmhpd_opp_low_svs_d1>, > + <&rpmhpd_opp_low_svs_d1>; > + }; > + > + opp-400000000 { > + opp-hz = /bits/ 64 <400000000>; > + required-opps = <&rpmhpd_opp_low_svs>, > + <&rpmhpd_opp_low_svs>; > + }; [Severity: High] Should opp-300000000 in csiphy_mxc_opp_table be 266666667 Hz instead? The CSIPHY core clocks (CAM_CC_CSIPHY0_CLK through CAM_CC_CSIPHY5_CLK) derive from cam_cc_cphy_rx_clk_src, which uses clk_rcg2_shared_ops (ceiling rate lookup) with the following frequency table: drivers/clk/qcom/camcc-kaanapali.c: static const struct freq_tbl ftbl_cam_cc_cphy_rx_clk_src[] = { F(266666667, P_CAM_CC_PLL0_OUT_MAIN, 4.5, 0, 0), F(400000000, P_CAM_CC_PLL0_OUT_MAIN, 3, 0, 0), F(480000000, P_CAM_CC_PLL0_OUT_MAIN, 2.5, 0, 0), { } }; When phy_qcom_mipi_csi2_set_clock_rates() powers on a CSIPHY for a sensor link frequency at or below 1.2 GHz (link_freq / 4 <= 300 MHz), dev_pm_opp_find_freq_ceil() selects opp-300000000 and dev_pm_opp_set_rate() votes RPMHPD_MMCX and RPMHPD_MXC to rpmhpd_opp_low_svs_d1 before requesting 300 MHz on the core clock. Because 300 MHz exceeds 266666667 Hz, the RCG rounds the core clock up to 400 MHz while leaving MMCX and MXC at rpmhpd_opp_low_svs_d1 instead of the rpmhpd_opp_low_svs level required for 400 MHz, and 266.67 MHz can never be selected. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261202-kaanapali-camss-v26-0-1b7285860a7d@oss.qualcomm.com?part=1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v26 2/4] arm64: dts: qcom: kaanapali: Add CCI controller nodes 2026-12-02 14:42 [PATCH v26 0/4] media: qcom: camss: Add Kaanapali support Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions Hangxiang Ma @ 2026-12-02 14:42 ` Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 3/4] arm64: dts: qcom: kaanapali: Add camera MCLK pinctrl Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 4/4] arm64: dts: qcom: kaanapali-mtp-camera-s5kjn5: Add DT overlay Hangxiang Ma 3 siblings, 0 replies; 6+ messages in thread From: Hangxiang Ma @ 2026-12-02 14:42 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-arm-msm, devicetree, linux-kernel, jeyaprakash.soundrapandian, Vijay Kumar Tumati, Hangxiang Ma, Vladimir Zapolskiy, Konrad Dybcio, Abel Vesa, Loic Poulain Add the three Camera Control Interface (CCI) controllers present on the Kaanapali SoC. Each controller provides two I2C hosts used for camera sensor control, so define the controller nodes and their pinctrl states. The first bus has two CCI bus master pinouts: cci_i2c_sda0 = gpio109 cci_i2c_scl0 = gpio110 cci_i2c_sda1 = gpio111 cci_i2c_scl1 = gpio112 The second bus has two CCI bus master pinouts: cci_i2c_sda3 = gpio113 cci_i2c_scl3 = gpio114 cci_i2c_sda4 = gpio107 cci_i2c_scl4 = gpio160 The third bus has two CCI bus master pinouts: cci_i2c_sda5 = gpio108 cci_i2c_scl5 = gpio149 cci_i2c_sda6 = gpio115 cci_i2c_scl6 = gpio116 Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Acked-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com> Signed-off-by: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 303 ++++++++++++++++++++++++++++++++ 1 file changed, 303 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/kaanapali.dtsi b/arch/arm64/boot/dts/qcom/kaanapali.dtsi index 807bca6d5bfa..382939c33915 100644 --- a/arch/arm64/boot/dts/qcom/kaanapali.dtsi +++ b/arch/arm64/boot/dts/qcom/kaanapali.dtsi @@ -3763,6 +3763,117 @@ camss_csiphy5_in_port: port@5 { }; }; + cci0: cci@941b000 { + compatible = "qcom,kaanapali-cci", "qcom,msm8996-cci"; + reg = <0x0 0x0941b000 0x0 0x1000>; + + interrupts = <GIC_SPI 426 IRQ_TYPE_EDGE_RISING>; + + clocks = <&camcc CAM_CC_CAM_TOP_AHB_CLK>, + <&camcc CAM_CC_CCI_0_CLK>; + clock-names = "ahb", + "cci"; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + + pinctrl-0 = <&cci0_i2c0_default &cci0_i2c1_default>; + pinctrl-1 = <&cci0_i2c0_sleep &cci0_i2c1_sleep>; + pinctrl-names = "default", "sleep"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + cci0_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + cci0_i2c1: i2c-bus@1 { + reg = <1>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + cci1: cci@941c000 { + compatible = "qcom,kaanapali-cci", "qcom,msm8996-cci"; + reg = <0x0 0x0941c000 0x0 0x1000>; + + interrupts = <GIC_SPI 427 IRQ_TYPE_EDGE_RISING>; + + clocks = <&camcc CAM_CC_CAM_TOP_AHB_CLK>, + <&camcc CAM_CC_CCI_1_CLK>; + clock-names = "ahb", + "cci"; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + + pinctrl-0 = <&cci1_i2c0_default &cci1_i2c1_default>; + pinctrl-1 = <&cci1_i2c0_sleep &cci1_i2c1_sleep>; + pinctrl-names = "default", "sleep"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + cci1_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + cci1_i2c1: i2c-bus@1 { + reg = <1>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + cci2: cci@941d000 { + compatible = "qcom,kaanapali-cci", "qcom,msm8996-cci"; + reg = <0x0 0x0941d000 0x0 0x1000>; + + interrupts = <GIC_SPI 428 IRQ_TYPE_EDGE_RISING>; + + clocks = <&camcc CAM_CC_CAM_TOP_AHB_CLK>, + <&camcc CAM_CC_CCI_2_CLK>; + clock-names = "ahb", + "cci"; + + power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>; + + pinctrl-0 = <&cci2_i2c0_default &cci2_i2c1_default>; + pinctrl-1 = <&cci2_i2c0_sleep &cci2_i2c1_sleep>; + pinctrl-names = "default", "sleep"; + + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + + cci2_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + cci2_i2c1: i2c-bus@1 { + reg = <1>; + clock-frequency = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + csiphy0: phy@9523000 { compatible = "qcom,kaanapali-csi2-phy"; reg = <0x0 0x09523000 0x0 0x2000>; @@ -4552,6 +4663,198 @@ tlmm: pinctrl@f100000 { #interrupt-cells = <2>; wakeup-parent = <&pdc>; + cci0_i2c0_default: cci0-i2c0-default-state { + scl-pins { + pins = "gpio110"; + function = "cci_i2c_scl"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio109"; + function = "cci_i2c_sda"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci0_i2c0_sleep: cci0-i2c0-sleep-state { + scl-pins { + pins = "gpio110"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio109"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci0_i2c1_default: cci0-i2c1-default-state { + scl-pins { + pins = "gpio112"; + function = "cci_i2c_scl"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio111"; + function = "cci_i2c_sda"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci0_i2c1_sleep: cci0-i2c1-sleep-state { + scl-pins { + pins = "gpio112"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio111"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci1_i2c0_default: cci1-i2c0-default-state { + scl-pins { + pins = "gpio114"; + function = "cci_i2c_scl"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio113"; + function = "cci_i2c_sda"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci1_i2c0_sleep: cci1-i2c0-sleep-state { + scl-pins { + pins = "gpio114"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio113"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci1_i2c1_default: cci1-i2c1-default-state { + scl-pins { + pins = "gpio160"; + function = "cci_i2c_scl"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio107"; + function = "cci_i2c_sda"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci1_i2c1_sleep: cci1-i2c1-sleep-state { + scl-pins { + pins = "gpio160"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio107"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci2_i2c0_default: cci2-i2c0-default-state { + scl-pins { + pins = "gpio149"; + function = "cci_i2c_scl"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio108"; + function = "cci_i2c_sda"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci2_i2c0_sleep: cci2-i2c0-sleep-state { + scl-pins { + pins = "gpio149"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio108"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci2_i2c1_default: cci2-i2c1-default-state { + scl-pins { + pins = "gpio116"; + function = "cci_i2c_scl"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio115"; + function = "cci_i2c_sda"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci2_i2c1_sleep: cci2-i2c1-sleep-state { + scl-pins { + pins = "gpio116"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + sda-pins { + pins = "gpio115"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + hub_i2c0_data_clk: hub-i2c0-data-clk-state { /* SDA, SCL */ pins = "gpio66", "gpio67"; -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v26 3/4] arm64: dts: qcom: kaanapali: Add camera MCLK pinctrl 2026-12-02 14:42 [PATCH v26 0/4] media: qcom: camss: Add Kaanapali support Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 2/4] arm64: dts: qcom: kaanapali: Add CCI controller nodes Hangxiang Ma @ 2026-12-02 14:42 ` Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 4/4] arm64: dts: qcom: kaanapali-mtp-camera-s5kjn5: Add DT overlay Hangxiang Ma 3 siblings, 0 replies; 6+ messages in thread From: Hangxiang Ma @ 2026-12-02 14:42 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-arm-msm, devicetree, linux-kernel, jeyaprakash.soundrapandian, Vijay Kumar Tumati, Hangxiang Ma, Konrad Dybcio, Vladimir Zapolskiy Add TLMM pinctrl states for the camera master clock GPIOs on Kaanapali so camera sensor nodes can select the proper MCLK pin functions when enabled. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Signed-off-by: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/kaanapali.dtsi b/arch/arm64/boot/dts/qcom/kaanapali.dtsi index 382939c33915..a9f63bf6ce42 100644 --- a/arch/arm64/boot/dts/qcom/kaanapali.dtsi +++ b/arch/arm64/boot/dts/qcom/kaanapali.dtsi @@ -4663,6 +4663,62 @@ tlmm: pinctrl@f100000 { #interrupt-cells = <2>; wakeup-parent = <&pdc>; + cam_mclk0_default: cam-mclk0-default-state { + pins = "gpio89"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk1_default: cam-mclk1-default-state { + pins = "gpio90"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk2_default: cam-mclk2-default-state { + pins = "gpio91"; + function = "cam_asc_mclk2"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk3_default: cam-mclk3-default-state { + pins = "gpio92"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk4_default: cam-mclk4-default-state { + pins = "gpio93"; + function = "cam_asc_mclk4"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk5_default: cam-mclk5-default-state { + pins = "gpio94"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk6_default: cam-mclk6-default-state { + pins = "gpio95"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + cam_mclk7_default: cam-mclk7-default-state { + pins = "gpio96"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + cci0_i2c0_default: cci0-i2c0-default-state { scl-pins { pins = "gpio110"; -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v26 4/4] arm64: dts: qcom: kaanapali-mtp-camera-s5kjn5: Add DT overlay 2026-12-02 14:42 [PATCH v26 0/4] media: qcom: camss: Add Kaanapali support Hangxiang Ma ` (2 preceding siblings ...) 2026-12-02 14:42 ` [PATCH v26 3/4] arm64: dts: qcom: kaanapali: Add camera MCLK pinctrl Hangxiang Ma @ 2026-12-02 14:42 ` Hangxiang Ma 3 siblings, 0 replies; 6+ messages in thread From: Hangxiang Ma @ 2026-12-02 14:42 UTC (permalink / raw) To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: linux-arm-msm, devicetree, linux-kernel, jeyaprakash.soundrapandian, Vijay Kumar Tumati, Hangxiang Ma, Bryan O'Donoghue, Abel Vesa, Nihal Kumar Gupta, Konrad Dybcio Enable the S5KJN5 image sensor via CCI on Kaanapali MTP board. The Kaanapali MTP board connect S5KJN5 with QUP I2C bus by default. This DTBO enables S5KJN5 on CCI-0 interface connected to the CSIPHY2 in four lane mode on a rework camera module. Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Reviewed-by: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com> Tested-by: Nihal Kumar Gupta <nihal.gupta@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com> --- arch/arm64/boot/dts/qcom/Makefile | 5 ++ .../boot/dts/qcom/kaanapali-mtp-camera-s5kjn5.dtso | 81 ++++++++++++++++++++++ arch/arm64/boot/dts/qcom/kaanapali-mtp.dts | 7 ++ 3 files changed, 93 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 19310879349d..07cdea5a74cf 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -61,6 +61,11 @@ dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp449.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp453.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp454.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq9650-rdp488.dtb +dtb-$(CONFIG_ARCH_QCOM) += kaanapali-mtp-camera-s5kjn5.dtbo + +kaanapali-mtp-camera-s5kjn5-dtbs := kaanapali-mtp.dtb kaanapali-mtp-camera-s5kjn5.dtbo + +dtb-$(CONFIG_ARCH_QCOM) += kaanapali-mtp-camera-s5kjn5.dtb dtb-$(CONFIG_ARCH_QCOM) += kaanapali-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += kaanapali-qrd.dtb dtb-$(CONFIG_ARCH_QCOM) += kaanapali-xiaomi-nezha-cn.dtb kaanapali-xiaomi-nezha-eea.dtb diff --git a/arch/arm64/boot/dts/qcom/kaanapali-mtp-camera-s5kjn5.dtso b/arch/arm64/boot/dts/qcom/kaanapali-mtp-camera-s5kjn5.dtso new file mode 100644 index 000000000000..d0e39855e0e6 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/kaanapali-mtp-camera-s5kjn5.dtso @@ -0,0 +1,81 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +/dts-v1/; +/plugin/; + +#include <dt-bindings/clock/qcom,kaanapali-cambistmclkcc.h> +#include <dt-bindings/clock/qcom,kaanapali-camcc.h> +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/media/video-interfaces.h> + +&camss { + status = "okay"; +}; + +&camss_csiphy2_in_port { + camss_csiphy2_inep: endpoint { + data-lanes = <1 2 3 4>; + remote-endpoint = <&csiphy2_out_ep>; + }; +}; + +&cci0 { + status = "okay"; +}; + +&cci0_i2c1 { + #address-cells = <1>; + #size-cells = <0>; + + camera@10 { + compatible = "samsung,s5kjn5"; + reg = <0x10>; + + reset-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&cam_mclk2_default &cam_reset2_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_l4n_1p8>; + vddd-supply = <&vreg_l1m_1p0>; + vdda-supply = <&vreg_l4m_2p2>; + vddio1p2-supply = <&vreg_l2n_1p2>; + afvdd-supply = <&vreg_l7m_2p8>; + + port { + s5kjn5_out_ep: endpoint { + data-lanes = <1 2 3 4>; + link-frequencies = /bits/ 64 <1248000000>; + remote-endpoint = <&csiphy2_in_ep>; + }; + }; + }; +}; + +&csiphy2 { + vdda-0p9-supply = <&vreg_l3d_0p8>; + vdda-1p2-supply = <&vreg_l1d_1p2>; + + status = "okay"; +}; + +&csiphy2_in_port { + csiphy2_in_ep: endpoint { + bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>; + clock-lanes = <0>; + data-lanes = <1 2 3 4>; + remote-endpoint = <&s5kjn5_out_ep>; + }; +}; + +&csiphy2_out_port { + csiphy2_out_ep: endpoint { + remote-endpoint = <&camss_csiphy2_inep>; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts b/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts index 9eb02fd09dab..c70cd39bcb75 100644 --- a/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts +++ b/arch/arm64/boot/dts/qcom/kaanapali-mtp.dts @@ -1243,6 +1243,13 @@ &tlmm { <119 2>, /* SoCCP */ <144 4>; /* CXM UART */ + cam_reset2_default: cam-reset2-default-state { + pins = "gpio3"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + }; + wlan_en: wlan-en-state { pins = "gpio16"; function = "gpio"; -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-12-02 14:56 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-12-02 14:42 [PATCH v26 0/4] media: qcom: camss: Add Kaanapali support Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 1/4] arm64: dts: qcom: kaanapali: Add CAMSS and CSIPHY block definitions Hangxiang Ma 2026-12-02 14:56 ` sashiko-bot 2026-12-02 14:42 ` [PATCH v26 2/4] arm64: dts: qcom: kaanapali: Add CCI controller nodes Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 3/4] arm64: dts: qcom: kaanapali: Add camera MCLK pinctrl Hangxiang Ma 2026-12-02 14:42 ` [PATCH v26 4/4] arm64: dts: qcom: kaanapali-mtp-camera-s5kjn5: Add DT overlay Hangxiang Ma
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.