Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ryan Chen" <ryan_chen@aspeedtech.com>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH RESEND v29 1/4] dt-bindings: i2c: Split AST2600 binding into a new YAML
Date: Thu, 14 May 2026 01:52:32 +0000	[thread overview]
Message-ID: <20260514015232.8FC29C19425@smtp.kernel.org> (raw)
In-Reply-To: <20260513-upstream_i2c-v29-1-fe9926964d55@aspeedtech.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The new DT binding breaks validation for existing AST2600 device trees by enforcing a new `reg` layout and removing `bus-frequency`.
- [High] Renaming `bus-frequency` to `clock-frequency` causes a silent performance regression with the legacy i2c-aspeed driver.
--

commit 625f06e7b4752a6769de1b97b793eb2043bda8de
Author: Ryan Chen <ryan_chen@aspeedtech.com>

dt-bindings: i2c: Split AST2600 binding into a new YAML

The AST2600 I2C controller introduces a new register layout with separate
controller and target blocks. The binding for AST2600 is moved to a dedicated
aspeed,ast2600-i2c.yaml schema, updating requirements like enforcing two reg
regions and using clock-frequency instead of bus-frequency.

> diff --git a/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml b/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml
> new file mode 100644
> index 0000000000000..de2c359037da5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml
[ ... ]
> +properties:
> +  compatible:
> +    enum:
> +      - aspeed,ast2600-i2c-bus
> +
> +  reg:
> +    items:
> +      - description: controller registers
> +      - description: controller buffer space

Will enforcing this new reg layout break validation for existing AST2600
device trees?

Existing in-tree device trees define a single reg region. Because these device
trees are not updated in this patch series, make dtbs_check will fail for all
AST2600 boards.

Should the binding retain backward compatibility by allowing a single reg
region for legacy nodes?

[ ... ]
> +  clock-frequency:
> +    description: Desired operating frequency of the I2C bus in Hz.
> +    minimum: 500
> +    maximum: 4000000
> +    default: 100000
> +
> +  resets:
> +    maxItems: 1
> +
> +required:
> +  - reg
> +  - compatible
> +  - clocks
> +  - resets
> +  - interrupts
> +
> +unevaluatedProperties: false

Could renaming bus-frequency to clock-frequency cause a silent performance
regression with the legacy i2c-aspeed driver?

If a device tree is updated to conform to this new binding (by replacing
bus-frequency with clock-frequency) but does not add the aspeed,global-regs
property, the legacy i2c-aspeed.c driver will still probe.

The legacy driver relies entirely on bus-frequency and does not use standard
helpers like i2c_parse_fw_timings() to read clock-frequency.

This will cause the driver to fail to find the bus frequency property, log
an error, and silently fall back to the default 100kHz, which will degrade
performance for fast-mode devices.

Additionally, because the binding sets unevaluatedProperties to false and
removes bus-frequency, existing device trees that still use bus-frequency
will fail validation.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260513-upstream_i2c-v29-0-fe9926964d55@aspeedtech.com?part=1

  parent reply	other threads:[~2026-05-14  1:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-13  5:31 [PATCH RESEND v29 0/4] Add ASPEED AST2600 I2C controller driver Ryan Chen
2026-05-13  5:32 ` [PATCH RESEND v29 1/4] dt-bindings: i2c: Split AST2600 binding into a new YAML Ryan Chen
2026-05-13 17:05   ` Rob Herring (Arm)
2026-05-14  1:52   ` sashiko-bot [this message]
2026-05-13  5:32 ` [PATCH RESEND v29 2/4] dt-bindings: i2c: ast2600-i2c.yaml: Add global-regs properties Ryan Chen
2026-05-13 17:05   ` Rob Herring (Arm)
2026-05-13  5:32 ` [PATCH RESEND v29 3/4] i2c: ast2600: Add controller driver for AST2600 new register set Ryan Chen
2026-05-14  2:47   ` sashiko-bot
2026-05-13  5:32 ` [PATCH RESEND v29 4/4] i2c: ast2600: Add target mode support Ryan Chen
2026-05-14  3:22   ` sashiko-bot

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=20260514015232.8FC29C19425@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=ryan_chen@aspeedtech.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox