devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt: Update I2C trivial devices list
@ 2013-12-17  0:12 Ben Gamari
       [not found] ` <1387239151-19226-1-git-send-email-bgamari.foss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Gamari @ 2013-12-17  0:12 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Ben Gamari

---
 Documentation/devicetree/bindings/i2c/trivial-devices.txt | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
index b1cb341..0e68085 100644
--- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt
+++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
@@ -1,6 +1,9 @@
 This is a list of trivial i2c devices that have simple device tree
 bindings, consisting only of a compatible field, an address and
-possibly an interrupt line.
+possibly an interrupt line. The compatible field is used to lookup the
+modalias of the driver which will handle the device. The compatible
+string may begin with a manufacturer prefix (separated from the
+modalias by a comma) which will be stripped off during lookup.
 
 If a device needs more specific bindings, such as properties to
 describe some aspect of it, there needs to be a specific binding
@@ -9,10 +12,10 @@ document for it just like any other devices.
 
 Compatible		Vendor / Chip
 ==========		=============
+ad,adt7411		I2C Digital 8-channel 10-bit ADC and temperature sensor
 ad,ad7414		SMBus/I2C Digital Temperature Sensor in 6-Pin SOT with SMBus Alert and Over Temperature Pin
 ad,adm9240		ADM9240:  Complete System Hardware Monitor for uProcessor-Based Systems
-adi,adt7461		+/-1C TDM Extended Temp Range I.C
-adt7461			+/-1C TDM Extended Temp Range I.C
+adi,adt7461		+/-1C SMBus digital thermometer
 at,24c08		i2c serial eeprom  (24cxx)
 atmel,24c02		i2c serial eeprom  (24cxx)
 atmel,at97sc3204t	i2c trusted platform module (TPM)
-- 
1.8.3.2

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

* Re: [PATCH] dt: Update I2C trivial devices list
       [not found] ` <1387239151-19226-1-git-send-email-bgamari.foss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2013-12-17 16:14   ` Stephen Warren
       [not found]     ` <52B07870.6070809-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Warren @ 2013-12-17 16:14 UTC (permalink / raw)
  To: Ben Gamari, Wolfram Sang
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA

On 12/16/2013 05:12 PM, Ben Gamari wrote:

> diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt

>  This is a list of trivial i2c devices that have simple device tree
>  bindings, consisting only of a compatible field, an address and
> -possibly an interrupt line.
> +possibly an interrupt line. The compatible field is used to lookup the
> +modalias of the driver which will handle the device. The compatible
> +string may begin with a manufacturer prefix (separated from the
> +modalias by a comma) which will be stripped off during lookup.

This part of the patch described Linux-specific behaviour, whereas DT
bindings should be OS-agnostic.

BTW, you didn't CC the DT binding maintainers.

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

* Re: [PATCH] dt: Update I2C trivial devices list
       [not found]     ` <52B07870.6070809-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2013-12-17 16:47       ` Ben Gamari
       [not found]         ` <87a9fztofc.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Gamari @ 2013-12-17 16:47 UTC (permalink / raw)
  To: Stephen Warren, Wolfram Sang
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> writes:

> On 12/16/2013 05:12 PM, Ben Gamari wrote:
>
>> diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
>
>>  This is a list of trivial i2c devices that have simple device tree
>>  bindings, consisting only of a compatible field, an address and
>> -possibly an interrupt line.
>> +possibly an interrupt line. The compatible field is used to lookup the
>> +modalias of the driver which will handle the device. The compatible
>> +string may begin with a manufacturer prefix (separated from the
>> +modalias by a comma) which will be stripped off during lookup.
>
> This part of the patch described Linux-specific behaviour, whereas DT
> bindings should be OS-agnostic.
>
I see your point but it would be nice to have language like this
somewhere. One of the biggest challenges in diving in to writing a
devicetree is figuring out details like this.

> BTW, you didn't CC the DT binding maintainers.
>
Very true. Fixed.

Cheers,

- Ben

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

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

* Re: [PATCH] dt: Update I2C trivial devices list
       [not found]         ` <87a9fztofc.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-01-13 12:51           ` Wolfram Sang
  2014-01-13 14:25             ` Ben Gamari
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfram Sang @ 2014-01-13 12:51 UTC (permalink / raw)
  To: Ben Gamari
  Cc: Stephen Warren, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala

[-- Attachment #1: Type: text/plain, Size: 1230 bytes --]

On Tue, Dec 17, 2013 at 11:47:19AM -0500, Ben Gamari wrote:
> Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> writes:
> 
> > On 12/16/2013 05:12 PM, Ben Gamari wrote:
> >
> >> diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
> >
> >>  This is a list of trivial i2c devices that have simple device tree
> >>  bindings, consisting only of a compatible field, an address and
> >> -possibly an interrupt line.
> >> +possibly an interrupt line. The compatible field is used to lookup the
> >> +modalias of the driver which will handle the device. The compatible
> >> +string may begin with a manufacturer prefix (separated from the
> >> +modalias by a comma) which will be stripped off during lookup.
> >
> > This part of the patch described Linux-specific behaviour, whereas DT
> > bindings should be OS-agnostic.
> >
> I see your point but it would be nice to have language like this
> somewhere. One of the biggest challenges in diving in to writing a
> devicetree is figuring out details like this.

What about putting this into a seperate paragraph prefixed with "Current
Linux specific implementation:"?


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

* Re: [PATCH] dt: Update I2C trivial devices list
  2014-01-13 12:51           ` Wolfram Sang
@ 2014-01-13 14:25             ` Ben Gamari
       [not found]               ` <87r48cklgj.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Gamari @ 2014-01-13 14:25 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Stephen Warren, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala

[-- Attachment #1: Type: text/plain, Size: 1393 bytes --]

Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> writes:

> On Tue, Dec 17, 2013 at 11:47:19AM -0500, Ben Gamari wrote:
>> Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> writes:
>> 
>> > On 12/16/2013 05:12 PM, Ben Gamari wrote:
>> >
>> >> diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
>> >
>> >>  This is a list of trivial i2c devices that have simple device tree
>> >>  bindings, consisting only of a compatible field, an address and
>> >> -possibly an interrupt line.
>> >> +possibly an interrupt line. The compatible field is used to lookup the
>> >> +modalias of the driver which will handle the device. The compatible
>> >> +string may begin with a manufacturer prefix (separated from the
>> >> +modalias by a comma) which will be stripped off during lookup.
>> >
>> > This part of the patch described Linux-specific behaviour, whereas DT
>> > bindings should be OS-agnostic.
>> >
>> I see your point but it would be nice to have language like this
>> somewhere. One of the biggest challenges in diving in to writing a
>> devicetree is figuring out details like this.
>
> What about putting this into a seperate paragraph prefixed with "Current
> Linux specific implementation:"?
>
This would address my concern quite nicely.

Cheers,

- Ben

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

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

* Re: [PATCH] dt: Update I2C trivial devices list
       [not found]               ` <87r48cklgj.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-01-13 16:57                 ` Stephen Warren
       [not found]                   ` <52D41B14.6060701-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Warren @ 2014-01-13 16:57 UTC (permalink / raw)
  To: Ben Gamari, Wolfram Sang
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala

On 01/13/2014 07:25 AM, Ben Gamari wrote:
> Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> writes:
> 
>> On Tue, Dec 17, 2013 at 11:47:19AM -0500, Ben Gamari wrote:
>>> Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> writes:
>>>
>>>> On 12/16/2013 05:12 PM, Ben Gamari wrote:
>>>>
>>>>> diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
>>>>
>>>>>  This is a list of trivial i2c devices that have simple device tree
>>>>>  bindings, consisting only of a compatible field, an address and
>>>>> -possibly an interrupt line.
>>>>> +possibly an interrupt line. The compatible field is used to lookup the
>>>>> +modalias of the driver which will handle the device. The compatible
>>>>> +string may begin with a manufacturer prefix (separated from the
>>>>> +modalias by a comma) which will be stripped off during lookup.
>>>>
>>>> This part of the patch described Linux-specific behaviour, whereas DT
>>>> bindings should be OS-agnostic.
>>>>
>>> I see your point but it would be nice to have language like this
>>> somewhere. One of the biggest challenges in diving in to writing a
>>> devicetree is figuring out details like this.
>>
>> What about putting this into a seperate paragraph prefixed with "Current
>> Linux specific implementation:"?
>>
> This would address my concern quite nicely.

The text should go into Documentation/ not the DT binding.

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

* Re: [PATCH] dt: Update I2C trivial devices list
       [not found]                   ` <52D41B14.6060701-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2014-01-13 17:26                     ` Ben Gamari
       [not found]                       ` <87ob3flrmw.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Ben Gamari @ 2014-01-13 17:26 UTC (permalink / raw)
  To: Stephen Warren, Wolfram Sang
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala

[-- Attachment #1: Type: text/plain, Size: 967 bytes --]

Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> writes:

> On 01/13/2014 07:25 AM, Ben Gamari wrote:
>> Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> writes:
>>> What about putting this into a seperate paragraph prefixed with "Current
>>> Linux specific implementation:"?
>>>
>> This would address my concern quite nicely.
>
> The text should go into Documentation/ not the DT binding.
>
The problem here is that as it stands DT is quite daunting to pick
up. My needs are pretty minimal yet I had to spend many hours sifting
through source, blogs, and Documentation/* to get something that more or
less worked. The bindings are generally well-documented, but there is no
"start here" document in the tree giving conventions and an overview of
how Linux in particular uses DT.

The closest thing I know of is Documentation/devicetree/usage-model.txt.
Perhaps this is where the language Wolfram suggested should be placed.

Cheers,

- Ben

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

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

* Re: [PATCH] dt: Update I2C trivial devices list
       [not found]                       ` <87ob3flrmw.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-11-19 14:24                         ` Wolfram Sang
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfram Sang @ 2014-11-19 14:24 UTC (permalink / raw)
  To: Ben Gamari
  Cc: Stephen Warren, linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Pawel Moll,
	Mark Rutland, Ian Campbell, Kumar Gala

[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]

On Mon, Jan 13, 2014 at 12:26:47PM -0500, Ben Gamari wrote:
> Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> writes:
> 
> > On 01/13/2014 07:25 AM, Ben Gamari wrote:
> >> Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> writes:
> >>> What about putting this into a seperate paragraph prefixed with "Current
> >>> Linux specific implementation:"?
> >>>
> >> This would address my concern quite nicely.
> >
> > The text should go into Documentation/ not the DT binding.
> >
> The problem here is that as it stands DT is quite daunting to pick
> up. My needs are pretty minimal yet I had to spend many hours sifting
> through source, blogs, and Documentation/* to get something that more or
> less worked. The bindings are generally well-documented, but there is no
> "start here" document in the tree giving conventions and an overview of
> how Linux in particular uses DT.
> 
> The closest thing I know of is Documentation/devicetree/usage-model.txt.
> Perhaps this is where the language Wolfram suggested should be placed.

I appreciate your effort to improve documentation on how to get started.
Sadly, I don't know where the best place would be and I am too busy to
look it up. If you are interested, I'll happily apply the outcome,
otherwise we sadly have to wait until someone else comes up.


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2014-11-19 14:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17  0:12 [PATCH] dt: Update I2C trivial devices list Ben Gamari
     [not found] ` <1387239151-19226-1-git-send-email-bgamari.foss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-12-17 16:14   ` Stephen Warren
     [not found]     ` <52B07870.6070809-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-12-17 16:47       ` Ben Gamari
     [not found]         ` <87a9fztofc.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-13 12:51           ` Wolfram Sang
2014-01-13 14:25             ` Ben Gamari
     [not found]               ` <87r48cklgj.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-13 16:57                 ` Stephen Warren
     [not found]                   ` <52D41B14.6060701-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2014-01-13 17:26                     ` Ben Gamari
     [not found]                       ` <87ob3flrmw.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-11-19 14:24                         ` Wolfram Sang

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).