Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Alexandre Hamamdjian via B4 Relay"
	<devnull+azkali.limited.gmail.com@kernel.org>
Cc: robh@kernel.org, devicetree@vger.kernel.org, krzk+dt@kernel.org,
	conor+dt@kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: iio: light: Add ROHM BH1730FVC binding
Date: Mon, 11 May 2026 21:47:11 +0000	[thread overview]
Message-ID: <20260511214711.E08AEC2BCB0@smtp.kernel.org> (raw)
In-Reply-To: <20260511-bh1730-v1-1-e0df1f499135@gmail.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [Low] The regulator supply properties `als-vdd-supply` and `als-vid-supply` use a redundant and non-standard `als-` prefix.
- [Low] The description for `als-vid-supply` incorrectly claims it is for an "LED indicator supply (VID)".
- [Low] The description for `rohm,opt-win-coeff` contradicts its schema definition by asking for a "flat list".
--

commit 54cb92717c1eb05d5ed9e2a6d74a2b1e27c4482c
Author: CTCaer <ctcaer@gmail.com>

dt-bindings: iio: light: Add ROHM BH1730FVC binding

Adds a YAML binding for the ROHM BH1730FVC ambient light sensor,
documenting required properties, regulators, and calibration coefficients.

> diff --git a/Documentation/devicetree/bindings/iio/light/rohm,bh1730fvc.yaml b/Documentation/devicetree/bindings/iio/light/rohm,bh1730fvc.yaml
> new file mode 100644
> index 0000000000000..6273b69e82ab2
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/light/rohm,bh1730fvc.yaml
[ ... ]
> +  reg:
> +    maxItems: 1
> +
> +  als-vdd-supply:
> +    description: Regulator for the analog/digital supply (VDD).
> +
> +  als-vid-supply:
> +    description: Regulator for the LED indicator supply (VID).

This isn't a bug, but should the als- prefix be dropped from these supply
properties? Standard device tree conventions typically use vdd-supply and
vid-supply directly unless the hardware pins are explicitly named with the
prefix.

Also, is the description for the VID supply accurate? The ROHM BH1730FVC is
an ambient light sensor without an LED. VID typically stands for Voltage for
Interface/Digital. Does this description need to be updated to reflect the
hardware?

[ ... ]
> +  rohm,opt-win-coeff:
> +    description:
> +      Optical-window calibration coefficients. Specified as a flat list of
> +      triplets <rc cv ci>, one triplet per window region, where rc is the
> +      visible/IR ratio cutoff and cv/ci are the visible and IR weighting
> +      factors used in that region.
> +    $ref: /schemas/types.yaml#/definitions/uint32-matrix

This isn't a bug, but does the description contradict the schema definition?

The text instructs users to provide a flat list, but the property is defined
as a uint32-matrix. If a flat list is provided, schema validation will fail
the maxItems constraint.

Should the description specify an array of matrices instead, to match the
example below?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260511-bh1730-v1-0-e0df1f499135@gmail.com?part=1

  parent reply	other threads:[~2026-05-11 21:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-10 18:09 [PATCH 0/2] iio: light: Add ROHM BH1730FVC ambient light sensor driver Alexandre Hamamdjian via B4 Relay
2026-05-10 18:09 ` [PATCH 1/2] dt-bindings: iio: light: Add ROHM BH1730FVC binding Alexandre Hamamdjian via B4 Relay
2026-05-11  8:22   ` Matti Vaittinen
2026-05-11 10:43     ` Matti Vaittinen
2026-05-11 15:14       ` Jonathan Cameron
2026-05-12  4:42         ` Matti Vaittinen
2026-05-12 11:55           ` Jonathan Cameron
2026-05-11 15:20   ` Jonathan Cameron
2026-05-11 21:47   ` sashiko-bot [this message]
2026-05-10 18:09 ` [PATCH 2/2] iio: light: bh1730: Add bh1730 light sensor driver Alexandre Hamamdjian via B4 Relay
2026-05-10 18:18   ` Andy Shevchenko
2026-05-10 18:20     ` Andy Shevchenko
     [not found]       ` <CAL5cOWuXAD7+rJEKB9FjnwdCjoUJK+WNKXZXt8tfnq1WLmv5eg@mail.gmail.com>
2026-05-11  7:31         ` Andy Shevchenko
2026-05-11  8:26       ` Matti Vaittinen
2026-05-11 10:17   ` Matti Vaittinen
2026-05-11 15:50   ` Jonathan Cameron
2026-05-11 22:09   ` sashiko-bot
2026-05-10 18:13 ` [PATCH 0/2] iio: light: Add ROHM BH1730FVC ambient " Andy Shevchenko

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=20260511214711.E08AEC2BCB0@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=devnull+azkali.limited.gmail.com@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko@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