diff mbox

Documentation: dt-bindings: tmp007: Add optional interrupt support

Message ID 20170123162809.GA16800@gmail.com
State Not Applicable, archived
Headers show

Commit Message

Mani Sadhasivam Jan. 23, 2017, 4:28 p.m. UTC
This patch adds optional interrupt binding support for TI TMP007 - IR thermopiler sensor

Signed-off-by: Manivannan Sadhasivam <manivannanece23@gmail.com>
---

Created separate patch for devicetree and driver.

 Documentation/devicetree/bindings/iio/temperature/tmp007.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Rob Herring Jan. 27, 2017, 8:30 p.m. UTC | #1
On Mon, Jan 23, 2017 at 09:58:09PM +0530, Manivannan Sadhasivam wrote:
> This patch adds optional interrupt binding support for TI TMP007 - IR thermopiler sensor
> 
> Signed-off-by: Manivannan Sadhasivam <manivannanece23@gmail.com>
> ---
> 
> Created separate patch for devicetree and driver.
> 
>  Documentation/devicetree/bindings/iio/temperature/tmp007.txt | 8 ++++++++
>  1 file changed, 8 insertions(+)

Acked-by: Rob Herring <robh@kernel.org>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Jonathan Cameron Jan. 28, 2017, 11:53 a.m. UTC | #2
On 27/01/17 20:30, Rob Herring wrote:
> On Mon, Jan 23, 2017 at 09:58:09PM +0530, Manivannan Sadhasivam wrote:
>> This patch adds optional interrupt binding support for TI TMP007 - IR thermopiler sensor
>>
>> Signed-off-by: Manivannan Sadhasivam <manivannanece23@gmail.com>
>> ---
>>
>> Created separate patch for devicetree and driver.
>>
>>  Documentation/devicetree/bindings/iio/temperature/tmp007.txt | 8 ++++++++
>>  1 file changed, 8 insertions(+)
> 
> Acked-by: Rob Herring <robh@kernel.org>
> 
Applied to the togreg branch of iio.git - shortly to be pushed out as testing
for the autobuilders to play with it.

Please cc linux-iio@vger.kernel.org even when you are only touching the bindings.
Makes it less likely a patch will fall through the cracks!

Jonathan
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mani Sadhasivam Jan. 28, 2017, 12:04 p.m. UTC | #3
On January 28, 2017 5:23:22 PM GMT+05:30, Jonathan Cameron <jic23@kernel.org> wrote:
>On 27/01/17 20:30, Rob Herring wrote:
>> On Mon, Jan 23, 2017 at 09:58:09PM +0530, Manivannan Sadhasivam
>wrote:
>>> This patch adds optional interrupt binding support for TI TMP007 -
>IR thermopiler sensor
>>>
>>> Signed-off-by: Manivannan Sadhasivam <manivannanece23@gmail.com>
>>> ---
>>>
>>> Created separate patch for devicetree and driver.
>>>
>>>  Documentation/devicetree/bindings/iio/temperature/tmp007.txt | 8
>++++++++
>>>  1 file changed, 8 insertions(+)
>> 
>> Acked-by: Rob Herring <robh@kernel.org>
>> 
>Applied to the togreg branch of iio.git - shortly to be pushed out as
>testing
>for the autobuilders to play with it.
>
>Please cc linux-iio@vger.kernel.org even when you are only touching the
>bindings.
>Makes it less likely a patch will fall through the cracks!
Noted.  Thanks Jonathan. 

-Mani
>
>Jonathan
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/iio/temperature/tmp007.txt b/Documentation/devicetree/bindings/iio/temperature/tmp007.txt
index 3b8f41f..b63aba9 100644
--- a/Documentation/devicetree/bindings/iio/temperature/tmp007.txt
+++ b/Documentation/devicetree/bindings/iio/temperature/tmp007.txt
@@ -18,10 +18,18 @@  Required properties:
 		   1	 SDA	   0x46
 		   1     SCL       0x47
 
+Optional properties:
+
+  - interrupt-parent: should be the phandle for the interrupt controller
+
+  - interrupts: interrupt mapping for GPIO IRQ (level active low)
+
 Example:
 
 tmp007@40 {
         compatible = "ti,tmp007";
         reg = <0x40>;
+	interrupt-parent = <&gpio0>;
+	interrupts = <5 0x08>;
 };