From: sashiko-bot@kernel.org
To: "Long Zhao" <longzhao@ambarella.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: i2c: add Ambarella IDC controller
Date: Tue, 01 Dec 2026 10:56:33 +0000 [thread overview]
Message-ID: <sashiko-outbox-243104@kernel.org> (raw)
In-Reply-To: <20261201-cv75-i2c-v1-1-729176f61836@ambarella.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] dt-bindings: i2c: ambarella,cv75-i2c: missing
ambarella,cv75-rct.h header
- [Low] dt-bindings: i2c: ambarella,cv75-i2c: interrupts listed before
clocks
- [Low] dt-bindings: i2c: ambarella,cv75-i2c: undocumented ambarella
vendor prefix
--
commit 10b02ab07af3011c549ab6187e63cc6723edbba9
Author: Long Zhao <longzhao@ambarella.com>
dt-bindings: i2c: add Ambarella IDC controller
This commit adds a Device Tree binding schema for the Ambarella CV75 I2C
master controller.
> diff --git a/Documentation/devicetree/bindings/i2c/ambarella,cv75-i2c.yaml b/Documentation/devicetree/bindings/i2c/ambarella,cv75-i2c.yaml
> new file mode 100644
> index 0000000000000..285525655dec7
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/ambarella,cv75-i2c.yaml
> @@ -0,0 +1,63 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/i2c/ambarella,cv75-i2c.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Ambarella I2C controller
> +
> +maintainers:
> + - Long Zhao <longzhao@ambarella.com>
> +
> +description:
> + Ambarella I2C master controller on media SoCs such as the CV75.
> + It supports standard, fast and fast-plus modes up to 1 MHz,
> + 7-bit and 10-bit addressing, and repeated start.
> + The controller input clock is the SoC APB clock (gclk_apb from the
> + RCT clock controller on CV75).
> +
> +allOf:
> + - $ref: /schemas/i2c/i2c-controller.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - ambarella,cv75-i2c
[Severity: Low]
Is the ambarella vendor prefix documented in
Documentation/devicetree/bindings/vendor-prefixes.yaml? Without an entry
there, checkpatch.pl and DT schema checks report ambarella,cv75-i2c as an
undocumented vendor prefix.
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> + description:
> + SoC APB clock that drives the controller (CV75 gclk_apb).
> +
> + clock-frequency:
> + description: Desired I2C bus clock frequency in Hz.
> + minimum: 1000
> + maximum: 1000000
> + default: 100000
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - clocks
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/ambarella,cv75-rct.h>
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> + i2c@e4008000 {
> + compatible = "ambarella,cv75-i2c";
> + reg = <0xe4008000 0x1000>;
> + interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
> + clocks = <&rct CV75_GCLK_APB>;
[Severity: Medium]
Does this example build with make dt_binding_check?
include/dt-bindings/clock/ambarella,cv75-rct.h and CV75_GCLK_APB are not
present in the tree, so preprocessing the example fails with a missing
header error.
> + clock-frequency = <100000>;
> + };
[Severity: Low]
This isn't a bug, but interrupts is listed before clocks in properties,
required, and the example node, whereas standard DT binding property order
places clocks before interrupts.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-cv75-i2c-v1-0-729176f61836@ambarella.com?part=1
prev parent reply other threads:[~2026-12-01 10:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:46 [PATCH 0/3] i2c: add Ambarella IDC master for CV75 Long Zhao via B4 Relay
2026-12-01 10:46 ` [PATCH 1/3] dt-bindings: i2c: add Ambarella IDC controller Long Zhao via B4 Relay
2026-12-01 10:56 ` sashiko-bot [this message]
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-243104@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=longzhao@ambarella.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox