mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Javier Carrasco" <javier.carrasco.cruz@gmail.com>
To: "Per-Daniel Olsson" <perdaniel.olsson@axis.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>
Cc: <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<devicetree@vger.kernel.org>, <rickard.andersson@axis.com>,
	<kernel@axis.com>,
	"Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>
Subject: Re: [PATCH v6 1/2] dt-bindings: iio: light: Document TI OPT4060 RGBW sensor
Date: Thu, 21 Nov 2024 13:33:07 +0100	[thread overview]
Message-ID: <D5RUYD6QBEC6.3CKN66RGZQGQH@gmail.com> (raw)
In-Reply-To: <20241120163247.2791600-2-perdaniel.olsson@axis.com>

On Wed Nov 20, 2024 at 5:32 PM CET, Per-Daniel Olsson wrote:
> Add devicetree bindings for the OPT4060 RGBW color sensor.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Per-Daniel Olsson <perdaniel.olsson@axis.com>
> ---
>  .../bindings/iio/light/ti,opt4060.yaml        | 51 +++++++++++++++++++
>  1 file changed, 51 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/light/ti,opt4060.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/light/ti,opt4060.yaml b/Documentation/devicetree/bindings/iio/light/ti,opt4060.yaml
> new file mode 100644
> index 000000000000..0577e27db1ef
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/light/ti,opt4060.yaml
> @@ -0,0 +1,51 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/light/ti,opt4060.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Texas Instruments OPT4060 RGBW Color Sensor
> +
> +maintainers:
> +  - Per-Daniel Olsson <perdaniel.olsson@axis.com>
> +
> +description:
> +  Texas Instrument RGBW high resolution color sensor over I2C.
> +  https://www.ti.com/lit/gpn/opt4060
> +
> +properties:
> +  compatible:
> +    enum:
> +      - ti,opt4060
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +

You could simply use vdd-supply: true, as it is obvious what it does.

> +  vdd-supply:
> +    description: Regulator that provides power to the sensor.
> +

is vdd-supply not required?

> +required:
> +  - compatible
> +  - reg
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        light-sensor@44 {
> +            compatible = "ti,opt4060";
> +            reg = <0x44>;
> +            vdd-supply = <&vdd_reg>;
> +            interrupt-parent = <&gpio5>;
> +            interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
> +        };
> +    };
> +...

Best regards,
Javier Carrasco

  reply	other threads:[~2024-11-21 12:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-20 16:32 [PATCH v6 0/2] Support for Texas Instruments OPT4060 RGBW Color sensor Per-Daniel Olsson
2024-11-20 16:32 ` [PATCH v6 1/2] dt-bindings: iio: light: Document TI OPT4060 RGBW sensor Per-Daniel Olsson
2024-11-21 12:33   ` Javier Carrasco [this message]
2024-11-20 16:32 ` [PATCH v6 2/2] iio: light: Add support for TI OPT4060 color sensor Per-Daniel Olsson
2024-11-21 12:50   ` Javier Carrasco

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=D5RUYD6QBEC6.3CKN66RGZQGQH@gmail.com \
    --to=javier.carrasco.cruz@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=kernel@axis.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perdaniel.olsson@axis.com \
    --cc=rickard.andersson@axis.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

all inboxes | Powered by JetHome®