2022-07-02 05:34:32

by Samuel Holland

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: i2c: mv64xxx: Add variants with offload support

V536 and newer Allwinner SoCs contain an updated I2C controller which
includes an offload engine for master mode. The controller retains the
existing register interface, so the A31 compatible still applies.

Add the V536 compatible and use it as a fallback for other SoCs with the
updated hardware. This includes two SoCs that were already documented
(H616 and A100) and two new SoCs (R329 and D1).

Signed-off-by: Samuel Holland <[email protected]>
---

.../devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
index f771c09aabfc..0ec033e48830 100644
--- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
@@ -21,10 +21,18 @@ properties:
- enum:
- allwinner,sun8i-a23-i2c
- allwinner,sun8i-a83t-i2c
+ - allwinner,sun8i-v536-i2c
- allwinner,sun50i-a64-i2c
- - allwinner,sun50i-a100-i2c
- allwinner,sun50i-h6-i2c
+ - const: allwinner,sun6i-a31-i2c
+ - description: Allwinner SoCs with offload support
+ items:
+ - enum:
+ - allwinner,sun20i-d1-i2c
+ - allwinner,sun50i-a100-i2c
- allwinner,sun50i-h616-i2c
+ - allwinner,sun50i-r329-i2c
+ - const: allwinner,sun8i-v536-i2c
- const: allwinner,sun6i-a31-i2c
- const: marvell,mv64xxx-i2c
- const: marvell,mv78230-i2c
--
2.35.1


2022-07-04 08:40:42

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i2c: mv64xxx: Add variants with offload support

On 02/07/2022 07:25, Samuel Holland wrote:
> V536 and newer Allwinner SoCs contain an updated I2C controller which
> includes an offload engine for master mode. The controller retains the
> existing register interface, so the A31 compatible still applies.
>
> Add the V536 compatible and use it as a fallback for other SoCs with the
> updated hardware. This includes two SoCs that were already documented
> (H616 and A100) and two new SoCs (R329 and D1).
>
> Signed-off-by: Samuel Holland <[email protected]>
> ---


Acked-by: Krzysztof Kozlowski <[email protected]>


Best regards,
Krzysztof

2022-07-05 10:51:31

by Andre Przywara

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i2c: mv64xxx: Add variants with offload support

On Sat, 2 Jul 2022 00:25:42 -0500
Samuel Holland <[email protected]> wrote:

Hi,

> V536 and newer Allwinner SoCs contain an updated I2C controller which
> includes an offload engine for master mode. The controller retains the
> existing register interface, so the A31 compatible still applies.
>
> Add the V536 compatible and use it as a fallback for other SoCs with the
> updated hardware. This includes two SoCs that were already documented
> (H616 and A100) and two new SoCs (R329 and D1).
>
> Signed-off-by: Samuel Holland <[email protected]>

That seems correct to me: I couldn't get hold of manuals of some of the new
SoCs, but at least the D1 and H616 indeed add an extra set of registers
for this "TWI driver" offload engine. But the basic operation is still
supported, so the two fallbacks make sense.

Reviewed-by: Andre Przywara <[email protected]>

Cheers,
Andre

> ---
>
> .../devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
> index f771c09aabfc..0ec033e48830 100644
> --- a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
> +++ b/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml
> @@ -21,10 +21,18 @@ properties:
> - enum:
> - allwinner,sun8i-a23-i2c
> - allwinner,sun8i-a83t-i2c
> + - allwinner,sun8i-v536-i2c
> - allwinner,sun50i-a64-i2c
> - - allwinner,sun50i-a100-i2c
> - allwinner,sun50i-h6-i2c
> + - const: allwinner,sun6i-a31-i2c
> + - description: Allwinner SoCs with offload support
> + items:
> + - enum:
> + - allwinner,sun20i-d1-i2c
> + - allwinner,sun50i-a100-i2c
> - allwinner,sun50i-h616-i2c
> + - allwinner,sun50i-r329-i2c
> + - const: allwinner,sun8i-v536-i2c
> - const: allwinner,sun6i-a31-i2c
> - const: marvell,mv64xxx-i2c
> - const: marvell,mv78230-i2c

2022-07-05 20:14:46

by Jernej Škrabec

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i2c: mv64xxx: Add variants with offload support

Dne sobota, 02. julij 2022 ob 07:25:42 CEST je Samuel Holland napisal(a):
> V536 and newer Allwinner SoCs contain an updated I2C controller which
> includes an offload engine for master mode. The controller retains the
> existing register interface, so the A31 compatible still applies.
>
> Add the V536 compatible and use it as a fallback for other SoCs with the
> updated hardware. This includes two SoCs that were already documented
> (H616 and A100) and two new SoCs (R329 and D1).
>
> Signed-off-by: Samuel Holland <[email protected]>

Applied, thanks!

Best regards,
Jernej


2022-07-06 20:15:16

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: i2c: mv64xxx: Add variants with offload support

On Sat, Jul 02, 2022 at 12:25:42AM -0500, Samuel Holland wrote:
> V536 and newer Allwinner SoCs contain an updated I2C controller which
> includes an offload engine for master mode. The controller retains the
> existing register interface, so the A31 compatible still applies.
>
> Add the V536 compatible and use it as a fallback for other SoCs with the
> updated hardware. This includes two SoCs that were already documented
> (H616 and A100) and two new SoCs (R329 and D1).
>
> Signed-off-by: Samuel Holland <[email protected]>

Acked-by: Wolfram Sang <[email protected]>


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