From: Krzysztof Kozlowski <krzk@kernel.org>
To: SP_ISW1_AT@novatek.com.tw, andi.shyti@kernel.org,
robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
linux-i2c@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: ben_huang@novatek.com.tw, toby_chui@novatek.com.tw,
shihpei_hsu@novatek.com.tw
Subject: Re: [PATCH 2/3] dt-bindings: i2c: add Novatek NT726xx SoC i2c controller
Date: Fri, 5 Jun 2026 12:37:40 +0200 [thread overview]
Message-ID: <ffb9c16e-5a5a-45c4-8d4b-369b0a4fe314@kernel.org> (raw)
In-Reply-To: <20260605035614.383387-1-SP_ISW1_AT@novatek.com.tw>
On 05/06/2026 05:56, SP_ISW1_AT@novatek.com.tw wrote:
> From: Ben Huang <Ben_Huang@novatek.com.tw>
>
> Add device tree documentation for Novatek NT726xx SoC i2c controller.
>
> Signed-off-by: Ben Huang <Ben_Huang@novatek.com.tw>
> Signed-off-by: Novatek i2c <SP_ISW1_AT@novatek.com.tw>
This won't work. Please see submitting patches and explanation of DCO.
> ---
> v2:
Please version your patches correctly, e.g. use b4 or git format-patch
-vX, and add changelog in cover letter or under '---' of individual
patches describing changes from previous version.
Limited review.
> - Add Novatek i2c to Signed-off-by email list.
> - Remove confidential related statements and HTML messages.
> - Fix the potential issues in the device tree document and
> i2c driver source codes.
> - Fix typos.
>
> v1:
> https://lore.kernel.org/lkml/20260604060411.355675-1-SP_ISW1_AT@novatek.com.tw/T/#t
> ---
> .../bindings/i2c/novatek,nt726xx-i2c.yaml | 48 +++++++++++++++++++
> 1 file changed, 48 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/i2c/novatek,nt726xx-i2c.yaml
>
> diff --git a/Documentation/devicetree/bindings/i2c/novatek,nt726xx-i2c.yaml b/Documentation/devicetree/bindings/i2c/novatek,nt726xx-i2c.yaml
> new file mode 100644
> index 000000000000..d9dfdaaec205
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/novatek,nt726xx-i2c.yaml
> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/i2c/novatek,nt726xx-i2c.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +maintainers:
> + - Ben Huang <ben_huang@novatek.com.tw>
> + - Jason JJ Wu <jason_jj_wu@novatek.com.tw>
> +
> +title: Novatek NT726xx SoC I2C master controller
> +
> +allOf:
> + - $ref: /schemas/i2c/i2c-controller.yaml#
> +
> +properties:
> + compatible:
> + const: novatek,nt726xx-i2c
> +
> + reg:
> + maxItems: 4
You need to list the items instead.
> +
> + interrupts:
> + maxItems: 3
You need to list the items instead.
> +
> + clock-frequency:
> + description: Operation clock frequency of i2c in Hz.
Drop
> + default: 100000
> + enum: [ 100000, 400000 ]
> +
> + novatek,hwmods:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: Name of each i2c pin, must be named with "i2cX". (X is
> + an integer starting from 0)
> + minItems: 1
There is no such syntax. Please do not invent own style.
Anyway, I don't understand the property - drop.
> +
> + novatek,stbc:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Set if this i2c master controlled by stbc.
No clue what does that mean. What is stbc? Acronym of something? Why
would that be a property of a board?
> + minItems: 1
Please open existing code. Do you see anywhere uint32 with minItems?
Like anywhere? I really wonder what process lead to such code...
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - novatek,hwmods
> +
> +unevaluatedProperties: false
Missing example. Please open existing bindings and look how it is done.
do you see i2c controllers without examples?
This binding has several trivial issues which means you did not really
use existing code as starting point, did not read the docs or tutorials
from OSS conferences. I encourage to start with these.
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-06-05 10:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-05 3:55 [PATCH 1/3] MAINTAINERS: Add entry for Novatek NT726xx SoC i2c driver SP_ISW1_AT
2026-06-05 3:56 ` [PATCH 2/3] dt-bindings: i2c: add Novatek NT726xx SoC i2c controller SP_ISW1_AT
2026-06-05 3:56 ` [PATCH 3/3] i2c: Add i2c-nt726xx.c i2c driver for Novatek NT726xx SoCs SP_ISW1_AT
2026-06-05 5:25 ` [PATCH 2/3] dt-bindings: i2c: add Novatek NT726xx SoC i2c controller Rob Herring (Arm)
2026-06-05 10:37 ` Krzysztof Kozlowski [this message]
2026-06-05 10:40 ` Krzysztof Kozlowski
2026-06-05 10:38 ` [PATCH 1/3] MAINTAINERS: Add entry for Novatek NT726xx SoC i2c driver Krzysztof Kozlowski
-- strict thread matches above, loose matches on Subject: below --
2026-06-04 6:04 SP_ISW1_AT
2026-06-04 6:04 ` [PATCH 2/3] dt-bindings: i2c: add Novatek NT726xx SoC i2c controller SP_ISW1_AT
2026-06-04 14:37 ` Rob Herring (Arm)
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=ffb9c16e-5a5a-45c4-8d4b-369b0a4fe314@kernel.org \
--to=krzk@kernel.org \
--cc=SP_ISW1_AT@novatek.com.tw \
--cc=andi.shyti@kernel.org \
--cc=ben_huang@novatek.com.tw \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=shihpei_hsu@novatek.com.tw \
--cc=toby_chui@novatek.com.tw \
/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