Commit f3dde260 authored by Rob Herring's avatar Rob Herring

dt-bindings: Clean-up regulator '-supply' schemas

Regulator '*-supply' properties are always a single phandle, so
'maxItems: 1' or a $ref is not necessary. All that's needed is either
'true' or an optional 'description'. Following this clean-up, the
meta-schema will enforce this pattern.

There's one case in tree with 'innolux,n156bge-l21' having 2 phandles.
This appears to be a mistake or abuse of simple-panel as it's 2 different
voltage rails connected to 'power-supply'.

Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: linux-iio@vger.kernel.org
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # for iio
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent e400edb1
...@@ -79,8 +79,6 @@ properties: ...@@ -79,8 +79,6 @@ properties:
hdmi-supply: hdmi-supply:
description: phandle to an external 5V regulator to power the HDMI logic description: phandle to an external 5V regulator to power the HDMI logic
allOf:
- $ref: /schemas/types.yaml#/definitions/phandle
port@0: port@0:
type: object type: object
......
...@@ -37,8 +37,7 @@ properties: ...@@ -37,8 +37,7 @@ properties:
clocks: clocks:
maxItems: 1 maxItems: 1
mali-supply: mali-supply: true
maxItems: 1
operating-points-v2: true operating-points-v2: true
......
...@@ -69,8 +69,7 @@ properties: ...@@ -69,8 +69,7 @@ properties:
- const: core - const: core
- const: bus - const: bus
mali-supply: mali-supply: true
maxItems: 1
resets: resets:
minItems: 1 minItems: 1
......
...@@ -97,8 +97,7 @@ properties: ...@@ -97,8 +97,7 @@ properties:
memory-region: true memory-region: true
mali-supply: mali-supply: true
maxItems: 1
power-domains: power-domains:
maxItems: 1 maxItems: 1
......
...@@ -45,15 +45,12 @@ properties: ...@@ -45,15 +45,12 @@ properties:
refin1-supply: refin1-supply:
description: refin1 supply can be used as reference for conversion. description: refin1 supply can be used as reference for conversion.
maxItems: 1
refin2-supply: refin2-supply:
description: refin2 supply can be used as reference for conversion. description: refin2 supply can be used as reference for conversion.
maxItems: 1
avdd-supply: avdd-supply:
description: avdd supply can be used as reference for conversion. description: avdd supply can be used as reference for conversion.
maxItems: 1
required: required:
- compatible - compatible
......
...@@ -31,10 +31,7 @@ properties: ...@@ -31,10 +31,7 @@ properties:
spi-cpha: true spi-cpha: true
avcc-supply: avcc-supply: true
description:
Phandle to the Avcc power supply
maxItems: 1
interrupts: interrupts:
maxItems: 1 maxItems: 1
......
...@@ -39,7 +39,6 @@ properties: ...@@ -39,7 +39,6 @@ properties:
avdd-supply: avdd-supply:
description: description:
The regulator supply for the ADC reference voltage. The regulator supply for the ADC reference voltage.
maxItems: 1
powerdown-gpios: powerdown-gpios:
description: description:
......
...@@ -41,7 +41,6 @@ properties: ...@@ -41,7 +41,6 @@ properties:
avdd-supply: avdd-supply:
description: description:
Definition of the regulator used as analog supply Definition of the regulator used as analog supply
maxItems: 1
clock-frequency: clock-frequency:
minimum: 20000 minimum: 20000
......
...@@ -46,9 +46,7 @@ properties: ...@@ -46,9 +46,7 @@ properties:
"#io-channel-cells": "#io-channel-cells":
const: 1 const: 1
vdd-supply: vdd-supply: true
description: VDD input supply
maxItems: 1
samsung,syscon-phandle: samsung,syscon-phandle:
$ref: '/schemas/types.yaml#/definitions/phandle' $ref: '/schemas/types.yaml#/definitions/phandle'
......
...@@ -25,7 +25,6 @@ properties: ...@@ -25,7 +25,6 @@ properties:
vcc-supply: vcc-supply:
description: regulator that provides power to the sensor description: regulator that provides power to the sensor
maxItems: 1
plantower,set-gpios: plantower,set-gpios:
description: GPIO connected to the SET line description: GPIO connected to the SET line
......
...@@ -28,12 +28,10 @@ properties: ...@@ -28,12 +28,10 @@ properties:
vddd-supply: vddd-supply:
description: description:
digital voltage regulator (see regulator/regulator.txt) digital voltage regulator (see regulator/regulator.txt)
maxItems: 1
vdda-supply: vdda-supply:
description: description:
analog voltage regulator (see regulator/regulator.txt) analog voltage regulator (see regulator/regulator.txt)
maxItems: 1
reset-gpios: reset-gpios:
description: description:
......
...@@ -36,7 +36,6 @@ properties: ...@@ -36,7 +36,6 @@ properties:
const: 0 const: 0
phy-supply: phy-supply:
maxItems: 1
description: description:
Phandle to a regulator that provides power to the PHY. This Phandle to a regulator that provides power to the PHY. This
regulator will be managed during the PHY power on/off sequence. regulator will be managed during the PHY power on/off sequence.
......
...@@ -64,7 +64,6 @@ properties: ...@@ -64,7 +64,6 @@ properties:
vin-supply: vin-supply:
description: Input supply phandle. description: Input supply phandle.
$ref: /schemas/types.yaml#/definitions/phandle
required: required:
- compatible - compatible
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment