Re: [PATCH] dt-bindings: Cleanup standard unit properties

Started by Guenter Roeck on Jan 28, 2021 · 2 messages from 2 authors · Last reply Jan 28, 2021

open the first message on its own page

Message details and related content
On Thu, Jan 28, 2021 at 01:45:15PM -0600, Rob Herring wrote:
Properties with standard unit suffixes already have a type and don't need
type definitions. They also default to a single entry, so 'maxItems: 1'
can be dropped.

adi,ad5758 is an oddball which defined an enum of arrays. While a valid
schema, it is simpler as a whole to only define scalar constraints.

Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Alexandre Torgue <redacted>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Ulf Hansson <redacted>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Serge Semin <redacted>
Cc: Wolfram Sang <redacted>
Cc: <redacted>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Cc: <redacted>
Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/arm/cpus.yaml         |  1 -
 .../bindings/extcon/wlf,arizona.yaml          |  1 -
 .../bindings/hwmon/adi,ltc2947.yaml           |  1 -
 .../bindings/hwmon/baikal,bt1-pvt.yaml        |  8 ++--
 .../devicetree/bindings/hwmon/ti,tmp513.yaml  |  1 -
 .../devicetree/bindings/i2c/i2c-gpio.yaml     |  2 -
 .../bindings/i2c/snps,designware-i2c.yaml     |  3 --
 .../bindings/iio/adc/maxim,max9611.yaml       |  1 -
 .../bindings/iio/adc/st,stm32-adc.yaml        |  1 -
 .../bindings/iio/adc/ti,palmas-gpadc.yaml     |  2 -
 .../bindings/iio/dac/adi,ad5758.yaml          | 41 ++++++++++++-------
 .../bindings/iio/health/maxim,max30100.yaml   |  1 -
 .../input/touchscreen/touchscreen.yaml        |  2 -
 .../bindings/mmc/mmc-controller.yaml          |  1 -
 .../bindings/mmc/mmc-pwrseq-simple.yaml       |  2 -
 .../bindings/net/ethernet-controller.yaml     |  2 -
 .../devicetree/bindings/net/snps,dwmac.yaml   |  1 -
 .../bindings/power/supply/battery.yaml        |  3 --
 .../bindings/power/supply/bq2515x.yaml        |  1 -
 .../bindings/regulator/dlg,da9121.yaml        |  1 -
 .../bindings/regulator/fixed-regulator.yaml   |  2 -
 .../devicetree/bindings/rtc/rtc.yaml          |  2 -
 .../devicetree/bindings/serial/pl011.yaml     |  2 -
 .../devicetree/bindings/sound/sgtl5000.yaml   |  2 -
 .../bindings/watchdog/watchdog.yaml           |  1 -
 25 files changed, 29 insertions(+), 56 deletions(-)

444 more quoted lines

Message details and related content
On Thu, Jan 28, 2021 at 12:16:14PM -0800, Guenter Roeck wrote:
On Thu, Jan 28, 2021 at 01:45:15PM -0600, Rob Herring wrote:
quoted
Properties with standard unit suffixes already have a type and don't need
type definitions. They also default to a single entry, so 'maxItems: 1'
can be dropped.

adi,ad5758 is an oddball which defined an enum of arrays. While a valid
schema, it is simpler as a whole to only define scalar constraints.
Acked-by: Wolfram Sang <wsa@kernel.org> # for I2C
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help