diff mbox

[2/2] dt-bindings: iio: light: add UVIS25 device bindings

Message ID 20171025181609.3803-3-lorenzo.bianconi@st.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lorenzo Bianconi Oct. 25, 2017, 6:16 p.m. UTC
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
---
 .../devicetree/bindings/iio/light/st_uvis25.txt    | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/light/st_uvis25.txt

Comments

Rob Herring (Arm) Oct. 27, 2017, 2:37 p.m. UTC | #1
On Wed, Oct 25, 2017 at 08:16:09PM +0200, Lorenzo Bianconi wrote:
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
> ---
>  .../devicetree/bindings/iio/light/st_uvis25.txt    | 23 ++++++++++++++++++++++

st,uvis25.txt matching the compatible.

Otherwise,

Acked-by: Rob Herring <robh@kernel.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Lorenzo Bianconi Oct. 27, 2017, 3:03 p.m. UTC | #2
> On Wed, Oct 25, 2017 at 08:16:09PM +0200, Lorenzo Bianconi wrote:
>> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
>> ---
>>  .../devicetree/bindings/iio/light/st_uvis25.txt    | 23 ++++++++++++++++++++++
>
> st,uvis25.txt matching the compatible.

Hi Rob,

I did not get you what you mean.
Thanks. Regards,

Lorenzo

>
> Otherwise,
>
> Acked-by: Rob Herring <robh@kernel.org>
Rob Herring (Arm) Nov. 8, 2017, 12:47 a.m. UTC | #3
On Fri, Oct 27, 2017 at 10:03 AM, Lorenzo Bianconi
<lorenzo.bianconi83@gmail.com> wrote:
>> On Wed, Oct 25, 2017 at 08:16:09PM +0200, Lorenzo Bianconi wrote:
>>> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
>>> ---
>>>  .../devicetree/bindings/iio/light/st_uvis25.txt    | 23 ++++++++++++++++++++++
>>
>> st,uvis25.txt matching the compatible.
>
> Hi Rob,
>
> I did not get you what you mean.

Rename the file.
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/iio/light/st_uvis25.txt b/Documentation/devicetree/bindings/iio/light/st_uvis25.txt
new file mode 100644
index 000000000000..3041207e3f3c
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/st_uvis25.txt
@@ -0,0 +1,23 @@ 
+* ST UVIS25 uv sensor
+
+Required properties:
+- compatible: should be "st,uvis25"
+- reg: i2c address of the sensor / spi cs line
+
+Optional properties:
+- interrupt-parent: should be the phandle for the interrupt controller
+- interrupts: interrupt mapping for IRQ. It should be configured with
+  flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
+  IRQ_TYPE_EDGE_FALLING.
+
+  Refer to interrupt-controller/interrupts.txt for generic interrupt
+  client node bindings.
+
+Example:
+
+uvis25@47 {
+	compatible = "st,uvis25";
+	reg = <0x47>;
+	interrupt-parent = <&gpio0>;
+	interrupts = <0 IRQ_TYPE_EDGE_RISING>;
+};