All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Billy Tsai" <billy_tsai@aspeedtech.com>
Cc: linux-i3c@lists.infradead.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, Frank.Li@kernel.org,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH v3 01/10] dt-bindings: i3c: Document generic bus timing properties
Date: Thu, 03 Dec 2026 03:15:57 +0000	[thread overview]
Message-ID: <sashiko-outbox-247047@kernel.org> (raw)
In-Reply-To: <20261203-b4-i3c-hci-ast2700-v3-1-e8b9553560ed@aspeedtech.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: i3c: dependencies block contradicts independent
  period overrides
--

commit 0de1fa9b7455dc9ae0ce32d8589b24ab043c0559
Author: Billy Tsai <billy_tsai@aspeedtech.com>

dt-bindings: i3c: Document generic bus timing properties

This commit documents optional Device Tree properties in i3c.yaml to
override push-pull and open-drain SCL periods, push-pull SDA hold time,
tCAS/tCBP periods, and clock-stalling SCL low periods.

> diff --git a/Documentation/devicetree/bindings/i3c/i3c.yaml b/Documentation/devicetree/bindings/i3c/i3c.yaml
> index 5603f2e7807db..7bbc6a66cf88f 100644
> --- a/Documentation/devicetree/bindings/i3c/i3c.yaml
> +++ b/Documentation/devicetree/bindings/i3c/i3c.yaml
> @@ -57,6 +57,85 @@ properties:
>  
>        May not be supported by all controllers.
>  
> +  i3c-pp-scl-high-period-ns:
> +    minimum: 24
> +    description: |
> +      Push-pull SCL high period override, in nanoseconds (tHIGH, MIPI
> +      I3C Basic Specification v1.1.1 Table 87). When undefined, the
> +      value is derived from i3c-scl-hz.
> +
> +      May not be supported by all controllers.
> +
> +  i3c-pp-scl-low-period-ns:
> +    minimum: 24
> +    description: |
> +      Push-pull SCL low period override, in nanoseconds (tLOW, MIPI I3C
> +      Basic Specification v1.1.1 Table 87). When undefined, the value is
> +      derived from i3c-scl-hz.
> +
> +      May not be supported by all controllers.
> +
> +  i3c-od-scl-high-period-ns:
> +    description: |
> +      Open-drain SCL high period override, in nanoseconds (tHIGH, MIPI
> +      I3C Basic Specification v1.1.1 Table 86). Open-drain timing is not
> +      a function of i3c-scl-hz; when undefined, the controller uses its
> +      own default.
> +
> +      May not be supported by all controllers.
> +
> +  i3c-od-scl-low-period-ns:
> +    minimum: 200
> +    description: |
> +      Open-drain SCL low period override, in nanoseconds (tLOW_OD, MIPI
> +      I3C Basic Specification v1.1.1 Table 86). Open-drain timing is not
> +      a function of i3c-scl-hz; when undefined, the controller uses its
> +      own default.
> +
> +      May not be supported by all controllers.

[ ... ]

> @@ -67,6 +146,16 @@ required:
>    - "#address-cells"
>    - "#size-cells"
>  
> +dependencies:
> +  i3c-pp-scl-high-period-ns:
> +    - i3c-pp-scl-low-period-ns
> +  i3c-pp-scl-low-period-ns:
> +    - i3c-pp-scl-high-period-ns
> +  i3c-od-scl-high-period-ns:
> +    - i3c-od-scl-low-period-ns
> +  i3c-od-scl-low-period-ns:
> +    - i3c-od-scl-high-period-ns
> +

[Severity: Low]
As reported by Frank Li on v2 [1], does this dependencies block contradict
the property descriptions and commit message?

The descriptions for i3c-pp-scl-high-period-ns, i3c-pp-scl-low-period-ns,
i3c-od-scl-high-period-ns, and i3c-od-scl-low-period-ns each define an
individual default when undefined, and the commit message states that each
property can be overridden independently.  However, the mutual
dependencies require high and low periods to always be specified in pairs,
causing dtbs_check failures if a board overrides only one side of a pair.

Also, the commit message states that open-drain SCL periods are normally
derived from i3c-scl-hz, whereas the i3c-od-scl-high-period-ns and
i3c-od-scl-low-period-ns descriptions state that open-drain timing is not
a function of i3c-scl-hz.

[1] https://lore.kernel.org/r/avSczhZGS9cCcNSu@lizhi-Precision-Tower-5810

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-b4-i3c-hci-ast2700-v3-0-e8b9553560ed@aspeedtech.com?part=1

WARNING: multiple messages have this Message-ID (diff)
From: sashiko-bot@kernel.org
To: "Billy Tsai" <billy_tsai@aspeedtech.com>
Cc: linux-i3c@lists.infradead.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, Frank.Li@kernel.org,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH v3 01/10] dt-bindings: i3c: Document generic bus timing properties
Date: Thu, 03 Dec 2026 03:15:57 +0000	[thread overview]
Message-ID: <sashiko-outbox-247047@kernel.org> (raw)
In-Reply-To: <20261203-b4-i3c-hci-ast2700-v3-1-e8b9553560ed@aspeedtech.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dt-bindings: i3c: dependencies block contradicts independent
  period overrides
--

commit 0de1fa9b7455dc9ae0ce32d8589b24ab043c0559
Author: Billy Tsai <billy_tsai@aspeedtech.com>

dt-bindings: i3c: Document generic bus timing properties

This commit documents optional Device Tree properties in i3c.yaml to
override push-pull and open-drain SCL periods, push-pull SDA hold time,
tCAS/tCBP periods, and clock-stalling SCL low periods.

> diff --git a/Documentation/devicetree/bindings/i3c/i3c.yaml b/Documentation/devicetree/bindings/i3c/i3c.yaml
> index 5603f2e7807db..7bbc6a66cf88f 100644
> --- a/Documentation/devicetree/bindings/i3c/i3c.yaml
> +++ b/Documentation/devicetree/bindings/i3c/i3c.yaml
> @@ -57,6 +57,85 @@ properties:
>  
>        May not be supported by all controllers.
>  
> +  i3c-pp-scl-high-period-ns:
> +    minimum: 24
> +    description: |
> +      Push-pull SCL high period override, in nanoseconds (tHIGH, MIPI
> +      I3C Basic Specification v1.1.1 Table 87). When undefined, the
> +      value is derived from i3c-scl-hz.
> +
> +      May not be supported by all controllers.
> +
> +  i3c-pp-scl-low-period-ns:
> +    minimum: 24
> +    description: |
> +      Push-pull SCL low period override, in nanoseconds (tLOW, MIPI I3C
> +      Basic Specification v1.1.1 Table 87). When undefined, the value is
> +      derived from i3c-scl-hz.
> +
> +      May not be supported by all controllers.
> +
> +  i3c-od-scl-high-period-ns:
> +    description: |
> +      Open-drain SCL high period override, in nanoseconds (tHIGH, MIPI
> +      I3C Basic Specification v1.1.1 Table 86). Open-drain timing is not
> +      a function of i3c-scl-hz; when undefined, the controller uses its
> +      own default.
> +
> +      May not be supported by all controllers.
> +
> +  i3c-od-scl-low-period-ns:
> +    minimum: 200
> +    description: |
> +      Open-drain SCL low period override, in nanoseconds (tLOW_OD, MIPI
> +      I3C Basic Specification v1.1.1 Table 86). Open-drain timing is not
> +      a function of i3c-scl-hz; when undefined, the controller uses its
> +      own default.
> +
> +      May not be supported by all controllers.

[ ... ]

> @@ -67,6 +146,16 @@ required:
>    - "#address-cells"
>    - "#size-cells"
>  
> +dependencies:
> +  i3c-pp-scl-high-period-ns:
> +    - i3c-pp-scl-low-period-ns
> +  i3c-pp-scl-low-period-ns:
> +    - i3c-pp-scl-high-period-ns
> +  i3c-od-scl-high-period-ns:
> +    - i3c-od-scl-low-period-ns
> +  i3c-od-scl-low-period-ns:
> +    - i3c-od-scl-high-period-ns
> +

[Severity: Low]
As reported by Frank Li on v2 [1], does this dependencies block contradict
the property descriptions and commit message?

The descriptions for i3c-pp-scl-high-period-ns, i3c-pp-scl-low-period-ns,
i3c-od-scl-high-period-ns, and i3c-od-scl-low-period-ns each define an
individual default when undefined, and the commit message states that each
property can be overridden independently.  However, the mutual
dependencies require high and low periods to always be specified in pairs,
causing dtbs_check failures if a board overrides only one side of a pair.

Also, the commit message states that open-drain SCL periods are normally
derived from i3c-scl-hz, whereas the i3c-od-scl-high-period-ns and
i3c-od-scl-low-period-ns descriptions state that open-drain timing is not
a function of i3c-scl-hz.

[1] https://lore.kernel.org/r/avSczhZGS9cCcNSu@lizhi-Precision-Tower-5810

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-b4-i3c-hci-ast2700-v3-0-e8b9553560ed@aspeedtech.com?part=1

-- 
linux-i3c mailing list
linux-i3c@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-i3c

  reply	other threads:[~2026-12-03  3:15 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  3:07 [PATCH v3 00/10] i3c: mipi-i3c-hci: Add Aspeed AST2700 support Billy Tsai
2026-12-03  3:07 ` Billy Tsai
2026-12-03  3:07 ` [PATCH v3 01/10] dt-bindings: i3c: Document generic bus timing properties Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:15   ` sashiko-bot [this message]
2026-12-03  3:15     ` sashiko-bot
2026-12-03  3:07 ` [PATCH v3 02/10] dt-bindings: i3c: Document the AST2700 I3C controller Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:14   ` sashiko-bot
2026-12-03  3:14     ` sashiko-bot
2026-12-03  3:07 ` [PATCH v3 03/10] i3c: mipi-i3c-hci: Support address-indexed DAT slots Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:07 ` [PATCH v3 04/10] i3c: mipi-i3c-hci: Add a quirk for 64-bit DMA addressing Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:07 ` [PATCH v3 05/10] i3c: mipi-i3c-hci: Add a quirk to clear the TX start threshold Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:07 ` [PATCH v3 06/10] i3c: mipi-i3c-hci: Split the core IRQ handling into its own function Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:07 ` [PATCH v3 07/10] i3c: mipi-i3c-hci: Add support for the AST2700 I3C controller Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:22   ` sashiko-bot
2026-12-03  3:22     ` sashiko-bot
2026-12-03  3:07 ` [PATCH v3 08/10] i3c: mipi-i3c-hci: Program AST2700 IBI termination threshold Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:07 ` [PATCH v3 09/10] i3c: mipi-i3c-hci: Improve AST2700 PIO TX queue utilization Billy Tsai
2026-12-03  3:07   ` Billy Tsai
2026-12-03  3:07 ` [PATCH v3 10/10] i3c: mipi-i3c-hci: Support the AST2700 internal pull-ups Billy Tsai
2026-12-03  3:07   ` Billy Tsai

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=sashiko-outbox-247047@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=alexandre.belloni@bootlin.com \
    --cc=billy_tsai@aspeedtech.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-i3c@lists.infradead.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.