[RFC PATCH 03/24] dt-bindings: media: i2c: max96717: add support for I2C ATR

Cosmin Tanislav
2025-03-08T18:34:41Z

MAX96717 is capable of address translation for the connected I2C slaves.

Add support for I2C ATR while keeping I2C gate for compatibility to
support this usecase.

Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
---
.../bindings/media/i2c/maxim,max96717.yaml | 34 ++++++++++++++-----
1 file changed, 26 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
index 1026678a17a7..7d77cc9dcd96 100644
--- a/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96717.yaml
@@ -83,14 +83,6 @@ properties:
required:
- port@1

- i2c-gate:
- $ref: /schemas/i2c/i2c-gate.yaml
- unevaluatedProperties: false
- description:
- The MAX96717 will forward the I2C requests from the
- incoming GMSL2 link. Therefore, it supports an i2c-gate
- subnode to configure a sensor.
-
required:
- compatible
- reg
@@ -98,6 +90,32 @@ required:

additionalProperties: false

+allOf:
+ - $ref: /schemas/i2c/i2c-atr.yaml#
+
+ - oneOf:
+ - properties:
+ i2c-gate:
+ $ref: /schemas/i2c/i2c-gate.yaml
+ unevaluatedProperties: false
+ description:
+ The MAX96717 will forward the I2C requests from the
+ incoming GMSL2 link. Therefore, it supports an i2c-gate
+ subnode to configure a sensor.
+
+ - properties:
+ i2c-alias-pool:
+ maxItems: 2
+
+ i2c-atr:
+ patternProperties:
+ '^i2c@0':
+ $ref: /schemas/i2c/i2c-controller.yaml#
+ properties:
+ reg:
+ items:
+ max: 0
+
examples:
- |
#include <dt-bindings/gpio/gpio.h>
--
2.48.1