devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/4] dt-bindings: iio: humidity: Add bindings for HTU21 and MS8607 sensors
@ 2017-06-13 17:20 Manivannan Sadhasivam
       [not found] ` <1497374443-20935-1-git-send-email-manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Manivannan Sadhasivam @ 2017-06-13 17:20 UTC (permalink / raw)
  To: jic23-DgEjT+Ai2ygdnm+yROfE0A, pmeerw-jW+XmwGofnusTnJN9+BGXg,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	william.markezana-ya7vCgA9bt58UrSeD/g0lQ,
	ludovic.tancerel-sbt5i+FMW2pmsedzY7GhzwC/G2K4zDHf
  Cc: linux-iio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	nicolas.dechesne-QSEj5FYQhm4dnm+yROfE0A,
	amit.kucheria-QSEj5FYQhm4dnm+yROfE0A, Manivannan Sadhasivam

Add device tree bindings for Measurement-Specialties HTU21 temperature & humidity sensor and humidity part of MS8607 sensor

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
 Documentation/devicetree/bindings/iio/humidity/htu21.txt | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/humidity/htu21.txt

diff --git a/Documentation/devicetree/bindings/iio/humidity/htu21.txt b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
new file mode 100644
index 0000000..97d7963
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
@@ -0,0 +1,13 @@
+*HTU21 - Measurement-Specialties htu21 temperature & humidity sensor and humidity part of MS8607 sensor
+
+Required properties:
+
+	- compatible: should be "meas,htu21" or "meas,ms8607-humidity"
+	- reg: I2C address of the sensor
+
+Example:
+
+htu21@40 {
+	compatible = "meas,htu21";
+	reg = <0x40>;
+};
-- 
2.7.4

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

* Re: [PATCH 2/4] dt-bindings: iio: humidity: Add bindings for HTU21 and MS8607 sensors
       [not found] ` <1497374443-20935-1-git-send-email-manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2017-06-18 14:05   ` Rob Herring
  2017-06-21 19:40     ` Jonathan Cameron
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2017-06-18 14:05 UTC (permalink / raw)
  To: Manivannan Sadhasivam
  Cc: jic23-DgEjT+Ai2ygdnm+yROfE0A, pmeerw-jW+XmwGofnusTnJN9+BGXg,
	william.markezana-ya7vCgA9bt58UrSeD/g0lQ,
	ludovic.tancerel-sbt5i+FMW2pmsedzY7GhzwC/G2K4zDHf,
	linux-iio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	nicolas.dechesne-QSEj5FYQhm4dnm+yROfE0A,
	amit.kucheria-QSEj5FYQhm4dnm+yROfE0A

On Tue, Jun 13, 2017 at 10:50:43PM +0530, Manivannan Sadhasivam wrote:
> Add device tree bindings for Measurement-Specialties HTU21 temperature & humidity sensor and humidity part of MS8607 sensor
> 
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
>  Documentation/devicetree/bindings/iio/humidity/htu21.txt | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/iio/humidity/htu21.txt
> 
> diff --git a/Documentation/devicetree/bindings/iio/humidity/htu21.txt b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
> new file mode 100644
> index 0000000..97d7963
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
> @@ -0,0 +1,13 @@
> +*HTU21 - Measurement-Specialties htu21 temperature & humidity sensor and humidity part of MS8607 sensor

The binding should be for the device, not part of it. You should bind 
to a driver for MS8607 and then create 2 child devices for the humidity 
and temp sensors.

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 2/4] dt-bindings: iio: humidity: Add bindings for HTU21 and MS8607 sensors
  2017-06-18 14:05   ` Rob Herring
@ 2017-06-21 19:40     ` Jonathan Cameron
       [not found]       ` <20170621204050.75863dd5-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Cameron @ 2017-06-21 19:40 UTC (permalink / raw)
  To: Rob Herring
  Cc: Manivannan Sadhasivam, pmeerw-jW+XmwGofnusTnJN9+BGXg,
	william.markezana-ya7vCgA9bt58UrSeD/g0lQ,
	ludovic.tancerel-sbt5i+FMW2pmsedzY7GhzwC/G2K4zDHf,
	linux-iio-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	nicolas.dechesne-QSEj5FYQhm4dnm+yROfE0A,
	amit.kucheria-QSEj5FYQhm4dnm+yROfE0A

On Sun, 18 Jun 2017 09:05:11 -0500
Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:

> On Tue, Jun 13, 2017 at 10:50:43PM +0530, Manivannan Sadhasivam wrote:
> > Add device tree bindings for Measurement-Specialties HTU21 temperature & humidity sensor and humidity part of MS8607 sensor
> > 
> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> > ---
> >  Documentation/devicetree/bindings/iio/humidity/htu21.txt | 13 +++++++++++++
> >  1 file changed, 13 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/iio/humidity/htu21.txt
> > 
> > diff --git a/Documentation/devicetree/bindings/iio/humidity/htu21.txt b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
> > new file mode 100644
> > index 0000000..97d7963
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
> > @@ -0,0 +1,13 @@
> > +*HTU21 - Measurement-Specialties htu21 temperature & humidity sensor and humidity part of MS8607 sensor  
> 
> The binding should be for the device, not part of it. You should bind 
> to a driver for MS8607 and then create 2 child devices for the humidity 
> and temp sensors.
Hi Rob,

It's a bit of an oddity as we are look at package in package parts. 
Really there are simply two parts here. There is no need to know
they are in the same package.  Obviously we 'could' describe this, but
it's no different form  mounting the chips next to each other on the
same bus sharing the same power rails.

I guess a binding that reflected this would act as 'documentation' perhaps,
but would provide no useful information.

Can you point us to a similar example (for future reference)?

Thanks

Jonathan

> 
> Rob

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

* Re: [PATCH 2/4] dt-bindings: iio: humidity: Add bindings for HTU21 and MS8607 sensors
       [not found]       ` <20170621204050.75863dd5-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
@ 2017-06-22  3:05         ` Rob Herring
       [not found]           ` <CAL_JsqKDAPOqRepjRU9qrZQ-8_01JAfckP7G1EAjJi4t2UK7kg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2017-06-22  3:05 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Manivannan Sadhasivam, Peter Meerwald, William Markezana,
	ludovic.tancerel-sbt5i+FMW2pmsedzY7GhzwC/G2K4zDHf,
	linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Nicolas Dechesne, Amit Kucheria

On Wed, Jun 21, 2017 at 2:40 PM, Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> On Sun, 18 Jun 2017 09:05:11 -0500
> Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>
>> On Tue, Jun 13, 2017 at 10:50:43PM +0530, Manivannan Sadhasivam wrote:
>> > Add device tree bindings for Measurement-Specialties HTU21 temperature & humidity sensor and humidity part of MS8607 sensor
>> >
>> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>> > ---
>> >  Documentation/devicetree/bindings/iio/humidity/htu21.txt | 13 +++++++++++++
>> >  1 file changed, 13 insertions(+)
>> >  create mode 100644 Documentation/devicetree/bindings/iio/humidity/htu21.txt
>> >
>> > diff --git a/Documentation/devicetree/bindings/iio/humidity/htu21.txt b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
>> > new file mode 100644
>> > index 0000000..97d7963
>> > --- /dev/null
>> > +++ b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
>> > @@ -0,0 +1,13 @@
>> > +*HTU21 - Measurement-Specialties htu21 temperature & humidity sensor and humidity part of MS8607 sensor
>>
>> The binding should be for the device, not part of it. You should bind
>> to a driver for MS8607 and then create 2 child devices for the humidity
>> and temp sensors.
> Hi Rob,
>
> It's a bit of an oddity as we are look at package in package parts.
> Really there are simply two parts here. There is no need to know
> they are in the same package.  Obviously we 'could' describe this, but
> it's no different form  mounting the chips next to each other on the
> same bus sharing the same power rails.

Okay, then it is fine as-is.

Rob

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

* Re: [PATCH 2/4] dt-bindings: iio: humidity: Add bindings for HTU21 and MS8607 sensors
       [not found]           ` <CAL_JsqKDAPOqRepjRU9qrZQ-8_01JAfckP7G1EAjJi4t2UK7kg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-06-24 20:50             ` Jonathan Cameron
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2017-06-24 20:50 UTC (permalink / raw)
  To: Rob Herring
  Cc: Manivannan Sadhasivam, Peter Meerwald, William Markezana,
	ludovic.tancerel-sbt5i+FMW2pmsedzY7GhzwC/G2K4zDHf,
	linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Nicolas Dechesne, Amit Kucheria

On Wed, 21 Jun 2017 22:05:13 -0500
Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:

> On Wed, Jun 21, 2017 at 2:40 PM, Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> > On Sun, 18 Jun 2017 09:05:11 -0500
> > Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> >  
> >> On Tue, Jun 13, 2017 at 10:50:43PM +0530, Manivannan Sadhasivam wrote:  
> >> > Add device tree bindings for Measurement-Specialties HTU21 temperature & humidity sensor and humidity part of MS8607 sensor
> >> >
> >> > Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> >> > ---
> >> >  Documentation/devicetree/bindings/iio/humidity/htu21.txt | 13 +++++++++++++
> >> >  1 file changed, 13 insertions(+)
> >> >  create mode 100644 Documentation/devicetree/bindings/iio/humidity/htu21.txt
> >> >
> >> > diff --git a/Documentation/devicetree/bindings/iio/humidity/htu21.txt b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
> >> > new file mode 100644
> >> > index 0000000..97d7963
> >> > --- /dev/null
> >> > +++ b/Documentation/devicetree/bindings/iio/humidity/htu21.txt
> >> > @@ -0,0 +1,13 @@
> >> > +*HTU21 - Measurement-Specialties htu21 temperature & humidity sensor and humidity part of MS8607 sensor  
> >>
> >> The binding should be for the device, not part of it. You should bind
> >> to a driver for MS8607 and then create 2 child devices for the humidity
> >> and temp sensors.  
> > Hi Rob,
> >
> > It's a bit of an oddity as we are look at package in package parts.
> > Really there are simply two parts here. There is no need to know
> > they are in the same package.  Obviously we 'could' describe this, but
> > it's no different form  mounting the chips next to each other on the
> > same bus sharing the same power rails.  
> 
> Okay, then it is fine as-is.
> 
> Rob
Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks Rob for getting back to me on this.

Jonathan

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2017-06-24 20:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-13 17:20 [PATCH 2/4] dt-bindings: iio: humidity: Add bindings for HTU21 and MS8607 sensors Manivannan Sadhasivam
     [not found] ` <1497374443-20935-1-git-send-email-manivannan.sadhasivam-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-06-18 14:05   ` Rob Herring
2017-06-21 19:40     ` Jonathan Cameron
     [not found]       ` <20170621204050.75863dd5-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-06-22  3:05         ` Rob Herring
     [not found]           ` <CAL_JsqKDAPOqRepjRU9qrZQ-8_01JAfckP7G1EAjJi4t2UK7kg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-24 20:50             ` 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).