devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files.
@ 2020-10-31 18:29 Jonathan Cameron
  2020-10-31 18:29 ` [PATCH 1/7] dt-bindings:iio:chemical:sensirion,sgp30: Move to trivial-bindings.yaml Jonathan Cameron
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Jonathan Cameron @ 2020-10-31 18:29 UTC (permalink / raw)
  To: linux-iio, Rob Herring, devicetree; +Cc: Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Rather than convert this group of bindings to yaml, let us just add
them to trivial-devices.yaml.

It is more than possible that we may need to give some of these their own
files at somepoint in the future (for example due to additional of
channel provider bindings for the potentiometers) but for now there seems
to be little advantage to keeping them separate.

Jonathan Cameron (7):
  dt-bindings:iio:chemical:sensirion,sgp30: Move to
    trivial-bindings.yaml
  dt-bindings:iio:chemical:bosch,bme180: Move to trivial devices
  dt-bindings:iio:potentiometer:maxim,ds1803 move to trivial devices.
  dt-bindings:iio:potentiometer:maxim,max5481 move to trivial devices
  dt-bindings:iio:light:renesas,isl29501: Move to trivial devices.
  dt-bindings:iio:magnetometer:memsic,mmc35240: move to
    trivial-devices.yaml
  dt-bindings:iio:accel:domintech,dmard06: Move to trivial-devices.yaml

 .../devicetree/bindings/iio/accel/dmard06.txt | 19 ------------
 .../bindings/iio/chemical/bme680.txt          | 11 -------
 .../bindings/iio/chemical/sensirion,sgp30.txt | 15 ----------
 .../bindings/iio/light/renesas,isl29501.txt   | 13 --------
 .../bindings/iio/magnetometer/mmc35240.txt    | 13 --------
 .../bindings/iio/potentiometer/ds1803.txt     | 21 -------------
 .../bindings/iio/potentiometer/max5481.txt    | 23 --------------
 .../devicetree/bindings/trivial-devices.yaml  | 30 +++++++++++++++++++
 8 files changed, 30 insertions(+), 115 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/iio/accel/dmard06.txt
 delete mode 100644 Documentation/devicetree/bindings/iio/chemical/bme680.txt
 delete mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt
 delete mode 100644 Documentation/devicetree/bindings/iio/light/renesas,isl29501.txt
 delete mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
 delete mode 100644 Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt
 delete mode 100644 Documentation/devicetree/bindings/iio/potentiometer/max5481.txt

-- 
2.28.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [PATCH 1/7] dt-bindings:iio:chemical:sensirion,sgp30: Move to trivial-bindings.yaml
  2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
@ 2020-10-31 18:29 ` Jonathan Cameron
  2020-10-31 18:29 ` [PATCH 2/7] dt-bindings:iio:chemical:bosch,bme180: Move to trivial devices Jonathan Cameron
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2020-10-31 18:29 UTC (permalink / raw)
  To: linux-iio, Rob Herring, devicetree; +Cc: Jonathan Cameron, Andreas Brauchli

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

The binding for this device and the sgpc3 is very simple so lets
not maintain a seperate document for this one.  Of course we can
always add a document again if the binding becomes more complex in
future.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Andreas Brauchli <andreas.brauchli@sensirion.com>
---
 .../bindings/iio/chemical/sensirion,sgp30.txt     | 15 ---------------
 .../devicetree/bindings/trivial-devices.yaml      |  4 ++++
 2 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt b/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt
deleted file mode 100644
index 5844ed58173c..000000000000
--- a/Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-* Sensirion SGP30/SGPC3 multi-pixel Gas Sensor
-
-Required properties:
-
-  - compatible: must be one of
-    "sensirion,sgp30"
-    "sensirion,sgpc3"
-  - reg: the I2C address of the sensor
-
-Example:
-
-gas@58 {
-	compatible = "sensirion,sgp30";
-	reg = <0x58>;
-};
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 185e09e61e16..642502761106 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -212,6 +212,10 @@ properties:
           - pulsedlight,lidar-lite-v2
             # S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power)
           - samsung,24ad0xd1
+            # Sensirion low power multi-pixel gas sensor with I2C interface
+          - sensirion,sgpc3
+            # Sensirion multi-pixel gas sensor with I2C interface
+          - sensirion,sgp30
             # SGX Sensortech VZ89X Sensors
           - sgx,vz89x
             # Relative Humidity and Temperature Sensors
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 2/7] dt-bindings:iio:chemical:bosch,bme180: Move to trivial devices
  2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
  2020-10-31 18:29 ` [PATCH 1/7] dt-bindings:iio:chemical:sensirion,sgp30: Move to trivial-bindings.yaml Jonathan Cameron
@ 2020-10-31 18:29 ` Jonathan Cameron
       [not found]   ` <CADks246mRP+4bDYc_5qUHuSPYbW=BL+h_bu5qVKcX1akNjDcBA@mail.gmail.com>
  2020-10-31 18:29 ` [PATCH 3/7] dt-bindings:iio:potentiometer:maxim,ds1803 move " Jonathan Cameron
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 13+ messages in thread
From: Jonathan Cameron @ 2020-10-31 18:29 UTC (permalink / raw)
  To: linux-iio, Rob Herring, devicetree
  Cc: Jonathan Cameron, Sebastien Bourdelin, Himanshu Jha

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Very simple binding so no need to maintain a separate file.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Sebastien Bourdelin <sebastien.bourdelin@gmail.com>
Cc: Himanshu Jha <himanshujha199640@gmail.com>
---
 .../devicetree/bindings/iio/chemical/bme680.txt       | 11 -----------
 .../devicetree/bindings/trivial-devices.yaml          |  2 ++
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/chemical/bme680.txt b/Documentation/devicetree/bindings/iio/chemical/bme680.txt
deleted file mode 100644
index 7f3827cfb2ff..000000000000
--- a/Documentation/devicetree/bindings/iio/chemical/bme680.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-Bosch Sensortec BME680 pressure/temperature/humidity/voc sensors
-
-Required properties:
-- compatible: must be "bosch,bme680"
-
-Example:
-
-bme680@76 {
-          compatible = "bosch,bme680";
-          reg = <0x76>;
-};
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 642502761106..10f0afd44684 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -44,6 +44,8 @@ properties:
           - atmel,atsha204a
             # i2c h/w elliptic curve crypto module
           - atmel,atecc508a
+            # Bosch Sensortec preassure, temperature, humididty and VOC sensor
+          - bosch,bme680
             # CM32181: Ambient Light Sensor
           - capella,cm32181
             # CM3232: Ambient Light Sensor
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 3/7] dt-bindings:iio:potentiometer:maxim,ds1803 move to trivial devices.
  2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
  2020-10-31 18:29 ` [PATCH 1/7] dt-bindings:iio:chemical:sensirion,sgp30: Move to trivial-bindings.yaml Jonathan Cameron
  2020-10-31 18:29 ` [PATCH 2/7] dt-bindings:iio:chemical:bosch,bme180: Move to trivial devices Jonathan Cameron
@ 2020-10-31 18:29 ` Jonathan Cameron
  2020-11-02 16:13   ` Slawomir Stepien
  2020-10-31 18:29 ` [PATCH 4/7] dt-bindings:iio:potentiometer:maxim,max5481 " Jonathan Cameron
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 13+ messages in thread
From: Jonathan Cameron @ 2020-10-31 18:29 UTC (permalink / raw)
  To: linux-iio, Rob Herring, devicetree; +Cc: Jonathan Cameron, Slawomir Stepien

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

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>
Cc: Slawomir Stepien <sst@poczta.fm>
---
 .../bindings/iio/potentiometer/ds1803.txt     | 21 -------------------
 .../devicetree/bindings/trivial-devices.yaml  |  6 ++++++
 2 files changed, 6 insertions(+), 21 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt b/Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt
deleted file mode 100644
index df77bf552656..000000000000
--- a/Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-* Maxim Integrated DS1803 digital potentiometer driver
-
-The node for this driver must be a child node of a I2C controller, hence
-all mandatory properties for your controller must be specified. See directory:
-
-        Documentation/devicetree/bindings/i2c
-
-for more details.
-
-Required properties:
-	- compatible:  	Must be one of the following, depending on the
-			model:
-			"maxim,ds1803-010",
-			"maxim,ds1803-050",
-			"maxim,ds1803-100"
-
-Example:
-ds1803: ds1803@1 {
-	reg = <0x28>;
-	compatible = "maxim,ds1803-010";
-};
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 10f0afd44684..695b1e379238 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -110,6 +110,12 @@ properties:
           - isil,isl68137
             # 5 Bit Programmable, Pulse-Width Modulator
           - maxim,ds1050
+            # 10 kOhm digital potentiometer with I2C interface
+          - maxim,ds1803-010
+            # 50 kOhm digital potentiometer with I2C interface
+          - maxim,ds1803-050
+            # 100 kOhm digital potentiometer with I2C interface
+          - maxim,ds1803-100
             # Low-Power, 4-/12-Channel, 2-Wire Serial, 12-Bit ADCs
           - maxim,max1237
             # PECI-to-I2C translator for PECI-to-SMBus/I2C protocol conversion
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 4/7] dt-bindings:iio:potentiometer:maxim,max5481 move to trivial devices
  2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
                   ` (2 preceding siblings ...)
  2020-10-31 18:29 ` [PATCH 3/7] dt-bindings:iio:potentiometer:maxim,ds1803 move " Jonathan Cameron
@ 2020-10-31 18:29 ` Jonathan Cameron
  2020-11-02 16:18   ` Slawomir Stepien
  2020-10-31 18:29 ` [PATCH 5/7] dt-bindings:iio:light:renesas,isl29501: Move " Jonathan Cameron
                   ` (3 subsequent siblings)
  7 siblings, 1 reply; 13+ messages in thread
From: Jonathan Cameron @ 2020-10-31 18:29 UTC (permalink / raw)
  To: linux-iio, Rob Herring, devicetree
  Cc: Jonathan Cameron, Maury Anderson, Matthew Weber, Slawomir Stepien

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

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


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 5/7] dt-bindings:iio:light:renesas,isl29501: Move to trivial devices.
  2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
                   ` (3 preceding siblings ...)
  2020-10-31 18:29 ` [PATCH 4/7] dt-bindings:iio:potentiometer:maxim,max5481 " Jonathan Cameron
@ 2020-10-31 18:29 ` Jonathan Cameron
  2020-10-31 18:29 ` [PATCH 6/7] dt-bindings:iio:magnetometer:memsic,mmc35240: move to trivial-devices.yaml Jonathan Cameron
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2020-10-31 18:29 UTC (permalink / raw)
  To: linux-iio, Rob Herring, devicetree; +Cc: Jonathan Cameron, Simon Horman

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

This binding is so simple there is no obvious advantage in maintaining
a separate binding doc file for it. As such, move it to trivial-devices.yaml

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Simon Horman <horms+renesas@verge.net.au>
---
 .../bindings/iio/light/renesas,isl29501.txt         | 13 -------------
 .../devicetree/bindings/trivial-devices.yaml        |  2 ++
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/light/renesas,isl29501.txt b/Documentation/devicetree/bindings/iio/light/renesas,isl29501.txt
deleted file mode 100644
index 46957997fee3..000000000000
--- a/Documentation/devicetree/bindings/iio/light/renesas,isl29501.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-* ISL29501 Time-of-flight sensor.
-
-Required properties:
-
-  - compatible : should be "renesas,isl29501"
-  - reg : the I2C address of the sensor
-
-Example:
-
-isl29501@57 {
-	compatible = "renesas,isl29501";
-	reg = <0x57>;
-};
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 3182d5b5a0b4..015905312a0f 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -226,6 +226,8 @@ properties:
           - plx,pex8648
             # Pulsedlight LIDAR range-finding sensor
           - pulsedlight,lidar-lite-v2
+            # Renesas ISL29501 time-of-flight sensor
+          - renesas,isl29501
             # S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power)
           - samsung,24ad0xd1
             # Sensirion low power multi-pixel gas sensor with I2C interface
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 6/7] dt-bindings:iio:magnetometer:memsic,mmc35240: move to trivial-devices.yaml
  2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
                   ` (4 preceding siblings ...)
  2020-10-31 18:29 ` [PATCH 5/7] dt-bindings:iio:light:renesas,isl29501: Move " Jonathan Cameron
@ 2020-10-31 18:29 ` Jonathan Cameron
  2020-10-31 18:29 ` [PATCH 7/7] dt-bindings:iio:accel:domintech,dmard06: Move " Jonathan Cameron
  2020-11-03  2:35 ` [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Rob Herring
  7 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2020-10-31 18:29 UTC (permalink / raw)
  To: linux-iio, Rob Herring, devicetree; +Cc: Jonathan Cameron, Jandy Gou

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

Extremely simple binding so no need to maintain a separate file.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jandy Gou <qingsong.gou@ck-telecom.com>
---
 .../bindings/iio/magnetometer/mmc35240.txt          | 13 -------------
 .../devicetree/bindings/trivial-devices.yaml        |  2 ++
 2 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt b/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
deleted file mode 100644
index a01235c7fa15..000000000000
--- a/Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-* MEMSIC MMC35240 magnetometer sensor
-
-Required properties:
-
-  - compatible : should be "memsic,mmc35240"
-  - reg : the I2C address of the magnetometer
-
-Example:
-
-mmc35240@30 {
-        compatible = "memsic,mmc35240";
-        reg = <0x30>;
-};
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 015905312a0f..172bf7e19401 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -134,6 +134,8 @@ properties:
           - maxim,max31730
             # mCube 3-axis 8-bit digital accelerometer
           - mcube,mc3230
+            # MEMSIC magnetometer
+          - memsic,mmc35240
             # MEMSIC 2-axis 8-bit digital accelerometer
           - memsic,mxc6225
             # Measurement Specialities I2C temperature and humidity sensor
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 7/7] dt-bindings:iio:accel:domintech,dmard06: Move to trivial-devices.yaml
  2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
                   ` (5 preceding siblings ...)
  2020-10-31 18:29 ` [PATCH 6/7] dt-bindings:iio:magnetometer:memsic,mmc35240: move to trivial-devices.yaml Jonathan Cameron
@ 2020-10-31 18:29 ` Jonathan Cameron
  2020-11-03  2:35 ` [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Rob Herring
  7 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2020-10-31 18:29 UTC (permalink / raw)
  To: linux-iio, Rob Herring, devicetree; +Cc: Jonathan Cameron

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

No need to maintain a separate document for such a simple binding.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
---
 .../devicetree/bindings/iio/accel/dmard06.txt | 19 -------------------
 .../devicetree/bindings/trivial-devices.yaml  |  6 ++++++
 2 files changed, 6 insertions(+), 19 deletions(-)

diff --git a/Documentation/devicetree/bindings/iio/accel/dmard06.txt b/Documentation/devicetree/bindings/iio/accel/dmard06.txt
deleted file mode 100644
index ce105a12c645..000000000000
--- a/Documentation/devicetree/bindings/iio/accel/dmard06.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Device tree bindings for Domintech DMARD05, DMARD06, DMARD07 accelerometers
-
-Required properties:
- - compatible		: Should be "domintech,dmard05"
-				 or "domintech,dmard06"
-				 or "domintech,dmard07"
- - reg			: I2C address of the chip. Should be 0x1c
-
-Example:
-	&i2c1 {
-		/* ... */
-
-		accelerometer@1c {
-			compatible = "domintech,dmard06";
-			reg = <0x1c>;
-		};
-
-		/* ... */
-	};
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 172bf7e19401..91a101ef03fb 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -72,6 +72,12 @@ properties:
           - dlg,da9053
             # DA9063: system PMIC for quad-core application processors
           - dlg,da9063
+            # DMARD05: 3-axis I2C Accelerometer
+          - domintech,dmard05
+            # DMARD06: 3-axis I2C Accelerometer
+          - domintech,dmard06
+            # DMARD05: 3-axis I2C Accelerometer
+          - domintech,dmard07
             # DMARD09: 3-axis Accelerometer
           - domintech,dmard09
             # DMARD10: 3-axis Accelerometer
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/7] dt-bindings:iio:chemical:bosch,bme180: Move to trivial devices
       [not found]   ` <CADks246mRP+4bDYc_5qUHuSPYbW=BL+h_bu5qVKcX1akNjDcBA@mail.gmail.com>
@ 2020-11-01 20:34     ` Jonathan Cameron
  0 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2020-11-01 20:34 UTC (permalink / raw)
  To: Himanshu Jha
  Cc: linux-iio, Rob Herring, devicetree, Jonathan Cameron,
	Sebastien Bourdelin

On Sun, 1 Nov 2020 14:54:59 +0530
Himanshu Jha <himanshujha199640@gmail.com> wrote:

> Hi Jonathan,
> 
> On Sun, Nov 1, 2020, 12:01 AM Jonathan Cameron <jic23@kernel.org> wrote:
> 
> > From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> >
> > Very simple binding so no need to maintain a separate file.
> >
> > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> > Cc: Sebastien Bourdelin <sebastien.bourdelin@gmail.com>
> > Cc: Himanshu Jha <himanshujha199640@gmail.com>
> > ---
> >  .../devicetree/bindings/iio/chemical/bme680.txt       | 11 -----------
> >  .../devicetree/bindings/trivial-devices.yaml          |  2 ++
> >  2 files changed, 2 insertions(+), 11 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/iio/chemical/bme680.txt
> > b/Documentation/devicetree/bindings/iio/chemical/bme680.txt
> > deleted file mode 100644
> > index 7f3827cfb2ff..000000000000
> > --- a/Documentation/devicetree/bindings/iio/chemical/bme680.txt
> > +++ /dev/null
> > @@ -1,11 +0,0 @@
> > -Bosch Sensortec BME680 pressure/temperature/humidity/voc sensors
> > -
> > -Required properties:
> > -- compatible: must be "bosch,bme680"
> > -
> > -Example:
> > -
> > -bme680@76 {
> > -          compatible = "bosch,bme680";
> > -          reg = <0x76>;
> > -};
> > diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml
> > b/Documentation/devicetree/bindings/trivial-devices.yaml
> > index 642502761106..10f0afd44684 100644
> > --- a/Documentation/devicetree/bindings/trivial-devices.yaml
> > +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
> > @@ -44,6 +44,8 @@ properties:
> >            - atmel,atsha204a
> >              # i2c h/w elliptic curve crypto module
> >            - atmel,atecc508a
> > +            # Bosch Sensortec preassure, temperature, humididty and VOC
> > sensor
> > +          - bosch,bme680
> >  
> 
> Typo here and in subject line.
> 
> Otherwise, Ack!

Yikes.  I really should have proof read this one more carefully!

> 
> 
> -Himanshu
> 
>              # CM32181: Ambient Light Sensor
> >            - capella,cm32181
> >              # CM3232: Ambient Light Sensor
> > --
> > 2.28.0
> >
> >  


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 3/7] dt-bindings:iio:potentiometer:maxim,ds1803 move to trivial devices.
  2020-10-31 18:29 ` [PATCH 3/7] dt-bindings:iio:potentiometer:maxim,ds1803 move " Jonathan Cameron
@ 2020-11-02 16:13   ` Slawomir Stepien
  0 siblings, 0 replies; 13+ messages in thread
From: Slawomir Stepien @ 2020-11-02 16:13 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio, Rob Herring, devicetree, Jonathan Cameron

On paź 31, 2020 18:29, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> 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>
> Cc: Slawomir Stepien <sst@poczta.fm>

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

> ---
>  .../bindings/iio/potentiometer/ds1803.txt     | 21 -------------------
>  .../devicetree/bindings/trivial-devices.yaml  |  6 ++++++
>  2 files changed, 6 insertions(+), 21 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt b/Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt
> deleted file mode 100644
> index df77bf552656..000000000000
> --- a/Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt
> +++ /dev/null
> @@ -1,21 +0,0 @@
> -* Maxim Integrated DS1803 digital potentiometer driver
> -
> -The node for this driver must be a child node of a I2C controller, hence
> -all mandatory properties for your controller must be specified. See directory:
> -
> -        Documentation/devicetree/bindings/i2c
> -
> -for more details.
> -
> -Required properties:
> -	- compatible:  	Must be one of the following, depending on the
> -			model:
> -			"maxim,ds1803-010",
> -			"maxim,ds1803-050",
> -			"maxim,ds1803-100"
> -
> -Example:
> -ds1803: ds1803@1 {
> -	reg = <0x28>;
> -	compatible = "maxim,ds1803-010";
> -};
> diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
> index 10f0afd44684..695b1e379238 100644
> --- a/Documentation/devicetree/bindings/trivial-devices.yaml
> +++ b/Documentation/devicetree/bindings/trivial-devices.yaml
> @@ -110,6 +110,12 @@ properties:
>            - isil,isl68137
>              # 5 Bit Programmable, Pulse-Width Modulator
>            - maxim,ds1050
> +            # 10 kOhm digital potentiometer with I2C interface
> +          - maxim,ds1803-010
> +            # 50 kOhm digital potentiometer with I2C interface
> +          - maxim,ds1803-050
> +            # 100 kOhm digital potentiometer with I2C interface
> +          - maxim,ds1803-100
>              # Low-Power, 4-/12-Channel, 2-Wire Serial, 12-Bit ADCs
>            - maxim,max1237
>              # PECI-to-I2C translator for PECI-to-SMBus/I2C protocol conversion

-- 
Slawomir Stepien

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 4/7] dt-bindings:iio:potentiometer:maxim,max5481 move to trivial devices
  2020-10-31 18:29 ` [PATCH 4/7] dt-bindings:iio:potentiometer:maxim,max5481 " Jonathan Cameron
@ 2020-11-02 16:18   ` Slawomir Stepien
  0 siblings, 0 replies; 13+ messages in thread
From: Slawomir Stepien @ 2020-11-02 16:18 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: linux-iio, Rob Herring, devicetree, Jonathan Cameron,
	Maury Anderson, Matthew Weber

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files.
  2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
                   ` (6 preceding siblings ...)
  2020-10-31 18:29 ` [PATCH 7/7] dt-bindings:iio:accel:domintech,dmard06: Move " Jonathan Cameron
@ 2020-11-03  2:35 ` Rob Herring
  2020-11-16 20:35   ` Jonathan Cameron
  7 siblings, 1 reply; 13+ messages in thread
From: Rob Herring @ 2020-11-03  2:35 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio, devicetree, Jonathan Cameron

On Sat, Oct 31, 2020 at 06:29:15PM +0000, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> 
> Rather than convert this group of bindings to yaml, let us just add
> them to trivial-devices.yaml.
> 
> It is more than possible that we may need to give some of these their own
> files at somepoint in the future (for example due to additional of
> channel provider bindings for the potentiometers) but for now there seems
> to be little advantage to keeping them separate.
> 
> Jonathan Cameron (7):
>   dt-bindings:iio:chemical:sensirion,sgp30: Move to
>     trivial-bindings.yaml
>   dt-bindings:iio:chemical:bosch,bme180: Move to trivial devices
>   dt-bindings:iio:potentiometer:maxim,ds1803 move to trivial devices.
>   dt-bindings:iio:potentiometer:maxim,max5481 move to trivial devices
>   dt-bindings:iio:light:renesas,isl29501: Move to trivial devices.
>   dt-bindings:iio:magnetometer:memsic,mmc35240: move to
>     trivial-devices.yaml
>   dt-bindings:iio:accel:domintech,dmard06: Move to trivial-devices.yaml

Reviewed-by: Rob Herring <robh@kernel.org>

> 
>  .../devicetree/bindings/iio/accel/dmard06.txt | 19 ------------
>  .../bindings/iio/chemical/bme680.txt          | 11 -------
>  .../bindings/iio/chemical/sensirion,sgp30.txt | 15 ----------
>  .../bindings/iio/light/renesas,isl29501.txt   | 13 --------
>  .../bindings/iio/magnetometer/mmc35240.txt    | 13 --------
>  .../bindings/iio/potentiometer/ds1803.txt     | 21 -------------
>  .../bindings/iio/potentiometer/max5481.txt    | 23 --------------
>  .../devicetree/bindings/trivial-devices.yaml  | 30 +++++++++++++++++++
>  8 files changed, 30 insertions(+), 115 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/iio/accel/dmard06.txt
>  delete mode 100644 Documentation/devicetree/bindings/iio/chemical/bme680.txt
>  delete mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt
>  delete mode 100644 Documentation/devicetree/bindings/iio/light/renesas,isl29501.txt
>  delete mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
>  delete mode 100644 Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt
>  delete mode 100644 Documentation/devicetree/bindings/iio/potentiometer/max5481.txt
> 
> -- 
> 2.28.0
> 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files.
  2020-11-03  2:35 ` [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Rob Herring
@ 2020-11-16 20:35   ` Jonathan Cameron
  0 siblings, 0 replies; 13+ messages in thread
From: Jonathan Cameron @ 2020-11-16 20:35 UTC (permalink / raw)
  To: Rob Herring; +Cc: linux-iio, devicetree, Jonathan Cameron

On Mon, 2 Nov 2020 20:35:01 -0600
Rob Herring <robh@kernel.org> wrote:

> On Sat, Oct 31, 2020 at 06:29:15PM +0000, Jonathan Cameron wrote:
> > From: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> > 
> > Rather than convert this group of bindings to yaml, let us just add
> > them to trivial-devices.yaml.
> > 
> > It is more than possible that we may need to give some of these their own
> > files at somepoint in the future (for example due to additional of
> > channel provider bindings for the potentiometers) but for now there seems
> > to be little advantage to keeping them separate.
> > 
> > Jonathan Cameron (7):
> >   dt-bindings:iio:chemical:sensirion,sgp30: Move to
> >     trivial-bindings.yaml
> >   dt-bindings:iio:chemical:bosch,bme180: Move to trivial devices
> >   dt-bindings:iio:potentiometer:maxim,ds1803 move to trivial devices.
> >   dt-bindings:iio:potentiometer:maxim,max5481 move to trivial devices
> >   dt-bindings:iio:light:renesas,isl29501: Move to trivial devices.
> >   dt-bindings:iio:magnetometer:memsic,mmc35240: move to
> >     trivial-devices.yaml
> >   dt-bindings:iio:accel:domintech,dmard06: Move to trivial-devices.yaml  
> 
> Reviewed-by: Rob Herring <robh@kernel.org>
Series applied.

thanks,

Jonathan

> 
> > 
> >  .../devicetree/bindings/iio/accel/dmard06.txt | 19 ------------
> >  .../bindings/iio/chemical/bme680.txt          | 11 -------
> >  .../bindings/iio/chemical/sensirion,sgp30.txt | 15 ----------
> >  .../bindings/iio/light/renesas,isl29501.txt   | 13 --------
> >  .../bindings/iio/magnetometer/mmc35240.txt    | 13 --------
> >  .../bindings/iio/potentiometer/ds1803.txt     | 21 -------------
> >  .../bindings/iio/potentiometer/max5481.txt    | 23 --------------
> >  .../devicetree/bindings/trivial-devices.yaml  | 30 +++++++++++++++++++
> >  8 files changed, 30 insertions(+), 115 deletions(-)
> >  delete mode 100644 Documentation/devicetree/bindings/iio/accel/dmard06.txt
> >  delete mode 100644 Documentation/devicetree/bindings/iio/chemical/bme680.txt
> >  delete mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,sgp30.txt
> >  delete mode 100644 Documentation/devicetree/bindings/iio/light/renesas,isl29501.txt
> >  delete mode 100644 Documentation/devicetree/bindings/iio/magnetometer/mmc35240.txt
> >  delete mode 100644 Documentation/devicetree/bindings/iio/potentiometer/ds1803.txt
> >  delete mode 100644 Documentation/devicetree/bindings/iio/potentiometer/max5481.txt
> > 
> > -- 
> > 2.28.0
> >   


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-11-16 20:35 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-31 18:29 [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Jonathan Cameron
2020-10-31 18:29 ` [PATCH 1/7] dt-bindings:iio:chemical:sensirion,sgp30: Move to trivial-bindings.yaml Jonathan Cameron
2020-10-31 18:29 ` [PATCH 2/7] dt-bindings:iio:chemical:bosch,bme180: Move to trivial devices Jonathan Cameron
     [not found]   ` <CADks246mRP+4bDYc_5qUHuSPYbW=BL+h_bu5qVKcX1akNjDcBA@mail.gmail.com>
2020-11-01 20:34     ` Jonathan Cameron
2020-10-31 18:29 ` [PATCH 3/7] dt-bindings:iio:potentiometer:maxim,ds1803 move " Jonathan Cameron
2020-11-02 16:13   ` Slawomir Stepien
2020-10-31 18:29 ` [PATCH 4/7] dt-bindings:iio:potentiometer:maxim,max5481 " Jonathan Cameron
2020-11-02 16:18   ` Slawomir Stepien
2020-10-31 18:29 ` [PATCH 5/7] dt-bindings:iio:light:renesas,isl29501: Move " Jonathan Cameron
2020-10-31 18:29 ` [PATCH 6/7] dt-bindings:iio:magnetometer:memsic,mmc35240: move to trivial-devices.yaml Jonathan Cameron
2020-10-31 18:29 ` [PATCH 7/7] dt-bindings:iio:accel:domintech,dmard06: Move " Jonathan Cameron
2020-11-03  2:35 ` [PATCH 0/7] dt-bindings:iio: Move to trivial-devices.yaml from txt files Rob Herring
2020-11-16 20:35   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).