mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Aniket Limaye <a-limaye@ti.com>
Cc: Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 Philipp Zabel <p.zabel@pengutronix.de>,
	linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org, lianfeng.ouyang@starfivetech.com
Subject: Re: [PATCH v4 1/2] dt-bindings: i2c: Add Synopsys DWC_i2c controller
Date: Tue, 27 Oct 2026 19:36:38 +0100	[thread overview]
Message-ID: <20261027-masked-ultraviolet-kittiwake-7da8ec@quoll> (raw)
In-Reply-To: <20261027-tda54-upstream-i2c-v4-1-ebeeaf87d181@ti.com>

On Tue, Oct 27, 2026 at 05:00:35PM +0530, Aniket Limaye wrote:
> Add documentation for the Synopsys Advanced I2C (DWC_i2c) controller, as
> found on the TI TDA54 SoC.
> 
> The block cannot work on its own and needs SoC integration, e.g. the
> FIFO depths are not discoverable from the IP. Do not add a generic
> compatible and only list SoC specific compatibles. The file is named
> after the IP so that other SoCs integrating it can be added here.
> 
> Signed-off-by: Aniket Limaye <a-limaye@ti.com>
> 
> ---
> 

Here you mention dependency on new dtschema (unreleased), since the
property was added a few days ago.

> Changes in v4:
> - Drop the approach of extending the existing i2c-designware-* driver
>   with a MODEL_TI_TDA54 variant. Instead, add a new standalone driver
>   (i2c-dwc-adv.c) and a new binding (snps,dwc-adv-i2c.yaml), since
>   DWC_i2c is not register compatible with DW_apb_i2c. (Andy Shevchenko)
> - Drop the snps,tx-fifo-depth/snps,rx-fifo-depth DT properties from
>   the new binding; FIFO depth is now tied to the compatible string via
>   driver match data instead. (Conor Dooley)
> - Link to v3: https://lore.kernel.org/all/20260925-tda54-upstream-i2c-v3-1-544d74e992ff@ti.com/
> 
> Changes in v2:
> - Rename snps,dwc-i2c to ti,tda54-i2c
> - Link to v1: https://lore.kernel.org/r/20260919-tda54-upstream-i2c-v1-1-b0b9f77be18b@ti.com/
> ---
>  .../devicetree/bindings/i2c/snps,dwc-adv-i2c.yaml  | 75 ++++++++++++++++++++++
>  1 file changed, 75 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/i2c/snps,dwc-adv-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,dwc-adv-i2c.yaml
> new file mode 100644
> index 000000000000..7ad22536825e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/snps,dwc-adv-i2c.yaml
> @@ -0,0 +1,75 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/i2c/snps,dwc-adv-i2c.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Synopsys DesignWare Advanced I2C (DWC_i2c) Controller
> +
> +maintainers:
> +  - Aniket Limaye <a-limaye@ti.com>
> +
> +allOf:
> +  - $ref: /schemas/i2c/i2c-controller.yaml#
> +
> +properties:
> +  compatible:
> +    enum:
> +      - ti,tda54-i2c
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  clocks:
> +    items:
> +      - description: I2C functional clock (ic_clk)
> +      - description: Register interface clock (pclk)
> +
> +  clock-names:
> +    items:
> +      - const: ref
> +      - const: pclk
> +
> +  resets:
> +    maxItems: 1
> +
> +  clock-frequency:
> +    enum: [100000, 400000, 1000000, 3400000]
> +    default: 400000
> +
> +  i2c-sda-hold-time-ns: true

Missing  default, constraints (minimum/maximum)


> +
> +  i2c-scl-falling-time-ns:
> +    default: 300

no min/max?

> +
> +  i2c-sda-falling-time-ns:
> +    default: 300

Best regards,
Krzysztof


  reply	other threads:[~2026-10-27 18:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-27 11:30 [PATCH v4 0/2] i2c: Add Synopsys Advanced I2C (DWC_i2c) support for TI TDA54 Aniket Limaye
2026-10-27 11:30 ` [PATCH v4 1/2] dt-bindings: i2c: Add Synopsys DWC_i2c controller Aniket Limaye
2026-10-27 18:36   ` Krzysztof Kozlowski [this message]
2026-10-31  9:55     ` Aniket Limaye
2026-10-27 11:30 ` [PATCH v4 2/2] i2c: Add Synopsys Advanced I2C (DWC_i2c) driver Aniket Limaye
2026-10-27 16:32   ` Mark Brown
2026-10-31 10:28     ` Aniket Limaye
2026-10-28  7:14   ` Uwe Kleine-König
2026-10-31  9:54     ` Aniket Limaye

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=20261027-masked-ultraviolet-kittiwake-7da8ec@quoll \
    --to=krzk@kernel.org \
    --cc=a-limaye@ti.com \
    --cc=andi.shyti@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lianfeng.ouyang@starfivetech.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p.zabel@pengutronix.de \
    --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®