[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <99eeac8e-1811-0d9b-9d19-875c339b5fbc@linaro.org>
Date: Tue, 18 Apr 2023 18:33:51 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Stefan Windfeldt-Prytz <stefan.windfeldt-prytz@...s.com>,
Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>
Cc: linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel@...s.com
Subject: Re: [PATCH v2 1/2] dt-bindings: Document TI OPT4001 light sensor
bindings
On 18/04/2023 12:36, Stefan Windfeldt-Prytz wrote:
> Add devicetree bindings for opt4001 ambient light sensor.
Use subject prefixes matching the subsystem (which you can get for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching).
Subject: drop second/last, redundant "bindings". The "dt-bindings"
prefix is already stating that these are bindings.
>
> Signed-off-by: Stefan Windfeldt-Prytz <stefan.windfeldt-prytz@...s.com>
> ---
> .../devicetree/bindings/iio/light/ti,opt4001.yaml | 69 ++++++++++++++++++++++
> 1 file changed, 69 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/light/ti,opt4001.yaml b/Documentation/devicetree/bindings/iio/light/ti,opt4001.yaml
> new file mode 100644
> index 000000000000..43fd1a992aea
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/light/ti,opt4001.yaml
> @@ -0,0 +1,69 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/light/ti,opt4001.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments OPT4001 Ambient Light Sensor
> +
> +maintainers:
> + - Stefan Windfeldt-Prytz <stefan.windfeldt-prytz@...s.com>
> +
> +description: |
Do not need '|' unless you need to preserve formatting.
> + Ambient light sensor with an i2c interface.
> + Last part of compatible is for the packaging used.
> + Picostar is a 4 pinned SMT and sot-5x3 is a 8 pinned SOT.
> + Only sot-5x3 has an interrupt pin.
Drop this sentence. It obvious from the schema.
> + https://www.ti.com/lit/gpn/opt4001
> +
> +properties:
> + compatible:
> + enum:
> + - ti,opt4001-picostar
> + - ti,opt4001-sot-5x3
Best regards,
Krzysztof
Powered by blists - more mailing lists