# \[PATCH v5 10/20\] dt-bindings: i2c: mv64xxx: Add H616 compatible string

- Subsystems: OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS, I2C MV64XXX MARVELL AND ALLWINNER DRIVER, I2C SUBSYSTEM HOST DRIVERS, THE REST
- Maintainers: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Gregory CLEMENT, Andi Shyti, Linus Torvalds
- Status: SUPERSEDED · 2 reviews, 1 by a maintainer (Superseded by v10 posted 2022-02-11 M Rob Herring Wolfram Sang)
- Superseded by v10 (posted 2022-02-11).
- Revision v5 (9 revisions archived); 2 review trailers (1 from subsystem maintainers).
- List: linux-devicetree
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-devicetree/2021/01/6249821/t

## \[PATCH v5 10/20\] dt-bindings: i2c: mv64xxx: Add H616 compatible string

- From: Andre Przywara \<andre.przywara@arm.com\>
- Date: 2021-01-27 17:30:45 
- Message: https://ratatoskr.run/linux-devicetree/2021/01/6249821.md

```text
Add the obvious compatible name to the existing I2C binding, and pair
it with the existing A31 fallback compatible string, as the devices
are compatible.

On the way use enums to group all compatible devices together.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Wolfram Sang <wsa@kernel.org>
---
 .../bindings/i2c/marvell,mv64xxx-i2c.yaml     | 21 +++++++------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
index 5b5ae402f97a..eb72dd571def 100644
--- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
@@ -18,21 +18,14 @@ properties:
           - const: allwinner,sun4i-a10-i2c
       - const: allwinner,sun6i-a31-i2c
       - items:
-          - const: allwinner,sun8i-a23-i2c
+          - enum:
+              - allwinner,sun8i-a23-i2c
+              - allwinner,sun8i-a83t-i2c
+              - allwinner,sun50i-a64-i2c
+              - allwinner,sun50i-a100-i2c
+              - allwinner,sun50i-h6-i2c
+              - allwinner,sun50i-h616-i2c
           - const: allwinner,sun6i-a31-i2c
-      - items:
-          - const: allwinner,sun8i-a83t-i2c
-          - const: allwinner,sun6i-a31-i2c
-      - items:
-          - const: allwinner,sun50i-a64-i2c
-          - const: allwinner,sun6i-a31-i2c
-      - items:
-          - const: allwinner,sun50i-a100-i2c
-          - const: allwinner,sun6i-a31-i2c
-      - items:
-          - const: allwinner,sun50i-h6-i2c
-          - const: allwinner,sun6i-a31-i2c
-
       - const: marvell,mv64xxx-i2c
       - const: marvell,mv78230-i2c
       - const: marvell,mv78230-a0-i2c
-- 
2.17.5

```

## Re: \[PATCH v5 10/20\] dt-bindings: i2c: mv64xxx: Add H616 compatible string

- From: Wolfram Sang \<wsa@kernel.org\>
- Date: 2021-01-28 08:53:18 
- Message: https://ratatoskr.run/linux-devicetree/2021/01/6250631.md

```text
On Wed, Jan 27, 2021 at 05:24:50PM +0000, Andre Przywara wrote:
> Add the obvious compatible name to the existing I2C binding, and pair
> it with the existing A31 fallback compatible string, as the devices
> are compatible.
> 
> On the way use enums to group all compatible devices together.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> Acked-by: Rob Herring <robh@kernel.org>
> Acked-by: Wolfram Sang <wsa@kernel.org>

Applied to for-next, thanks!

```
