Rob Herring
0499220d6d
dt-bindings: Add missing array size constraints
...
DT properties which can have multiple entries need to specify what the
entries are and define how many entries there can be. In the case of
only a single entry, just 'maxItems: 1' is sufficient.
Add the missing entry constraints. These were found with a modified
meta-schema. Unfortunately, there are a few cases where the size
constraints are not defined such as common bindings, so the meta-schema
can't be part of the normal checks.
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Stephen Boyd <sboyd@kernel.org >
Cc: Thierry Reding <thierry.reding@gmail.com >
Cc: MyungJoo Ham <myungjoo.ham@samsung.com >
Cc: Chanwoo Choi <cw00.choi@samsung.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com >
Cc: Jonathan Cameron <jic23@kernel.org >
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Marc Zyngier <maz@kernel.org >
Cc: Mauro Carvalho Chehab <mchehab@kernel.org >
Cc: Chen-Yu Tsai <wens@csie.org >
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Jakub Kicinski <kuba@kernel.org >
Cc: Sebastian Reichel <sre@kernel.org >
Cc: Ohad Ben-Cohen <ohad@wizery.com >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-by: Sebastian Reichel <sre@kernel.org >
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com > #for-iio
Acked-by: Chanwoo Choi <cw00.choi@samsung.com >
Reviewed-by: Suman Anna <s-anna@ti.com >
Acked-by: Paul Cercueil <paul@crapouillou.net >
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Link: https://lore.kernel.org/r/20210104230253.2805217-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2021-01-11 17:42:25 -06:00
Jonathan Cameron
a86319f42c
dt-bindings:iio:potentiometer: give microchip,mcp4531 its own binding
...
We use this part in an example for the envelope detector. That showed
that we need to allow for the #io-channel-cells property which
trivial-devices.yaml does not.
It doesn't make sense to add that property to trivial-devices as
it only applies for those devices that can provide some sort of
DAC or ADC service to another device driver. Hence solution will
be to pull some IIO devices out to have their own file on a case
by case basis.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Cc: Peter Rosin <peda@axentia.se >
Link: https://lore.kernel.org/r/20201031181242.742301-4-jic23@kernel.org
2020-12-03 19:40:19 +00:00
Jonathan Cameron
818ede057c
dt-bindings:iio:potentiometer:microchip,mcp41010 txt to yaml conversion
...
A simple binding that I almost just move to trivial devices.
The small amount of additional documentation and relatively large number
of compatible entries convinced me to suggest we keep this one separately
documented.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Cc: Chris Coffey <cmc@babblebit.net >
Link: https://lore.kernel.org/r/20201031184854.745828-5-jic23@kernel.org
2020-11-22 16:38:45 +00:00
Jonathan Cameron
05c6330c43
dt-bindings:iio:potentiometer:adi,ad5272 yaml conversion
...
Simple direct conversion from txt to yaml as part of a general aim of
converting all IIO bindings to this machine readable format.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Reviewed-by: Phil Reid <preid@electromag.com.au >
Cc: Phil Reid <preid@electromag.com.au >
Link: https://lore.kernel.org/r/20201031184854.745828-3-jic23@kernel.org
2020-11-22 16:38:39 +00:00
Jonathan Cameron
9a7dc81714
dt-bindings:iio:potentiometer:microchip,mcp4131 txt to yaml conversion
...
This binding is very simple, but I think the very large number of
compatible values make it unsuitable for moving to trivial-devices.yaml.
Main change in the conversion was reordering the compatible list to
numerical order.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Reviewed-by: Slawomir Stepien <sst@poczta.fm >
Link: https://lore.kernel.org/r/20201031184854.745828-4-jic23@kernel.org
2020-11-22 16:38:32 +00:00
Jonathan Cameron
b25e67b290
dt-bindings:iio:potentiometer:maxim,max5481 move to trivial devices
...
Simple SPI binding that doesn't need a separate file.
During conversion I looked up the individual part number descriptions
in the datasheet so that we could give slightly more detail in
trivial-device.yaml.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Slawomir Stepien <sst@poczta.fm >
Reviewed-by: Rob Herring <robh@kernel.org >
Cc: Maury Anderson <maury.anderson@rockwellcollins.com >
Cc: Matthew Weber <matthew.weber@rockwellcollins.com >
Cc: Slawomir Stepien <sst@poczta.fm >
Link: https://lore.kernel.org/r/20201031182922.743153-5-jic23@kernel.org
2020-11-16 20:31:25 +00:00
Jonathan Cameron
6d3766da16
dt-bindings:iio:potentiometer:maxim,ds1803 move to trivial devices.
...
Simple binding where there is no obvious benefit in maintaining a
separate file. Hence document in trivial-devices.yaml and drop
the txt file.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Reviewed-by: Slawomir Stepien <sst@poczta.fm >
Reviewed-by: Rob Herring <robh@kernel.org >
Cc: Slawomir Stepien <sst@poczta.fm >
Link: https://lore.kernel.org/r/20201031182922.743153-4-jic23@kernel.org
2020-11-16 20:29:51 +00:00
Alexander A. Klimov
5a6b56de41
Replace HTTP links with HTTPS ones: Documentation/devicetree/bindings/iio
...
Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.
Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
If both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de >
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com > #for Matt's drivers
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2020-07-13 15:05:58 +01:00
Martin Kaiser
5e8447d1b0
dt-bindings: iio: potentiometer: add max5432.yaml binding
...
Add a binding for the Maxim Integrated MAX5432-MAX5435 family of digital
potentiometers.
Signed-off-by: Martin Kaiser <martin@kaiser.cx >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2019-08-05 14:30:59 +01:00
Chris Coffey
f71b3c9912
dt-bindings: iio: potentiometer: Add Microchip MCP41xxx/42xxx
...
This patch adds device tree documentation for the Microchip
MCP41xxx/42xxx family of digital potentiometers.
Signed-off-by: Chris Coffey <cmc@babblebit.net >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2018-11-25 12:26:52 +00:00
Phil Reid
8730e267a1
dt-bindings: ad5272: Add bindings for Analog Devices digital potentiometers
...
Add binding documentation for Analog Devices AD5272 and AD5274 digital
potentiometer devices.
Signed-off-by: Phil Reid <preid@electromag.com.au >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2018-02-10 15:48:05 +00:00
Matt Weber
df1fd2de11
iio: max5481: Add support for Maxim digital potentiometers
...
Add implementation for Maxim Integrated 5481, 5482, 5483,
and 5484 digital potentiometer devices.
Datasheet:
http://datasheets.maximintegrated.com/en/ds/MAX5481-MAX5484.pdf
Signed-off-by: Maury Anderson <maury.anderson@rockwellcollins.com >
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com >
Signed-off-by: Slawomir Stepien <sst@poczta.fm >
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2017-01-28 12:13:31 +00:00
Slawomir Stepien
fbbc5e7044
iio: potentiometer: add driver for Maxim Integrated DS1803
...
The following functions are supported:
- write, read potentiometer value
- potentiometer scale
Datasheet: https://datasheets.maximintegrated.com/en/ds/DS1803.pdf
Signed-off-by: Slawomir Stepien <sst@poczta.fm >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2016-04-10 12:34:09 +01:00
Slawomir Stepien
22d199a539
iio: potentiometer: add driver for Microchip MCP413X/414X/415X/416X/423X/424X/425X/426X
...
The following functionalities are supported:
- write, read from volatile memory
Datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/22060b.pdf
Signed-off-by: Slawomir Stepien <sst@poczta.fm >
Reviewed-by: Joachim Eastwood <manabian@gmail.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2016-04-03 11:13:42 +01:00