mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Atanas Filipov <atanas.filipov@oss.qualcomm.com>
To: djakov@kernel.org, bod@kernel.org, linux-pm@vger.kernel.org,
	linux-media@vger.kernel.org
Cc: mchehab@kernel.org, andersson@kernel.org, konradybcio@kernel.org,
	abelvesa@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org, loic.poulain@oss.qualcomm.com,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Prashant Shrotriya <pshrotri@qti.qualcomm.com>,
	Vikram Sharma <vikram.sharma@oss.qualcomm.com>,
	Gjorgji Rosikopulos <gjorgji.rosikopulos@oss.qualcomm.com>,
	Atanas Filipov <atanas.filipov@oss.qualcomm.com>
Subject: [PATCH 02/10] dt-bindings: interconnect: add the Qualcomm SC7280 Titan camera NoC
Date: Mon, 30 Nov 2026 12:49:47 +0200	[thread overview]
Message-ID: <20261130104955.1288089-3-atanas.filipov@oss.qualcomm.com> (raw)
In-Reply-To: <20261130104955.1288089-1-atanas.filipov@oss.qualcomm.com>

Add the Titan camera NoC of SC7280. It is an interconnect provider for
the camera clients, with one node per camera NoC port and one node for
the camera AHB path. Compared to SM8250, it has no GCC camera AHB clock
and no camera core AHB clock, and the camera NoC registers are at a
different address.

Signed-off-by: Atanas Filipov <atanas.filipov@oss.qualcomm.com>
---
 .../interconnect/qcom,sc7280-cam-icc.yaml     | 160 ++++++++++++++++++
 .../interconnect/qcom,sc7280-cam-icc.h        |  21 +++
 2 files changed, 181 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sc7280-cam-icc.yaml
 create mode 100644 include/dt-bindings/interconnect/qcom,sc7280-cam-icc.h

diff --git a/Documentation/devicetree/bindings/interconnect/qcom,sc7280-cam-icc.yaml b/Documentation/devicetree/bindings/interconnect/qcom,sc7280-cam-icc.yaml
new file mode 100644
index 000000000000..719b8e1ef577
--- /dev/null
+++ b/Documentation/devicetree/bindings/interconnect/qcom,sc7280-cam-icc.yaml
@@ -0,0 +1,160 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interconnect/qcom,sc7280-cam-icc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm SC7280 Titan camera NoC
+
+maintainers:
+  - Atanas Filipov <atanas.filipov@oss.qualcomm.com>
+
+description:
+  The camera NoC connects the camera blocks to the multimedia NoC and
+  DDR. It has one node for each camera NoC port and one node for the
+  camera AHB (config) path. Clients request bandwidth on paths that
+  start at these nodes.
+
+properties:
+  compatible:
+    enum:
+      - qcom,sc7280-cam-icc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    items:
+      - description: GCC camera HF AXI clock
+      - description: GCC camera SF AXI clock
+      - description: camera slow AHB clock source
+      - description: CPAS AHB clock
+      - description: camera NoC AXI clock
+      - description: camera NoC AXI clock source
+
+  clock-names:
+    items:
+      - const: gcc_axi_hf
+      - const: gcc_axi_sf
+      - const: slow_ahb_src
+      - const: cpas_ahb
+      - const: camnoc_axi
+      - const: camnoc_axi_src
+
+  power-domains:
+    items:
+      - description: Titan top GDSC
+      - description: CX power domain, for the camera NoC clock rate
+
+  power-domain-names:
+    items:
+      - const: top
+      - const: cx
+
+  operating-points-v2: true
+
+  opp-table:
+    type: object
+
+  interconnects:
+    items:
+      - description: config path from the CPU to the camera config space
+      - description: camera NoC HF port to DDR
+      - description: camera NoC SF port to DDR
+
+  interconnect-names:
+    items:
+      - const: cfg
+      - const: hf
+      - const: sf
+
+  '#interconnect-cells':
+    const: 2
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+  - power-domains
+  - power-domain-names
+  - operating-points-v2
+  - interconnects
+  - interconnect-names
+  - '#interconnect-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/qcom,camcc-sc7280.h>
+    #include <dt-bindings/clock/qcom,gcc-sc7280.h>
+    #include <dt-bindings/interconnect/qcom,sc7280.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/power/qcom,rpmhpd.h>
+
+    interconnect@ac9f000 {
+        compatible = "qcom,sc7280-cam-icc";
+        reg = <0x0ac9f000 0x10000>;
+
+        interrupts = <GIC_SPI 459 IRQ_TYPE_EDGE_RISING>;
+
+        clocks = <&gcc GCC_CAMERA_HF_AXI_CLK>,
+                 <&gcc GCC_CAMERA_SF_AXI_CLK>,
+                 <&camcc CAM_CC_SLOW_AHB_CLK_SRC>,
+                 <&camcc CAM_CC_CPAS_AHB_CLK>,
+                 <&camcc CAM_CC_CAMNOC_AXI_CLK>,
+                 <&camcc CAM_CC_CAMNOC_AXI_CLK_SRC>;
+        clock-names = "gcc_axi_hf",
+                      "gcc_axi_sf",
+                      "slow_ahb_src",
+                      "cpas_ahb",
+                      "camnoc_axi",
+                      "camnoc_axi_src";
+
+        power-domains = <&camcc CAM_CC_TITAN_TOP_GDSC>,
+                        <&rpmhpd SC7280_CX>;
+        power-domain-names = "top", "cx";
+
+        operating-points-v2 = <&camnoc_opp_table>;
+
+        interconnects = <&gem_noc MASTER_APPSS_PROC 0 &cnoc2 SLAVE_CAMERA_CFG 0>,
+                        <&mmss_noc MASTER_CAMNOC_HF 0 &mc_virt SLAVE_EBI1 0>,
+                        <&mmss_noc MASTER_CAMNOC_SF 0 &mc_virt SLAVE_EBI1 0>;
+        interconnect-names = "cfg", "hf", "sf";
+
+        #interconnect-cells = <2>;
+
+        camnoc_opp_table: opp-table {
+            compatible = "operating-points-v2";
+
+            opp-150000000 {
+                opp-hz = /bits/ 64 <150000000>;
+                required-opps = <&rpmhpd_opp_low_svs>;
+            };
+
+            opp-240000000 {
+                opp-hz = /bits/ 64 <240000000>;
+                required-opps = <&rpmhpd_opp_svs>;
+            };
+
+            opp-320000000 {
+                opp-hz = /bits/ 64 <320000000>;
+                required-opps = <&rpmhpd_opp_svs_l1>;
+            };
+
+            opp-400000000 {
+                opp-hz = /bits/ 64 <400000000>;
+                required-opps = <&rpmhpd_opp_nom>;
+            };
+
+            opp-480000000 {
+                opp-hz = /bits/ 64 <480000000>;
+                required-opps = <&rpmhpd_opp_turbo>;
+            };
+        };
+    };
diff --git a/include/dt-bindings/interconnect/qcom,sc7280-cam-icc.h b/include/dt-bindings/interconnect/qcom,sc7280-cam-icc.h
new file mode 100644
index 000000000000..4c7721fa503e
--- /dev/null
+++ b/include/dt-bindings/interconnect/qcom,sc7280-cam-icc.h
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+/*
+ * Qualcomm SC7280 camera NoC interconnect IDs
+ *
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_SC7280_CAM_ICC_H
+#define __DT_BINDINGS_INTERCONNECT_QCOM_SC7280_CAM_ICC_H
+
+#define MASTER_CAMNOC_IFE_RDI_WR	0
+#define MASTER_CAMNOC_IFE_PIXEL_WR	1
+#define MASTER_CAMNOC_IFE2_PIXEL_WR	2
+#define MASTER_CAMNOC_JPEG_WR		3
+#define MASTER_CAMNOC_JPEG_RD		4
+#define MASTER_CAMNOC_AHB		5
+#define SLAVE_CAMNOC_HF			6
+#define SLAVE_CAMNOC_SF			7
+#define SLAVE_CAMNOC_AHB		9
+
+#endif
-- 
2.25.1


  parent reply	other threads:[~2026-11-30 10:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 10:49 [PATCH 00/10] Add the Qualcomm Titan camera NoC interconnect provider Atanas Filipov
2026-11-30 10:49 ` [PATCH 01/10] dt-bindings: interconnect: add the Qualcomm SM8250 Titan camera NoC Atanas Filipov
2026-11-30 10:49 ` Atanas Filipov [this message]
2026-11-30 10:49 ` [PATCH 03/10] dt-bindings: interconnect: add the Qualcomm SA8775P " Atanas Filipov
2026-11-30 10:49 ` [PATCH 04/10] media: qcom: cam-icc: add the Titan camera NoC driver Atanas Filipov
2026-11-30 12:16   ` Bryan O'Donoghue
2026-11-30 12:59     ` Atanas Filipov
2026-11-30 13:22     ` Gjorgji Rosikopulos (Consultant)
2026-11-30 15:22       ` Bryan O'Donoghue
2026-11-30 10:49 ` [PATCH 05/10] media: qcom: cam-icc: add the SM8250 data Atanas Filipov
2026-11-30 10:49 ` [PATCH 06/10] media: qcom: cam-icc: add the SC7280 data Atanas Filipov
2026-11-30 10:49 ` [PATCH 07/10] media: qcom: cam-icc: add the SA8775P data Atanas Filipov
2026-11-30 10:49 ` [PATCH 08/10] arm64: dts: qcom: sm8250: add the Titan camera NoC node Atanas Filipov
2026-11-30 10:49 ` [PATCH 09/10] arm64: dts: qcom: sc7280: " Atanas Filipov
2026-11-30 10:49 ` [PATCH 10/10] arm64: dts: qcom: sa8775p: " Atanas Filipov

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=20261130104955.1288089-3-atanas.filipov@oss.qualcomm.com \
    --to=atanas.filipov@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=bod@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=djakov@kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=gjorgji.rosikopulos@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=mchehab@kernel.org \
    --cc=pshrotri@qti.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=vikram.sharma@oss.qualcomm.com \
    /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®