From: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Mukesh Kumar Savaliya <mukesh.savaliya@oss.qualcomm.com>,
Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: i2c: Add Qualcomm I2C target controller
Date: Wed, 12 Aug 2026 23:51:34 +0530 [thread overview]
Message-ID: <f52bbc62-9e6a-4e8b-a3f5-500ea26a18a4@oss.qualcomm.com> (raw)
In-Reply-To: <20260804-airborne-impala-of-proficiency-a9a8d9@quoll>
On 8/4/2026 1:14 PM, Krzysztof Kozlowski wrote:
> On Sun, Aug 02, 2026 at 06:43:30PM +0530, Viken Dadhaniya wrote:
>> QDU1000 and related Qualcomm SoCs include a dedicated I2C target
>> controller that operates exclusively in target mode. It is a distinct
>> IP from the Qualcomm I2C master controllers (GENI, QUP) with a
>> different register interface, so it requires its own binding.
>>
>> Document the MMIO region, interrupt, XO and AHB clocks, interconnect
>> path, and optional pinctrl states for the controller.
>>
>> Signed-off-by: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
>> ---
>> .../devicetree/bindings/i2c/qcom,i2c-target.yaml | 84 ++++++++++++++++++++++
>
> Filename must match compatible.
Sure, will update it.
>
>> 1 file changed, 84 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-target.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-target.yaml
>> new file mode 100644
>> index 000000000000..1e34e874cc4c
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-target.yaml
>> @@ -0,0 +1,84 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/i2c/qcom,i2c-target.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Qualcomm I2C Target Controller
>> +
>> +maintainers:
>> + - Mukesh Kumar Savaliya <mukesh.savaliya@oss.qualcomm.com>
>> + - Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com>
>> +
>> +description:
>> + Dedicated hardware IP found on Qualcomm SoCs that operates exclusively
>> + as an I2C target (slave) device on the bus. Supports FIFO (PIO) mode
>> + for data transfer.
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - qcom,qdu1000-i2c-target
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + interrupts:
>> + maxItems: 1
>> +
>> + clocks:
>> + items:
>> + - description: XO reference clock
>> + - description: AHB bus clock
>> +
>> + clock-names:
>> + items:
>> + - const: xo
>> + - const: ahb
>> +
>> + interconnects:
>> + maxItems: 1
>> +
>> + interconnect-names:
>> + const: i2c
>
> Pretty useless name, drop the interconnect-names.
Sure. will remove it.
>
>> +
>> + pinctrl-0: true
>> + pinctrl-1: true
>> +
>> + pinctrl-names:
>> + items:
>> + - const: default
>> + - const: sleep
>> +
>> +required:
>> + - compatible
>> + - reg
>> + - interrupts
>> + - clocks
>> + - clock-names
>> + - interconnects
>> + - interconnect-names
>> +
>> +allOf:
>> + - $ref: /schemas/i2c/i2c-controller.yaml#
>
> This wasn't here before. Is this a controller or a target? Now I am
> confused.
It is a target. Wrong ref, will remove it.
>
>> +
>> +unevaluatedProperties: false
>> +
>> +examples:
>> + - |
>> + #include <dt-bindings/interrupt-controller/arm-gic.h>
>> + #include <dt-bindings/clock/qcom,qdu1000-gcc.h>
>> + #include <dt-bindings/interconnect/qcom,qdu1000-rpmh.h>
>> +
>> + i2c@88ca000 {
>> + compatible = "qcom,qdu1000-i2c-target";
>> + reg = <0x88ca000 0x64>;
>> + clocks = <&gcc GCC_SM_BUS_XO_CLK>, <&gcc GCC_SM_BUS_AHB_CLK>;
>> + clock-names = "xo", "ahb";
>> + interrupts = <GIC_SPI 358 IRQ_TYPE_LEVEL_HIGH>;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>
> How is this valid?
>
> What sort of children the target has? What does it do with these
> children?
This controller is an I2C target only — it has no DT children. Will
remove those lines.
>
>> + interconnect-names = "i2c";
>> + interconnects = <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_SMBUS_CFG 0>;
>> + };
>> +...
>>
>> --
>> 2.34.1
>>
next prev parent reply other threads:[~2026-08-12 18:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-02 13:13 [PATCH v2 0/2] Add Qualcomm I2C target controller driver Viken Dadhaniya
2026-08-02 13:13 ` [PATCH v2 1/2] dt-bindings: i2c: Add Qualcomm I2C target controller Viken Dadhaniya
2026-08-04 7:44 ` Krzysztof Kozlowski
2026-08-12 18:21 ` Viken Dadhaniya [this message]
2026-08-02 13:13 ` [PATCH v2 2/2] i2c: qcom-target: Add driver for " Viken Dadhaniya
2026-08-03 8:05 ` Loic Poulain
2026-08-04 11:03 ` Viken Dadhaniya
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=f52bbc62-9e6a-4e8b-a3f5-500ea26a18a4@oss.qualcomm.com \
--to=viken.dadhaniya@oss.qualcomm.com \
--cc=andi.shyti@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mukesh.savaliya@oss.qualcomm.com \
--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®