From: Krzysztof Kozlowski <krzk@kernel.org>
To: Atanas Filipov <atanas.filipov@oss.qualcomm.com>
Cc: Georgi Djakov <djakov@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org,
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>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Gjorgji Rosikopulos <gjorgji.rosikopulos@oss.qualcomm.com>
Subject: Re: [PATCH v2 1/3] dt-bindings: interconnect: Add Qualcomm CAMNOC ICC binding
Date: Thu, 27 Aug 2026 11:26:07 +0200 [thread overview]
Message-ID: <dace72f7-d514-4e14-b16a-f02cfa6f7829@kernel.org> (raw)
In-Reply-To: <20260827-thistle-puffin-of-chivalry-bccc47@quoll>
On 27/08/2026 11:23, Krzysztof Kozlowski wrote:
> On Wed, Aug 19, 2026 at 12:32:09PM +0300, Atanas Filipov wrote:
>> Add binding for the Qualcomm CAMNOC interconnect provider. CAMNOC is
>> the internal AXI interconnect within the camera subsystem. Multiple
>> sub-devices share CAM_CC_CAMNOC_AXI_CLK; the ICC provider aggregates
>> their bandwidth votes and scales the clock accordingly, avoiding the
>> last-writer-wins race from direct clk_set_rate() calls.
>>
>> Signed-off-by: Atanas Filipov <atanas.filipov@oss.qualcomm.com>
>> ---
>> .../bindings/interconnect/qcom,camnoc.yaml | 124 ++++++++++++++++++
>> .../dt-bindings/interconnect/qcom,camnoc.h | 52 ++++++++
>> 2 files changed, 176 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,camnoc.yaml
>> create mode 100644 include/dt-bindings/interconnect/qcom,camnoc.h
>>
>> diff --git a/Documentation/devicetree/bindings/interconnect/qcom,camnoc.yaml b/Documentation/devicetree/bindings/interconnect/qcom,camnoc.yaml
>> new file mode 100644
>> index 000000000000..b2659db2cf27
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/interconnect/qcom,camnoc.yaml
>
> Filename must match compatible.
>
>> @@ -0,0 +1,124 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/interconnect/qcom,camnoc.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Qualcomm Camera NOC (CAMNOC) Interconnect Provider
>> +
>> +maintainers:
>> + - Atanas Filipov <atanas.filipov@oss.qualcomm.com>
>> +
>> +description:
>> + The Camera Network-on-Chip (CAMNOC) is the internal AXI interconnect
>> + within the Qualcomm camera subsystem. It arbitrates AXI bandwidth
>> + between camera sub-devices (IFE, JPEG, BPS, IPE, etc.) and the external
>> + memory interconnect. Multiple consumers may independently request
>> + bandwidth via icc_set_bw(); the CAMNOC ICC provider aggregates all active
>> + votes and scales CAM_CC_CAMNOC_AXI_CLK accordingly, avoiding the
>> + last-writer-wins race that arises when each consumer calls clk_set_rate()
>> + directly on the shared clock.
>> +
>> + Each camera sub-device driver that shares the CAMNOC AXI clock should
>> + obtain an ICC path from its master port to SLAVE_CAMNOC_AXI and vote for
>> + bandwidth using the port IDs defined in
>> + include/dt-bindings/interconnect/qcom,camnoc.h.
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - qcom,sm8250-cam-virt
>> +
>> + clocks:
>> + items:
>> + - description: CAMNOC AXI clock
>> +
>> + clock-names:
>> + items:
>> + - const: camnoc_axi
>> +
>> + '#interconnect-cells':
>> + const: 1
>> +
>> +required:
>> + - compatible
>> + - clocks
>> + - clock-names
>> + - '#interconnect-cells'
>> +
>> +additionalProperties: false
>> +
>> +examples:
>> + - |
>> + #include <dt-bindings/clock/qcom,camcc-sm8250.h>
>> + #include <dt-bindings/interconnect/qcom,camnoc.h>
>> +
>> + /* CAMNOC ICC provider node */
>
> Drop, redundant.
>
>> + cam_virt: interconnect-cam-virt {
>
> Drop unused label
>
>> + compatible = "qcom,sm8250-cam-virt";
>> + clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>;
>> + clock-names = "camnoc_axi";
>> + #interconnect-cells = <1>;
>> + };
>> +
>> + /*
>> + * Simple consumer example: IFE sub-device voting for CAMNOC bandwidth
>
>
> And what are the writing schema/bindings asking about consumers? Or
> DTS101 slides? Look at other bindings instead of coming with own style.
>
And:
Drop second/last, redundant "binding". The "dt-bindings" prefix is
already stating that these are bindings.
See also:
https://elixir.bootlin.com/linux/v7.1-rc7/source/Documentation/devicetree/bindings/submitting-patches.rst#L23
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-08-27 9:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-19 9:32 [PATCH v2 0/3] Add Qualcomm CAMNOC ICC provider Atanas Filipov
2026-08-19 9:32 ` [PATCH v2 1/3] dt-bindings: interconnect: Add Qualcomm CAMNOC ICC binding Atanas Filipov
2026-08-27 9:23 ` Krzysztof Kozlowski
2026-08-27 9:26 ` Krzysztof Kozlowski [this message]
2026-08-19 9:32 ` [PATCH v2 2/3] interconnect: qcom: Add CAMNOC interconnect provider driver Atanas Filipov
2026-08-27 9:25 ` Krzysztof Kozlowski
2026-08-27 9:28 ` Krzysztof Kozlowski
2026-08-19 9:32 ` [PATCH v2 3/3] arm64: dts: qcom: sm8250: Add CAMNOC ICC provider node 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=dace72f7-d514-4e14-b16a-f02cfa6f7829@kernel.org \
--to=krzk@kernel.org \
--cc=andersson@kernel.org \
--cc=atanas.filipov@oss.qualcomm.com \
--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-pm@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®