Message ID | 20201031134110.724233-25-jic23@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dt-bindings:iio: Another set of yaml conversions. | expand |
Hi Jonathan, The commit message should change here as now you did not list all 3 authors as maintainers, because one has a bouncy email address. Best regards, Crt On Sat, 31 Oct 2020 at 14:44, Jonathan Cameron <jic23@kernel.org> wrote: > > From: Jonathan Cameron <Jonathan.Cameron@huawei.com> > > Simple conversion from txt to yaml. > I've listed all 3 authors of the driver as maintainers. > > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> > Reviewed-by: Rob Herring <robh@kernel.org> > Acked-by: Crt Mori <cmo@melexis.com> > Cc: Peter Meerwald <pmeerw@pmeerw.net> > --- > .../iio/temperature/melexis,mlx90614.yaml | 50 +++++++++++++++++++ > .../bindings/iio/temperature/mlx90614.txt | 24 --------- > 2 files changed, 50 insertions(+), 24 deletions(-) > > diff --git a/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml > new file mode 100644 > index 000000000000..d6965a0c1cf3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml > @@ -0,0 +1,50 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/temperature/melexis,mlx90614.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Melexis MLX90614 contactless IR temperature sensor > + > +maintainers: > + - Peter Meerwald <pmeerw@pmeerw.net> > + - Crt Mori <cmo@melexis.com> > + > +description: | > + http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx > + > +properties: > + compatible: > + const: melexis,mlx90614 > + > + reg: > + maxItems: 1 > + > + wakeup-gpios: > + description: > + GPIO connected to the SDA line to hold low in order to wake up the > + device. In normal operation, the GPIO is set as input and will > + not interfere in I2C communication. There is no need for a GPIO > + driving the SCL line. If no GPIO is given, power management is disabled. > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + #include <dt-bindings/gpio/gpio.h> > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + temp-sensor@5a { > + compatible = "melexis,mlx90614"; > + reg = <0x5a>; > + wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; > + }; > + }; > +... > diff --git a/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt b/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt > deleted file mode 100644 > index 9be57b036092..000000000000 > --- a/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt > +++ /dev/null > @@ -1,24 +0,0 @@ > -* Melexis MLX90614 contactless IR temperature sensor > - > -http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx > - > -Required properties: > - > - - compatible: should be "melexis,mlx90614" > - - reg: the I2C address of the sensor > - > -Optional properties: > - > - - wakeup-gpios: device tree identifier of the GPIO connected to the SDA line > - to hold low in order to wake up the device. In normal operation, the > - GPIO is set as input and will not interfere in I2C communication. There > - is no need for a GPIO driving the SCL line. If no GPIO is given, power > - management is disabled. > - > -Example: > - > -mlx90614@5a { > - compatible = "melexis,mlx90614"; > - reg = <0x5a>; > - wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; > -}; > -- > 2.28.0 >
On Mon, 2 Nov 2020 10:12:57 +0100 Crt Mori <cmo@melexis.com> wrote: > Hi Jonathan, > The commit message should change here as now you did not list all 3 > authors as maintainers, because one has a bouncy email address. Good point. I can clean that up whilst applying if we don't need a v3. Jonathan > > Best regards, > Crt > > On Sat, 31 Oct 2020 at 14:44, Jonathan Cameron <jic23@kernel.org> wrote: > > > > From: Jonathan Cameron <Jonathan.Cameron@huawei.com> > > > > Simple conversion from txt to yaml. > > I've listed all 3 authors of the driver as maintainers. > > > > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> > > Reviewed-by: Rob Herring <robh@kernel.org> > > Acked-by: Crt Mori <cmo@melexis.com> > > Cc: Peter Meerwald <pmeerw@pmeerw.net> > > --- > > .../iio/temperature/melexis,mlx90614.yaml | 50 +++++++++++++++++++ > > .../bindings/iio/temperature/mlx90614.txt | 24 --------- > > 2 files changed, 50 insertions(+), 24 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml > > new file mode 100644 > > index 000000000000..d6965a0c1cf3 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml > > @@ -0,0 +1,50 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/temperature/melexis,mlx90614.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Melexis MLX90614 contactless IR temperature sensor > > + > > +maintainers: > > + - Peter Meerwald <pmeerw@pmeerw.net> > > + - Crt Mori <cmo@melexis.com> > > + > > +description: | > > + http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx > > + > > +properties: > > + compatible: > > + const: melexis,mlx90614 > > + > > + reg: > > + maxItems: 1 > > + > > + wakeup-gpios: > > + description: > > + GPIO connected to the SDA line to hold low in order to wake up the > > + device. In normal operation, the GPIO is set as input and will > > + not interfere in I2C communication. There is no need for a GPIO > > + driving the SCL line. If no GPIO is given, power management is disabled. > > + maxItems: 1 > > + > > +required: > > + - compatible > > + - reg > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include <dt-bindings/gpio/gpio.h> > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + temp-sensor@5a { > > + compatible = "melexis,mlx90614"; > > + reg = <0x5a>; > > + wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; > > + }; > > + }; > > +... > > diff --git a/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt b/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt > > deleted file mode 100644 > > index 9be57b036092..000000000000 > > --- a/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt > > +++ /dev/null > > @@ -1,24 +0,0 @@ > > -* Melexis MLX90614 contactless IR temperature sensor > > - > > -http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx > > - > > -Required properties: > > - > > - - compatible: should be "melexis,mlx90614" > > - - reg: the I2C address of the sensor > > - > > -Optional properties: > > - > > - - wakeup-gpios: device tree identifier of the GPIO connected to the SDA line > > - to hold low in order to wake up the device. In normal operation, the > > - GPIO is set as input and will not interfere in I2C communication. There > > - is no need for a GPIO driving the SCL line. If no GPIO is given, power > > - management is disabled. > > - > > -Example: > > - > > -mlx90614@5a { > > - compatible = "melexis,mlx90614"; > > - reg = <0x5a>; > > - wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; > > -}; > > -- > > 2.28.0 > >
diff --git a/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml new file mode 100644 index 000000000000..d6965a0c1cf3 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/melexis,mlx90614.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/melexis,mlx90614.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Melexis MLX90614 contactless IR temperature sensor + +maintainers: + - Peter Meerwald <pmeerw@pmeerw.net> + - Crt Mori <cmo@melexis.com> + +description: | + http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx + +properties: + compatible: + const: melexis,mlx90614 + + reg: + maxItems: 1 + + wakeup-gpios: + description: + GPIO connected to the SDA line to hold low in order to wake up the + device. In normal operation, the GPIO is set as input and will + not interfere in I2C communication. There is no need for a GPIO + driving the SCL line. If no GPIO is given, power management is disabled. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@5a { + compatible = "melexis,mlx90614"; + reg = <0x5a>; + wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt b/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt deleted file mode 100644 index 9be57b036092..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/mlx90614.txt +++ /dev/null @@ -1,24 +0,0 @@ -* Melexis MLX90614 contactless IR temperature sensor - -http://melexis.com/Infrared-Thermometer-Sensors/Infrared-Thermometer-Sensors/MLX90614-615.aspx - -Required properties: - - - compatible: should be "melexis,mlx90614" - - reg: the I2C address of the sensor - -Optional properties: - - - wakeup-gpios: device tree identifier of the GPIO connected to the SDA line - to hold low in order to wake up the device. In normal operation, the - GPIO is set as input and will not interfere in I2C communication. There - is no need for a GPIO driving the SCL line. If no GPIO is given, power - management is disabled. - -Example: - -mlx90614@5a { - compatible = "melexis,mlx90614"; - reg = <0x5a>; - wakeup-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; -};