Re: [RFC] [PATCH] Device Tree on ARM platform

Robert Schwebel
2009-05-27T23:57:19Z

On Wed, May 27, 2009 at 02:22:50PM -0600, Grant Likely wrote:
> 2) Driver binding mechanism: device tree nodes usually have a
> "compatible" property which is a list of strings. The first string
> describes exactly what the device is (ie. "atmel,24c08") and an
> optional list of other devices which it is register interface
> backwards compatible with.

This is a good example. The "exact" description above doesn't say
anything about some of the details the driver needs to know. Here is the
at24 driver:

http://lxr.linux.no/linux+v2.6.29/include/linux/i2c/at24.h#L18

Where do we get the page size & flags from?

rsc
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |