From: Vladimir Zapolskiy <vz@kernel.org>
To: Bjorn Andersson <andersson@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Conor Dooley <conor+dt@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org
Subject: [PATCH 1/3] dt-bindings: clock: qcom: Add SM8350 camera clock controller
Date: Wed, 4 Nov 2026 02:17:02 +0200 [thread overview]
Message-ID: <20261104001704.2744766-2-vz@kernel.org> (raw)
In-Reply-To: <20261104001704.2744766-1-vz@kernel.org>
Add device tree bindings for the camera clock controller on Qualcomm
SM8350 SoC.
Signed-off-by: Vladimir Zapolskiy <vz@kernel.org>
---
.../bindings/clock/qcom,sm8350-camcc.yaml | 69 ++++++++
include/dt-bindings/clock/qcom,sm8350-camcc.h | 149 ++++++++++++++++++
2 files changed, 218 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/qcom,sm8350-camcc.yaml
create mode 100644 include/dt-bindings/clock/qcom,sm8350-camcc.h
diff --git a/Documentation/devicetree/bindings/clock/qcom,sm8350-camcc.yaml b/Documentation/devicetree/bindings/clock/qcom,sm8350-camcc.yaml
new file mode 100644
index 000000000000..f34562da4640
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/qcom,sm8350-camcc.yaml
@@ -0,0 +1,69 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/qcom,sm8350-camcc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Camera Clock & Reset Controller on SM8350
+
+maintainers:
+ - Vladimir Zapolskiy <vz@kernel.org>
+
+description: |
+ Qualcomm camera clock control module provides the clocks,
+ resets and power domains on SM8350.
+
+ See also:
+ include/dt-bindings/clock/qcom,sm8350-camcc.h
+
+properties:
+ compatible:
+ const: qcom,sm8350-camcc
+
+ clocks:
+ items:
+ - description: Board XO source
+ - description: Board active XO source
+ - description: Sleep clock source
+
+ power-domains:
+ items:
+ - description: MMCX power domain
+ - description: MX power domain
+
+ required-opps:
+ items:
+ - description: MMCX performance point
+ - description: MX performance point
+
+required:
+ - compatible
+ - clocks
+ - power-domains
+ - required-opps
+
+allOf:
+ - $ref: qcom,gcc.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,rpmh.h>
+ #include <dt-bindings/power/qcom,rpmhpd.h>
+
+ clock-controller@ad00000 {
+ compatible = "qcom,sm8350-camcc";
+ reg = <0x0ad00000 0x10000>;
+ clocks = <&rpmhcc RPMH_CXO_CLK>,
+ <&rpmhcc RPMH_CXO_CLK_A>,
+ <&sleep_clk>;
+ power-domains = <&rpmhpd RPMHPD_MMCX>,
+ <&rpmhpd RPMHPD_MX>;
+ required-opps = <&rpmhpd_opp_low_svs>,
+ <&rpmhpd_opp_svs_l1>;
+ #clock-cells = <1>;
+ #reset-cells = <1>;
+ #power-domain-cells = <1>;
+ };
+...
diff --git a/include/dt-bindings/clock/qcom,sm8350-camcc.h b/include/dt-bindings/clock/qcom,sm8350-camcc.h
new file mode 100644
index 000000000000..a854c9638df3
--- /dev/null
+++ b/include/dt-bindings/clock/qcom,sm8350-camcc.h
@@ -0,0 +1,149 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Copyright (c) 2019, The Linux Foundation. All rights reserved.
+ */
+
+#ifndef _DT_BINDINGS_CLK_QCOM_CAM_CC_SM8350_H
+#define _DT_BINDINGS_CLK_QCOM_CAM_CC_SM8350_H
+
+/* CAM_CC clocks */
+#define CAM_CC_BPS_AHB_CLK 0
+#define CAM_CC_BPS_AREG_CLK 1
+#define CAM_CC_BPS_AXI_CLK 2
+#define CAM_CC_BPS_CLK 3
+#define CAM_CC_BPS_CLK_SRC 4
+#define CAM_CC_CAMNOC_AXI_CLK 5
+#define CAM_CC_CAMNOC_AXI_CLK_SRC 6
+#define CAM_CC_CAMNOC_DCD_XO_CLK 7
+#define CAM_CC_CCI_0_CLK 8
+#define CAM_CC_CCI_0_CLK_SRC 9
+#define CAM_CC_CCI_1_CLK 10
+#define CAM_CC_CCI_1_CLK_SRC 11
+#define CAM_CC_CORE_AHB_CLK 12
+#define CAM_CC_CPAS_AHB_CLK 13
+#define CAM_CC_CPHY_RX_CLK_SRC 14
+#define CAM_CC_CSI0PHYTIMER_CLK 15
+#define CAM_CC_CSI0PHYTIMER_CLK_SRC 16
+#define CAM_CC_CSI1PHYTIMER_CLK 17
+#define CAM_CC_CSI1PHYTIMER_CLK_SRC 18
+#define CAM_CC_CSI2PHYTIMER_CLK 19
+#define CAM_CC_CSI2PHYTIMER_CLK_SRC 20
+#define CAM_CC_CSI3PHYTIMER_CLK 21
+#define CAM_CC_CSI3PHYTIMER_CLK_SRC 22
+#define CAM_CC_CSI4PHYTIMER_CLK 23
+#define CAM_CC_CSI4PHYTIMER_CLK_SRC 24
+#define CAM_CC_CSI5PHYTIMER_CLK 25
+#define CAM_CC_CSI5PHYTIMER_CLK_SRC 26
+#define CAM_CC_CSIPHY0_CLK 27
+#define CAM_CC_CSIPHY1_CLK 28
+#define CAM_CC_CSIPHY2_CLK 29
+#define CAM_CC_CSIPHY3_CLK 30
+#define CAM_CC_CSIPHY4_CLK 31
+#define CAM_CC_CSIPHY5_CLK 32
+#define CAM_CC_FAST_AHB_CLK_SRC 33
+#define CAM_CC_GDSC_CLK 34
+#define CAM_CC_ICP_AHB_CLK 35
+#define CAM_CC_ICP_CLK 36
+#define CAM_CC_ICP_CLK_SRC 37
+#define CAM_CC_IFE_0_AHB_CLK 38
+#define CAM_CC_IFE_0_AREG_CLK 39
+#define CAM_CC_IFE_0_AXI_CLK 40
+#define CAM_CC_IFE_0_CLK 41
+#define CAM_CC_IFE_0_CLK_SRC 42
+#define CAM_CC_IFE_0_CPHY_RX_CLK 43
+#define CAM_CC_IFE_0_CSID_CLK 44
+#define CAM_CC_IFE_0_CSID_CLK_SRC 45
+#define CAM_CC_IFE_0_DSP_CLK 46
+#define CAM_CC_IFE_1_AHB_CLK 47
+#define CAM_CC_IFE_1_AREG_CLK 48
+#define CAM_CC_IFE_1_AXI_CLK 49
+#define CAM_CC_IFE_1_CLK 50
+#define CAM_CC_IFE_1_CLK_SRC 51
+#define CAM_CC_IFE_1_CPHY_RX_CLK 52
+#define CAM_CC_IFE_1_CSID_CLK 53
+#define CAM_CC_IFE_1_CSID_CLK_SRC 54
+#define CAM_CC_IFE_1_DSP_CLK 55
+#define CAM_CC_IFE_2_AHB_CLK 56
+#define CAM_CC_IFE_2_AREG_CLK 57
+#define CAM_CC_IFE_2_AXI_CLK 58
+#define CAM_CC_IFE_2_CLK 59
+#define CAM_CC_IFE_2_CLK_SRC 60
+#define CAM_CC_IFE_2_CPHY_RX_CLK 61
+#define CAM_CC_IFE_2_CSID_CLK 62
+#define CAM_CC_IFE_2_CSID_CLK_SRC 63
+#define CAM_CC_IFE_LITE_AHB_CLK 64
+#define CAM_CC_IFE_LITE_AXI_CLK 65
+#define CAM_CC_IFE_LITE_CLK 66
+#define CAM_CC_IFE_LITE_CLK_SRC 67
+#define CAM_CC_IFE_LITE_CPHY_RX_CLK 68
+#define CAM_CC_IFE_LITE_CSID_CLK 69
+#define CAM_CC_IFE_LITE_CSID_CLK_SRC 70
+#define CAM_CC_IPE_0_AHB_CLK 71
+#define CAM_CC_IPE_0_AREG_CLK 72
+#define CAM_CC_IPE_0_AXI_CLK 73
+#define CAM_CC_IPE_0_CLK 74
+#define CAM_CC_IPE_0_CLK_SRC 75
+#define CAM_CC_JPEG_CLK 76
+#define CAM_CC_JPEG_CLK_SRC 77
+#define CAM_CC_MCLK0_CLK 78
+#define CAM_CC_MCLK0_CLK_SRC 79
+#define CAM_CC_MCLK1_CLK 80
+#define CAM_CC_MCLK1_CLK_SRC 81
+#define CAM_CC_MCLK2_CLK 82
+#define CAM_CC_MCLK2_CLK_SRC 83
+#define CAM_CC_MCLK3_CLK 84
+#define CAM_CC_MCLK3_CLK_SRC 85
+#define CAM_CC_MCLK4_CLK 86
+#define CAM_CC_MCLK4_CLK_SRC 87
+#define CAM_CC_MCLK5_CLK 88
+#define CAM_CC_MCLK5_CLK_SRC 89
+#define CAM_CC_PLL0 90
+#define CAM_CC_PLL0_OUT_EVEN 91
+#define CAM_CC_PLL0_OUT_ODD 92
+#define CAM_CC_PLL1 93
+#define CAM_CC_PLL1_OUT_EVEN 94
+#define CAM_CC_PLL2 95
+#define CAM_CC_PLL3 96
+#define CAM_CC_PLL3_OUT_EVEN 97
+#define CAM_CC_PLL4 98
+#define CAM_CC_PLL4_OUT_EVEN 99
+#define CAM_CC_PLL5 100
+#define CAM_CC_PLL5_OUT_EVEN 101
+#define CAM_CC_PLL6 102
+#define CAM_CC_PLL6_OUT_EVEN 103
+#define CAM_CC_SBI_AHB_CLK 104
+#define CAM_CC_SBI_AXI_CLK 105
+#define CAM_CC_SBI_CLK 106
+#define CAM_CC_SBI_CPHY_RX_0_CLK 107
+#define CAM_CC_SBI_CPHY_RX_1_CLK 108
+#define CAM_CC_SBI_CSID_0_CLK 109
+#define CAM_CC_SBI_CSID_1_CLK 110
+#define CAM_CC_SBI_CSID_CLK_SRC 111
+#define CAM_CC_SBI_DIV_CLK_SRC 112
+#define CAM_CC_SBI_IFE_0_CLK 113
+#define CAM_CC_SBI_IFE_1_CLK 114
+#define CAM_CC_SBI_IFE_2_CLK 115
+#define CAM_CC_SLEEP_CLK 116
+#define CAM_CC_SLEEP_CLK_SRC 117
+#define CAM_CC_SLOW_AHB_CLK_SRC 118
+#define CAM_CC_XO_CLK_SRC 119
+
+/* CAM_CC power domains */
+#define BPS_GDSC 0
+#define IPE_0_GDSC 1
+#define SBI_GDSC 2
+#define IFE_0_GDSC 3
+#define IFE_1_GDSC 4
+#define IFE_2_GDSC 5
+#define TITAN_TOP_GDSC 6
+
+/* CAM_CC resets */
+#define CAM_CC_BPS_BCR 0
+#define CAM_CC_ICP_BCR 1
+#define CAM_CC_IFE_0_BCR 2
+#define CAM_CC_IFE_1_BCR 3
+#define CAM_CC_IFE_2_BCR 4
+#define CAM_CC_IPE_0_BCR 5
+#define CAM_CC_SBI_BCR 6
+
+#endif
--
2.51.0
next prev parent reply other threads:[~2026-11-04 0:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 0:17 [PATCH 0/3] clk: qcom: Add SM8350 camera clock controller Vladimir Zapolskiy
2026-11-04 0:17 ` Vladimir Zapolskiy [this message]
2026-11-04 0:17 ` [PATCH 2/3] clk: qcom: Add SM8350 camera clock controller driver Vladimir Zapolskiy
2026-11-04 0:17 ` [PATCH 3/3] arm64: dts: qcom: sm8350: Add camera clock controller Vladimir Zapolskiy
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=20261104001704.2744766-2-vz@kernel.org \
--to=vz@kernel.org \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@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