Devices to be added in following patches have more input/output ports. Make this property conditional on the compatible strings. Signed-off-by: Cosmin Tanislav <demonsingur@xxxxxxxxx> --- .../bindings/media/i2c/maxim,max96714.yaml | 90 ++++++++++--------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml b/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml index d0a2aaf7df9c..f0ae069c93b5 100644 --- a/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml +++ b/Documentation/devicetree/bindings/media/i2c/maxim,max96714.yaml @@ -41,56 +41,12 @@ properties: description: Specifier for the GPIO connected to the PWDNB pin. - ports: - $ref: /schemas/graph.yaml#/properties/ports - - properties: - port@0: - $ref: /schemas/graph.yaml#/properties/port - unevaluatedProperties: false - description: GMSL Input - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - description: - Endpoint for GMSL2-Link port. - - port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: CSI-2 Output port - - properties: - endpoint: - $ref: /schemas/media/video-interfaces.yaml# - unevaluatedProperties: false - - properties: - data-lanes: - minItems: 1 - maxItems: 4 - - lane-polarities: - minItems: 1 - maxItems: 5 - - link-frequencies: - maxItems: 1 - - required: - - data-lanes - - required: - - port@1 - port0-poc-supply: description: Regulator providing Power over Coax for the GMSL port required: - compatible - reg - - ports additionalProperties: false allOf: @@ -102,11 +58,57 @@ allOf: - maxim,max96714 - maxim,max96714f then: + required: + - ports + properties: i2c-gate: $ref: /schemas/i2c/i2c-gate.yaml unevaluatedProperties: false + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + unevaluatedProperties: false + description: GMSL Input + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + description: + Endpoint for GMSL2-Link port. + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: CSI-2 Output port + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + lane-polarities: + minItems: 1 + maxItems: 5 + + link-frequencies: + maxItems: 1 + + required: + - data-lanes + + required: + - port@1 + examples: - | #include <dt-bindings/gpio/gpio.h> -- 2.48.1