Commit f3dde260 authored by Rob Herring's avatar Rob Herring
Browse files

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -79,8 +79,6 @@ properties:

  hdmi-supply:
    description: phandle to an external 5V regulator to power the HDMI logic
    allOf:
      - $ref: /schemas/types.yaml#/definitions/phandle

  port@0:
    type: object
+1 −2
Original line number Diff line number Diff line
@@ -37,8 +37,7 @@ properties:
  clocks:
    maxItems: 1

  mali-supply:
    maxItems: 1
  mali-supply: true

  operating-points-v2: true

+1 −2
Original line number Diff line number Diff line
@@ -69,8 +69,7 @@ properties:
      - const: core
      - const: bus

  mali-supply:
    maxItems: 1
  mali-supply: true

  resets:
    minItems: 1
+1 −2
Original line number Diff line number Diff line
@@ -97,8 +97,7 @@ properties:

  memory-region: true

  mali-supply:
    maxItems: 1
  mali-supply: true

  power-domains:
    maxItems: 1
+0 −3
Original line number Diff line number Diff line
@@ -45,15 +45,12 @@ properties:

  refin1-supply:
    description: refin1 supply can be used as reference for conversion.
    maxItems: 1

  refin2-supply:
    description: refin2 supply can be used as reference for conversion.
    maxItems: 1

  avdd-supply:
    description: avdd supply can be used as reference for conversion.
    maxItems: 1

required:
  - compatible
Loading