dt-bindings: Drop unnecessary *-supply schemas properties
authorRob Herring <robh@kernel.org>
Mon, 21 Dec 2020 23:46:59 +0000 (16:46 -0700)
committerRob Herring <robh@kernel.org>
Wed, 23 Dec 2020 01:58:02 +0000 (18:58 -0700)
*-supply properties are always a single phandle, so binding schemas
don't need a type $ref nor 'maxItems'.

A meta-schema check for this is pending once these existing cases are
fixed.

Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-iio@vger.kernel.org
Cc: linux-input@vger.kernel.org
Cc: linux-media@vger.kernel.org
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20201221234659.824881-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
17 files changed:
Documentation/devicetree/bindings/display/bridge/anx6345.yaml
Documentation/devicetree/bindings/display/bridge/ite,it6505.yaml
Documentation/devicetree/bindings/display/bridge/lvds-codec.yaml
Documentation/devicetree/bindings/display/bridge/ps8640.yaml
Documentation/devicetree/bindings/display/bridge/simple-bridge.yaml
Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.yaml
Documentation/devicetree/bindings/display/bridge/toshiba,tc358775.yaml
Documentation/devicetree/bindings/iio/adc/lltc,ltc2496.yaml
Documentation/devicetree/bindings/iio/humidity/ti,hdc2010.yaml
Documentation/devicetree/bindings/input/fsl,mpr121-touchkey.yaml
Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml
Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml
Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml
Documentation/devicetree/bindings/media/i2c/sony,imx274.yaml
Documentation/devicetree/bindings/mfd/st,stmfx.yaml
Documentation/devicetree/bindings/regulator/anatop-regulator.yaml

index 8c0e4f285fbcb9867dea7e5f4e17743e862903b4..fccd63521a8ca3fa68ed45d42c39184accabbe3b 100644 (file)
@@ -26,11 +26,9 @@ properties:
     description: GPIO connected to active low reset
 
   dvdd12-supply:
-    maxItems: 1
     description: Regulator for 1.2V digital core power.
 
   dvdd25-supply:
-    maxItems: 1
     description: Regulator for 2.5V digital core power.
 
   ports:
index efbb3d0117dc6a845410b635c1f2c40079319a7e..02cfc0a3b550289b157a546946a87e85e73bdf3f 100644 (file)
@@ -35,11 +35,9 @@ properties:
     maxItems: 1
 
   ovdd-supply:
-    maxItems: 1
     description: I/O voltage
 
   pwr18-supply:
-    maxItems: 1
     description: core voltage
 
   interrupts:
index e5e3c72630cf8b4419b8ed3c530dcd043ffcee42..66a14d60ce1d54b2aafd4594aa140980b93918f9 100644 (file)
@@ -79,8 +79,7 @@ properties:
       The GPIO used to control the power down line of this device.
     maxItems: 1
 
-  power-supply:
-    maxItems: 1
+  power-supply: true
 
 required:
   - compatible
index 7e27cfcf770dd802c80805293b9c8aba93d674d8..763c7909473efe7bf3aa62ed6818eda598380fca 100644 (file)
@@ -35,11 +35,9 @@ properties:
     description: GPIO connected to active low reset.
 
   vdd12-supply:
-    maxItems: 1
     description: Regulator for 1.2V digital core power.
 
   vdd33-supply:
-    maxItems: 1
     description: Regulator for 3.3V digital core power.
 
   ports:
index 3ddb35fcf0a2cd6483946f973fab45b7cfafdc0d..64e8a1c24b402102ab03b028efc5ece510e27cf5 100644 (file)
@@ -60,7 +60,6 @@ properties:
     description: GPIO controlling bridge enable
 
   vdd-supply:
-    maxItems: 1
     description: Power supply for the bridge
 
 required:
index 469ac4a342739ee9c927bfadbea380923ae65f87..3d5ce08a5792726e71dea33154939237726d0023 100644 (file)
@@ -74,7 +74,6 @@ properties:
     description: Power down GPIO signal, pin name "/PDWN", active low.
 
   vcc-supply:
-    maxItems: 1
     description:
       Power supply for the TTL output, TTL CLOCKOUT signal, LVDS input, PLL and
       digital circuitry.
index fd3113aa9ccdc2dd831e3b1006b1f68bdaf79150..b5959cc78b8d34e1ce51772b8dbc29532750d653 100644 (file)
@@ -28,11 +28,9 @@ properties:
     description: i2c address of the bridge, 0x0f
 
   vdd-supply:
-    maxItems: 1
     description: 1.2V LVDS Power Supply
 
   vddio-supply:
-    maxItems: 1
     description: 1.8V IO Power Supply
 
   stby-gpios:
index 6a991e9f78e28a45e439e199e55157b7578ee08a..2716d4e953296adcf66507362947b3922b1aeea8 100644 (file)
@@ -17,8 +17,7 @@ properties:
       - lltc,ltc2496
 
   vref-supply:
-    description: phandle to an external regulator providing the reference voltage
-    $ref: /schemas/types.yaml#/definitions/phandle
+    description: Power supply for the reference voltage
 
   reg:
     description: spi chipselect number according to the usual spi bindings
index 7037f82ec7530f99b111e94416d621dd8d7710e2..88384b69f917c9c5b3eeffbd84e78e106025b7f3 100644 (file)
@@ -22,8 +22,7 @@ properties:
       - ti,hdc2010
       - ti,hdc2080
 
-  vdd-supply:
-    maxItems: 1
+  vdd-supply: true
 
   reg:
     maxItems: 1
index 378a85c09d34155ef2b548019db1432fd65aed8a..878464f128dc473088eaf1d5e6121a754dea316d 100644 (file)
@@ -31,8 +31,7 @@ properties:
   interrupts:
     maxItems: 1
 
-  vdd-supply:
-    maxItems: 1
+  vdd-supply: true
 
   linux,keycodes:
     minItems: 1
index 4ce109476a0eee0feb2a0941e9971cff9d24ba35..bfc3a8b5e1182bfeadfd55bfbca5d6428a841e6f 100644 (file)
@@ -55,8 +55,7 @@ properties:
 
   wakeup-source: true
 
-  vcc-supply:
-    maxItems: 1
+  vcc-supply: true
 
   gain:
     description: Allows setting the sensitivity in the range from 0 to 31.
index 9ea827092fdd9131e791ae4942212e6e850ce5fd..68ee8c7d9e79d1dedce31456bc97c415ead67dbe 100644 (file)
@@ -40,7 +40,6 @@ properties:
 
   poc-supply:
     description: Regulator providing Power over Coax to the cameras
-    maxItems: 1
 
   enable-gpios:
     description: GPIO connected to the \#PWDN pin with inverted polarity
index 0df0334d2d0db3b9536e5d51522ceba676b75042..bb3528315f20c324b7fd41a4aba804e0cba2987a 100644 (file)
@@ -39,15 +39,12 @@ properties:
 
   vana-supply:
     description: Analogue voltage supply (VANA), sensor dependent.
-    maxItems: 1
 
   vcore-supply:
     description: Core voltage supply (VCore), sensor dependent.
-    maxItems: 1
 
   vio-supply:
     description: I/O voltage supply (VIO), sensor dependent.
-    maxItems: 1
 
   clocks:
     description: External clock to the sensor.
index 1a3590dd0e98a01ffe560d8c1fb3545842712bbe..eb12526a462fa76f2de857bf2b27601e181f9302 100644 (file)
@@ -37,15 +37,12 @@ properties:
 
   vdddo-supply:
     description: Chip digital IO regulator (1.8V).
-    maxItems: 1
 
   vdda-supply:
     description: Chip analog regulator (2.7V).
-    maxItems: 1
 
   vddd-supply:
     description: Chip digital core regulator (1.12V).
-    maxItems: 1
 
   flash-leds:
     description: See ../video-interfaces.txt
index f697e1a20beb7d147a99b759fe2e1e55aee42a44..a66acb20d59be9ed4862b0fa86cbfeca6518c1f4 100644 (file)
@@ -33,15 +33,12 @@ properties:
 
   vana-supply:
     description: Sensor 2.8 V analog supply.
-    maxItems: 1
 
   vdig-supply:
     description: Sensor 1.8 V digital core supply.
-    maxItems: 1
 
   vddl-supply:
     description: Sensor digital IO 1.2 V supply.
-    maxItems: 1
 
   port:
     type: object
index 888ab4b5df4584989a2a643edeebb8cf17f30be0..19e9afb385acb42429959eff845105785218e59c 100644 (file)
@@ -26,8 +26,7 @@ properties:
 
   drive-open-drain: true
 
-  vdd-supply:
-    maxItems: 1
+  vdd-supply: true
 
   pinctrl:
     type: object
index e7b3abe303639b7d3957b3e07a786f3dad9ee625..0a66338c7e5ae8354ecab5e482bfe0833f548d48 100644 (file)
@@ -59,7 +59,6 @@ properties:
     description: u32 value representing regulator enable bit offset.
 
   vin-supply:
-    $ref: '/schemas/types.yaml#/definitions/phandle'
     description: input supply phandle.
 
 required: