diff mbox series

[4/7] dt-bindings:iio:potentiometer:maxim,max5481 move to trivial devices

Message ID 20201031182922.743153-5-jic23@kernel.org
State New
Headers show
Series dt-bindings:iio: Move to trivial-devices.yaml from txt files. | expand

Commit Message

Jonathan Cameron Oct. 31, 2020, 6:29 p.m. UTC
From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

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>
Cc: Maury Anderson <maury.anderson@rockwellcollins.com>
Cc: Matthew Weber <matthew.weber@rockwellcollins.com>
Cc: Slawomir Stepien <sst@poczta.fm>
---
 .../bindings/iio/potentiometer/max5481.txt    | 23 -------------------
 .../devicetree/bindings/trivial-devices.yaml  |  8 +++++++
 2 files changed, 8 insertions(+), 23 deletions(-)

Comments

Slawomir Stepien Nov. 2, 2020, 4:18 p.m. UTC | #1
On paź 31, 2020 18:29, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

> 

> 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>

> Cc: Maury Anderson <maury.anderson@rockwellcollins.com>

> Cc: Matthew Weber <matthew.weber@rockwellcollins.com>

> Cc: Slawomir Stepien <sst@poczta.fm>


Reviewed-by: Slawomir Stepien <sst@poczta.fm>


> ---

>  .../bindings/iio/potentiometer/max5481.txt    | 23 -------------------

>  .../devicetree/bindings/trivial-devices.yaml  |  8 +++++++

>  2 files changed, 8 insertions(+), 23 deletions(-)

> 

> diff --git a/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt b/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt

> deleted file mode 100644

> index 6a91b106e076..000000000000

> --- a/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt

> +++ /dev/null

> @@ -1,23 +0,0 @@

> -* Maxim Linear-Taper Digital Potentiometer MAX5481-MAX5484

> -

> -The node for this driver must be a child node of a SPI controller, hence

> -all mandatory properties described in

> -

> -        Documentation/devicetree/bindings/spi/spi-bus.txt

> -

> -must be specified.

> -

> -Required properties:

> -	- compatible:  	Must be one of the following, depending on the

> -			model:

> -			"maxim,max5481"

> -			"maxim,max5482"

> -			"maxim,max5483"

> -			"maxim,max5484"

> -

> -Example:

> -max548x: max548x@0 {

> -	compatible = "maxim,max5482";

> -	spi-max-frequency = <7000000>;

> -	reg = <0>; /* chip-select */

> -};

> diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml

> index 695b1e379238..3182d5b5a0b4 100644

> --- a/Documentation/devicetree/bindings/trivial-devices.yaml

> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml

> @@ -118,6 +118,14 @@ properties:

>            - maxim,ds1803-100

>              # Low-Power, 4-/12-Channel, 2-Wire Serial, 12-Bit ADCs

>            - maxim,max1237

> +            # 10-bit 10 kOhm linear programable voltage divider

> +          - maxim,max5481

> +            # 10-bit 50 kOhm linear programable voltage divider

> +          - maxim,max5482

> +            # 10-bit 10 kOhm linear programable variable resistor

> +          - maxim,max5483

> +            # 10-bit 50 kOhm linear programable variable resistor

> +          - maxim,max5484

>              # PECI-to-I2C translator for PECI-to-SMBus/I2C protocol conversion

>            - maxim,max6621

>              # 9-Bit/12-Bit Temperature Sensors with I²C-Compatible Serial Interface


-- 
Slawomir Stepien
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt b/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt
deleted file mode 100644
index 6a91b106e076..000000000000
--- a/Documentation/devicetree/bindings/iio/potentiometer/max5481.txt
+++ /dev/null
@@ -1,23 +0,0 @@ 
-* Maxim Linear-Taper Digital Potentiometer MAX5481-MAX5484
-
-The node for this driver must be a child node of a SPI controller, hence
-all mandatory properties described in
-
-        Documentation/devicetree/bindings/spi/spi-bus.txt
-
-must be specified.
-
-Required properties:
-	- compatible:  	Must be one of the following, depending on the
-			model:
-			"maxim,max5481"
-			"maxim,max5482"
-			"maxim,max5483"
-			"maxim,max5484"
-
-Example:
-max548x: max548x@0 {
-	compatible = "maxim,max5482";
-	spi-max-frequency = <7000000>;
-	reg = <0>; /* chip-select */
-};
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 695b1e379238..3182d5b5a0b4 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -118,6 +118,14 @@  properties:
           - maxim,ds1803-100
             # Low-Power, 4-/12-Channel, 2-Wire Serial, 12-Bit ADCs
           - maxim,max1237
+            # 10-bit 10 kOhm linear programable voltage divider
+          - maxim,max5481
+            # 10-bit 50 kOhm linear programable voltage divider
+          - maxim,max5482
+            # 10-bit 10 kOhm linear programable variable resistor
+          - maxim,max5483
+            # 10-bit 50 kOhm linear programable variable resistor
+          - maxim,max5484
             # PECI-to-I2C translator for PECI-to-SMBus/I2C protocol conversion
           - maxim,max6621
             # 9-Bit/12-Bit Temperature Sensors with I²C-Compatible Serial Interface