@@ -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>
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(-)