2021-05-05 13:41:26

by Alain Volmat

[permalink] [raw]
Subject: [PATCH v4 1/2] i2c: add binding to mark a bus as supporting SMBus-Alert

Since SMBus-Alert is an optional feature of SMBUS which
requires an additional pin, the smbus binding cannot be
used to indicate its support.

Add an additional smbus-alert binding specific for it and
update the description text of smbus to avoid mentioning
SMBus-Alert

Signed-off-by: Alain Volmat <[email protected]>
---
Documentation/devicetree/bindings/i2c/i2c.txt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt
index df41f72afc87..b864916e087f 100644
--- a/Documentation/devicetree/bindings/i2c/i2c.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c.txt
@@ -89,8 +89,11 @@ wants to support one of the below features, it should adapt these bindings.

- smbus
states that additional SMBus restrictions and features apply to this bus.
- Examples of features are SMBusHostNotify and SMBusAlert. Examples of
- restrictions are more reserved addresses and timeout definitions.
+ An example of feature is SMBusHostNotify. Examples of restrictions are
+ more reserved addresses and timeout definitions.
+
+- smbus-alert
+ states that the optional SMBus-Alert feature apply to this bus.

Required properties (per child device)
--------------------------------------
--
2.7.4


2021-05-07 05:46:53

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH v4 1/2] i2c: add binding to mark a bus as supporting SMBus-Alert

On Wed, May 05, 2021 at 03:14:38PM +0200, Alain Volmat wrote:
> Since SMBus-Alert is an optional feature of SMBUS which
> requires an additional pin, the smbus binding cannot be
> used to indicate its support.
>
> Add an additional smbus-alert binding specific for it and
> update the description text of smbus to avoid mentioning
> SMBus-Alert
>
> Signed-off-by: Alain Volmat <[email protected]>
> ---
> Documentation/devicetree/bindings/i2c/i2c.txt | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)

This needs to be added to i2c-bus.yaml too.

Acked-by: Rob Herring <[email protected]>

>
> diff --git a/Documentation/devicetree/bindings/i2c/i2c.txt b/Documentation/devicetree/bindings/i2c/i2c.txt
> index df41f72afc87..b864916e087f 100644
> --- a/Documentation/devicetree/bindings/i2c/i2c.txt
> +++ b/Documentation/devicetree/bindings/i2c/i2c.txt
> @@ -89,8 +89,11 @@ wants to support one of the below features, it should adapt these bindings.
>
> - smbus
> states that additional SMBus restrictions and features apply to this bus.
> - Examples of features are SMBusHostNotify and SMBusAlert. Examples of
> - restrictions are more reserved addresses and timeout definitions.
> + An example of feature is SMBusHostNotify. Examples of restrictions are
> + more reserved addresses and timeout definitions.
> +
> +- smbus-alert
> + states that the optional SMBus-Alert feature apply to this bus.
>
> Required properties (per child device)
> --------------------------------------
> --
> 2.7.4
>

2021-05-25 22:21:24

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH v4 1/2] i2c: add binding to mark a bus as supporting SMBus-Alert


> This needs to be added to i2c-bus.yaml too.

We don't have that yet? Am I missing something?


Attachments:
(No filename) (102.00 B)
signature.asc (849.00 B)
Download all attachments

2021-05-25 22:23:21

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH v4 1/2] i2c: add binding to mark a bus as supporting SMBus-Alert

On Wed, May 05, 2021 at 03:14:38PM +0200, Alain Volmat wrote:
> Since SMBus-Alert is an optional feature of SMBUS which
> requires an additional pin, the smbus binding cannot be
> used to indicate its support.
>
> Add an additional smbus-alert binding specific for it and
> update the description text of smbus to avoid mentioning
> SMBus-Alert
>
> Signed-off-by: Alain Volmat <[email protected]>

Applied to for-next, thanks!


Attachments:
(No filename) (450.00 B)
signature.asc (849.00 B)
Download all attachments