@@ -39,7 +39,7 @@ properties:
maxItems: 1
poc-supply:
- description: Regulator providing Power over Coax to the cameras
+ description: Regulator providing Power over Coax to all the ports
enable-gpios:
description: GPIO connected to the \#PWDN pin with inverted polarity
@@ -160,6 +160,10 @@ properties:
additionalProperties: false
+patternProperties:
+ "^port[0-3]-poc-supply$":
+ description: Regulator providing Power over Coax for a particular port
+
required:
- compatible
- reg
@@ -167,6 +171,25 @@ required:
- i2c-mux
- gpio-controller
+allOf:
+ - if:
+ required:
+ - poc-supply
+ then:
+ allOf:
+ - not:
+ required:
+ - port0-poc-supply
+ - not:
+ required:
+ - port1-poc-supply
+ - not:
+ required:
+ - port2-poc-supply
+ - not:
+ required:
+ - port3-poc-supply
+
additionalProperties: false
examples: