Commit 9bfaf9c7 authored by Rob Herring's avatar Rob Herring

dt-bindings: Drop unnecessary *-supply schemas properties

*-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: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20201221234659.824881-1-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 21df8683
...@@ -26,11 +26,9 @@ properties: ...@@ -26,11 +26,9 @@ properties:
description: GPIO connected to active low reset description: GPIO connected to active low reset
dvdd12-supply: dvdd12-supply:
maxItems: 1
description: Regulator for 1.2V digital core power. description: Regulator for 1.2V digital core power.
dvdd25-supply: dvdd25-supply:
maxItems: 1
description: Regulator for 2.5V digital core power. description: Regulator for 2.5V digital core power.
ports: ports:
......
...@@ -35,11 +35,9 @@ properties: ...@@ -35,11 +35,9 @@ properties:
maxItems: 1 maxItems: 1
ovdd-supply: ovdd-supply:
maxItems: 1
description: I/O voltage description: I/O voltage
pwr18-supply: pwr18-supply:
maxItems: 1
description: core voltage description: core voltage
interrupts: interrupts:
......
...@@ -79,8 +79,7 @@ properties: ...@@ -79,8 +79,7 @@ properties:
The GPIO used to control the power down line of this device. The GPIO used to control the power down line of this device.
maxItems: 1 maxItems: 1
power-supply: power-supply: true
maxItems: 1
required: required:
- compatible - compatible
......
...@@ -35,11 +35,9 @@ properties: ...@@ -35,11 +35,9 @@ properties:
description: GPIO connected to active low reset. description: GPIO connected to active low reset.
vdd12-supply: vdd12-supply:
maxItems: 1
description: Regulator for 1.2V digital core power. description: Regulator for 1.2V digital core power.
vdd33-supply: vdd33-supply:
maxItems: 1
description: Regulator for 3.3V digital core power. description: Regulator for 3.3V digital core power.
ports: ports:
......
...@@ -60,7 +60,6 @@ properties: ...@@ -60,7 +60,6 @@ properties:
description: GPIO controlling bridge enable description: GPIO controlling bridge enable
vdd-supply: vdd-supply:
maxItems: 1
description: Power supply for the bridge description: Power supply for the bridge
required: required:
......
...@@ -74,7 +74,6 @@ properties: ...@@ -74,7 +74,6 @@ properties:
description: Power down GPIO signal, pin name "/PDWN", active low. description: Power down GPIO signal, pin name "/PDWN", active low.
vcc-supply: vcc-supply:
maxItems: 1
description: description:
Power supply for the TTL output, TTL CLOCKOUT signal, LVDS input, PLL and Power supply for the TTL output, TTL CLOCKOUT signal, LVDS input, PLL and
digital circuitry. digital circuitry.
......
...@@ -28,11 +28,9 @@ properties: ...@@ -28,11 +28,9 @@ properties:
description: i2c address of the bridge, 0x0f description: i2c address of the bridge, 0x0f
vdd-supply: vdd-supply:
maxItems: 1
description: 1.2V LVDS Power Supply description: 1.2V LVDS Power Supply
vddio-supply: vddio-supply:
maxItems: 1
description: 1.8V IO Power Supply description: 1.8V IO Power Supply
stby-gpios: stby-gpios:
......
...@@ -17,8 +17,7 @@ properties: ...@@ -17,8 +17,7 @@ properties:
- lltc,ltc2496 - lltc,ltc2496
vref-supply: vref-supply:
description: phandle to an external regulator providing the reference voltage description: Power supply for the reference voltage
$ref: /schemas/types.yaml#/definitions/phandle
reg: reg:
description: spi chipselect number according to the usual spi bindings description: spi chipselect number according to the usual spi bindings
......
...@@ -22,8 +22,7 @@ properties: ...@@ -22,8 +22,7 @@ properties:
- ti,hdc2010 - ti,hdc2010
- ti,hdc2080 - ti,hdc2080
vdd-supply: vdd-supply: true
maxItems: 1
reg: reg:
maxItems: 1 maxItems: 1
......
...@@ -31,8 +31,7 @@ properties: ...@@ -31,8 +31,7 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
vdd-supply: vdd-supply: true
maxItems: 1
linux,keycodes: linux,keycodes:
minItems: 1 minItems: 1
......
...@@ -55,8 +55,7 @@ properties: ...@@ -55,8 +55,7 @@ properties:
wakeup-source: true wakeup-source: true
vcc-supply: vcc-supply: true
maxItems: 1
gain: gain:
description: Allows setting the sensitivity in the range from 0 to 31. description: Allows setting the sensitivity in the range from 0 to 31.
......
...@@ -40,7 +40,6 @@ properties: ...@@ -40,7 +40,6 @@ properties:
poc-supply: poc-supply:
description: Regulator providing Power over Coax to the cameras description: Regulator providing Power over Coax to the cameras
maxItems: 1
enable-gpios: enable-gpios:
description: GPIO connected to the \#PWDN pin with inverted polarity description: GPIO connected to the \#PWDN pin with inverted polarity
......
...@@ -39,15 +39,12 @@ properties: ...@@ -39,15 +39,12 @@ properties:
vana-supply: vana-supply:
description: Analogue voltage supply (VANA), sensor dependent. description: Analogue voltage supply (VANA), sensor dependent.
maxItems: 1
vcore-supply: vcore-supply:
description: Core voltage supply (VCore), sensor dependent. description: Core voltage supply (VCore), sensor dependent.
maxItems: 1
vio-supply: vio-supply:
description: I/O voltage supply (VIO), sensor dependent. description: I/O voltage supply (VIO), sensor dependent.
maxItems: 1
clocks: clocks:
description: External clock to the sensor. description: External clock to the sensor.
......
...@@ -37,15 +37,12 @@ properties: ...@@ -37,15 +37,12 @@ properties:
vdddo-supply: vdddo-supply:
description: Chip digital IO regulator (1.8V). description: Chip digital IO regulator (1.8V).
maxItems: 1
vdda-supply: vdda-supply:
description: Chip analog regulator (2.7V). description: Chip analog regulator (2.7V).
maxItems: 1
vddd-supply: vddd-supply:
description: Chip digital core regulator (1.12V). description: Chip digital core regulator (1.12V).
maxItems: 1
flash-leds: flash-leds:
description: See ../video-interfaces.txt description: See ../video-interfaces.txt
......
...@@ -33,15 +33,12 @@ properties: ...@@ -33,15 +33,12 @@ properties:
vana-supply: vana-supply:
description: Sensor 2.8 V analog supply. description: Sensor 2.8 V analog supply.
maxItems: 1
vdig-supply: vdig-supply:
description: Sensor 1.8 V digital core supply. description: Sensor 1.8 V digital core supply.
maxItems: 1
vddl-supply: vddl-supply:
description: Sensor digital IO 1.2 V supply. description: Sensor digital IO 1.2 V supply.
maxItems: 1
port: port:
type: object type: object
......
...@@ -26,8 +26,7 @@ properties: ...@@ -26,8 +26,7 @@ properties:
drive-open-drain: true drive-open-drain: true
vdd-supply: vdd-supply: true
maxItems: 1
pinctrl: pinctrl:
type: object type: object
......
...@@ -59,7 +59,6 @@ properties: ...@@ -59,7 +59,6 @@ properties:
description: u32 value representing regulator enable bit offset. description: u32 value representing regulator enable bit offset.
vin-supply: vin-supply:
$ref: '/schemas/types.yaml#/definitions/phandle'
description: input supply phandle. description: input supply phandle.
required: required:
......
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