From: Krzysztof Kozlowski <krzk@kernel.org>
To: "lianfeng.ouyang" <lianfeng.ouyang@starfivetech.com>,
Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] dt-bindings: i2c: Add StarFive JHB100 I2C
Date: Wed, 27 May 2026 15:04:52 +0200 [thread overview]
Message-ID: <0e3bae26-3bc3-43ff-8d66-aba84a6f6677@kernel.org> (raw)
In-Reply-To: <20260527085039.44435-2-lianfeng.ouyang@starfivetech.com>
On 27/05/2026 10:50, lianfeng.ouyang wrote:
> From: Lianfeng Ouyang <lianfeng.ouyang@starfivetech.com>
>
> Add device tree bindings for the Starfive I2C controller
> and its implementation
>
> The binding defines two platform-specific compatibles for the StarFive
> JHB100 implementation:
> - "starfive,jhb100-i2c-master"
> - "starfive,jhb100-i2c-slave"
You might get the same questions as v1, till you solve them. Why do you
add device role to the compatible?
Do not explain WHAT you did here. Explain the background and why you
did that way.
Also, use undeprecated naming, not master/slave.
>
> The controller supports standard I2C and SMBus protocols, programmable
> FIFO depths, and optional SMBus Alert routing. The binding documents
> the necessary clocks, resets, and timing properties.
>
> Signed-off-by: Lianfeng Ouyang <lianfeng.ouyang@starfivetech.com>
> ---
> .../bindings/i2c/starfive,jhb100-i2c.yaml | 128 ++++++++++++++++++
> 1 file changed, 128 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/i2c/starfive,jhb100-i2c.yaml
>
> diff --git a/Documentation/devicetree/bindings/i2c/starfive,jhb100-i2c.yaml b/Documentation/devicetree/bindings/i2c/starfive,jhb100-i2c.yaml
> new file mode 100644
> index 000000000000..c8631348121c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/starfive,jhb100-i2c.yaml
> @@ -0,0 +1,128 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright (C) 2024 StarFive Technology Co., Ltd.
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/i2c/starfive,jhb100-i2c.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: StarFive jhb100 I2C Controller
> +
> +maintainers:
> + - Lianfeng Ouyang <lianfeng.ouyang@starfivetech.com>
> +
> +allOf:
> + - $ref: /schemas/i2c/i2c-controller.yaml#
> +
> +properties:
> + compatible:
> + description: |
> + Must be one of:
> + - "starfive,jhb100-i2c-master" for master mode controller
> + - "starfive,jhb100-i2c-slave" for slave mode controller
Drop description, redundant. Schema tells that.
> + enum:
> + - starfive,jhb100-i2c-master
> + - starfive,jhb100-i2c-slave
> +
> + reg:
> + maxItems: 1
> + description: StarFive I2C controller memory mapped registers
Drop description, redundant.
> +
> + interrupts:
> + maxItems: 1
> +
> + clocks:
> + minItems: 2
> + maxItems: 2
Drop both, redundant.
> + items:
> + - description: I2C controller reference clock source
> + - description: APB interface clock source
> +
> + clock-names:
> + minItems: 2
> + maxItems: 2
Same. From where did you take such syntax...
> + items:
> + - const: ref
> + - const: pclk
> +
> + resets:
> + maxItems: 1
> + description: Phandle to the reset controller for the I2C controller
Drop description. Or say something useful.
> +
> + clock-frequency:
> + description: Desired I2C bus clock frequency in Hz
> + enum: [100000, 400000, 1000000, 3400000]
Aren't you duplicating constraints from dtschema?
> + default: 400000
> +
> + i2c-sda-hold-time-ns:
So you added a generic property - where is it documented? Generic
properties must be in common schema or dtschema.
And please prove that none of the generic properties are suitable.
> + $ref: /schemas/types.yaml#/definitions/uint32
I don't think you tested it. And this concludes my review. I finished
here. Please do not send untested bindings.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-05-27 13:04 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-27 8:50 [PATCH v2 0/3] i2c: Add Starfive JHB100 I2C master/slave support lianfeng.ouyang
2026-05-27 8:50 ` [PATCH v2 1/3] dt-bindings: i2c: Add StarFive JHB100 I2C lianfeng.ouyang
2026-05-27 13:04 ` Krzysztof Kozlowski [this message]
2026-05-28 6:57 ` 回复: " Lianfeng Ouyang
2026-05-28 7:47 ` Krzysztof Kozlowski
2026-05-28 8:30 ` 回复: " Lianfeng Ouyang
2026-05-27 8:50 ` [PATCH v2 2/3] i2c: designware: Export symbols and add __weak for Starfive I2C driver lianfeng.ouyang
2026-05-27 13:07 ` Krzysztof Kozlowski
2026-05-28 2:36 ` 回复: " Lianfeng Ouyang
2026-05-28 7:46 ` Krzysztof Kozlowski
2026-05-28 8:28 ` 回复: " Lianfeng Ouyang
2026-06-03 14:34 ` Krzysztof Kozlowski
2026-06-04 2:11 ` 回复: " Lianfeng Ouyang
2026-06-02 22:24 ` Andy Shevchenko
2026-05-27 8:50 ` [PATCH v2 3/3] i2c: starfive: Add StarFive JHB100 I2C master/slave support lianfeng.ouyang
2026-05-27 12:36 ` [PATCH v2 0/3] i2c: Add Starfive " Mika Westerberg
2026-05-28 2:41 ` 回复: " Lianfeng Ouyang
2026-06-02 22:26 ` Andy Shevchenko
2026-06-03 5:31 ` 回复: " Lianfeng Ouyang
2026-06-03 5:48 ` Andy Shevchenko
2026-06-03 6:09 ` 回复: " Lianfeng Ouyang
2026-06-03 6:39 ` Andy Shevchenko
2026-06-04 3:00 ` 回复: " Lianfeng Ouyang
2026-06-04 18:09 ` Andy Shevchenko
2026-06-08 9:48 ` 回复: " Lianfeng Ouyang
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=0e3bae26-3bc3-43ff-8d66-aba84a6f6677@kernel.org \
--to=krzk@kernel.org \
--cc=andi.shyti@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--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=mika.westerberg@linux.intel.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
Powered by JetHome