[RFC 3/3] olpc-battery: bind to device tree

Grant Likely grant.likely at secretlab.ca
Tue Mar 15 14:32:03 EST 2011


On Sat, Mar 12, 2011 at 05:56:12PM +0000, Daniel Drake wrote:
> On 5 March 2011 04:54, Grant Likely <grant.likely at secretlab.ca> wrote:
> > I want to see all new compatible properties documented in
> > Documentation/devicetree/bindings.  It may not be the best place for
> > binding documentation since it is currently tied to Linux, but it is
> > better than anything else we currently have.
> 
> Ok, how do you think it should look?
> 
> Something simple like this? new file at bindings/power_supply/olpc_battery.txt :
> 
> OLPC battery
> ~~~~~~~~~~~~
> 
> Required properties:
>   - compatible : "olpc,xo1-battery"

Yes.  At the very least it captures the usage of a compatible
property.  Eventually I'm going to translate this stuff into a cross
referenced online database.


More information about the devicetree-discuss mailing list