2023-04-25 07:28:07

by Tomi Valkeinen

[permalink] [raw]
Subject: [PATCH v12 1/8] dt-bindings: i2c: Add I2C Address Translator (ATR)

Add bindings for I2C Address Translator. Only one property is added,
'i2c-alias-pool', which can be used in the bindings for the device that
supports ATR.

Signed-off-by: Tomi Valkeinen <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
---
.../devicetree/bindings/i2c/i2c-atr.yaml | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 Documentation/devicetree/bindings/i2c/i2c-atr.yaml

diff --git a/Documentation/devicetree/bindings/i2c/i2c-atr.yaml b/Documentation/devicetree/bindings/i2c/i2c-atr.yaml
new file mode 100644
index 000000000000..470cc6c9af35
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/i2c-atr.yaml
@@ -0,0 +1,34 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/i2c/i2c-atr.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Common i2c address translator properties.
+
+maintainers:
+ - Tomi Valkeinen <[email protected]>
+
+description:
+ An I2C Address Translator (ATR) is a device with an I2C slave parent
+ ("upstream") port and N I2C master child ("downstream") ports, and
+ forwards transactions from upstream to the appropriate downstream port
+ with a modified slave address. The address used on the parent bus is
+ called the "alias" and is (potentially) different from the physical
+ slave address of the child bus. Address translation is done by the
+ hardware.
+
+properties:
+ i2c-alias-pool:
+ $ref: /schemas/types.yaml#/definitions/uint16-array
+ description:
+ I2C alias pool is a pool of I2C addresses on the main I2C bus that can be
+ used to access the remote peripherals on the serializer's I2C bus. The
+ addresses must be available, not used by any other peripheral. Each
+ remote peripheral is assigned an alias from the pool, and transactions to
+ that address will be forwarded to the remote peripheral, with the address
+ translated to the remote peripheral's real address. This property is not
+ needed if there are no I2C addressable remote peripherals.
+
+additionalProperties: true
+...
--
2.34.1


2023-04-25 19:13:07

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH v12 1/8] dt-bindings: i2c: Add I2C Address Translator (ATR)

On Tue, Apr 25, 2023 at 10:25:54AM +0300, Tomi Valkeinen wrote:
> Add bindings for I2C Address Translator. Only one property is added,
> 'i2c-alias-pool', which can be used in the bindings for the device that
> supports ATR.
>
> Signed-off-by: Tomi Valkeinen <[email protected]>
> Acked-by: Wolfram Sang <[email protected]>
> ---
> .../devicetree/bindings/i2c/i2c-atr.yaml | 34 +++++++++++++++++++
> 1 file changed, 34 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/i2c/i2c-atr.yaml

I commented on v11.