Re: [PATCH dt-schema] schemas: i2c: add optional GPIO binding for SMBALERT# line

Rob Herring <[email protected]>
Newsgroups org.kernel.vger.devicetree-spec,org.kernel.vger.linux-i2c,org.kernel.vger.linux-renesas-soc
Message-ID <CAL_JsqLui9=K_LdAoEAibxRo30_2ahdGXhCW50ow8rcqCp6jZA@mail.gmail.com>
On Mon, Sep 9, 2024 at 5:58 AM Wolfram Sang
<[email protected]> wrote:
>
> Most I2C controllers do not have a dedicated pin for SMBus Alerts. Allow
> them to define a GPIO as a side-channel.

Most GPIOs are also interrupts, so shouldn't the existing binding be
sufficient? The exception is if the GPIO needs to be polled.

>
> Signed-off-by: Wolfram Sang <[email protected]>
> ---
>  dtschema/schemas/i2c/i2c-controller.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/dtschema/schemas/i2c/i2c-controller.yaml b/dtschema/schemas/i2c/i2c-controller.yaml
> index 97d0aaa..487e669 100644
> --- a/dtschema/schemas/i2c/i2c-controller.yaml
> +++ b/dtschema/schemas/i2c/i2c-controller.yaml
> @@ -135,6 +135,11 @@ properties:
>        use this information to detect a stalled bus more reliably, for example.
>        Can not be combined with 'multi-master'.
>
> +  smbalert-gpios:
> +    maxItems: 1
> +    description:
> +      Specifies the GPIO used for the SMBALERT# line. Optional.
> +
>    smbus:
>      type: boolean
>      description:
> --
> 2.43.0
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.