[PATCH 8/9] Add configurability via devicetree

Sascha Hauer s.hauer at pengutronix.de
Wed Jul 10 09:34:24 EDT 2013


On Wed, Jul 10, 2013 at 09:17:03PM +0800, Jean-Christophe PLAGNIOL-VILLARD wrote:
> 
> > +Required properties:
> > +
> > +- compatible: should be "barebox,partition"
> > +- device-path: should contain a nodepath to the physical device for which
> > +               this device provides a partitioning
> > +- #address-cells, #size-cells: number of cells for size/addresses in the
> > +                               partitions
> > +
> > +Partition properties:
> > +
> > +- reg: The partition's offset and size
> > +- label: The label/name for this partition
> > +- read-only: if present, the partition is read-only
> > +
> > +Example:
> > +
> > +nor-partitions {
> > +	compatible = "barebox,partition";
> > +	device-path = &flash;
> > +	#address-cells = <1>;
> > +	#size-cells = <1>;
> > +
> > +	partition at 0 {
> > +		label = "barebox";
> > +		reg = <0x0 0x80000>;
> > +	};
> > +
> > +	partition at 1 {
> > +		label = "barebox-environment";
> > +		reg = <0x80000 0x80000>;
> > +	};
> > +};
> 
> This is duplicate with the mtd partition, isn't?

It's the same binding, yes.

Sascha

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



More information about the barebox mailing list