On 08/10/16 08:45, Lorenzo Bianconi wrote: > Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@xxxxxx> > --- > .../devicetree/bindings/iio/humidity/hts221.txt | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/humidity/hts221.txt > > diff --git a/Documentation/devicetree/bindings/iio/humidity/hts221.txt b/Documentation/devicetree/bindings/iio/humidity/hts221.txt > new file mode 100644 > index 0000000..46a152c > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/humidity/hts221.txt > @@ -0,0 +1,19 @@ > +* HTS221 STM humidity + temperature sensor > + > +Required properties: > +- compatible: should be "st,hts221" > +- reg: i2c address of the sensor / spi cs line > + > +Optional properties: > +- interrupts: interrupt mapping for GPIO IRQ. It should be configured with > + flags IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_EDGE_RISING It might not be a gpio irq. Plenty of IRQ only chips out there that you can't use for general purpose reading (you can't explicitly read their state). > +- interrupt-parent: should be the phandle for the interrupt controller Convention here is to add a cross reference to the main interrupt docs. We have been a bit lax on this in some IIO drivers but might as well be good with a new one. Otherwise this looks good to me. Thanks, Jonathan > + > +Example: > + > +hts221@5f { > + compatible = "st,hts221"; > + reg = <0x5f>; > + interrupt-parent = <&gpio0>; > + interrupts = <0 IRQ_TYPE_EDGE_RISING>; > +}; > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html