[PATCH 2/2] mtd: sh_flctl: Add device tree support
Arnd Bergmann
arnd at arndb.de
Tue Oct 2 09:54:00 EDT 2012
On Tuesday 02 October 2012, Bastian Hecht wrote:
> +Required properties:
> +- compatible : "renesas,shmobile-flctl-sh7372"
> +- reg : Address range of the FLCTL
> +- interrupts : flste IRQ number
> +- nand-bus-width : bus width to NAND chip
> +
> +The device tree may optionally contain sub-nodes describing partitions of the
> +address space. See partition.txt for more detail.
> +
> +Example:
> +
> + flctl at e6a30000 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "renesas,shmobile-flctl-sh7372";
> + reg = <0xe6a30000 0x100>;
> + interrupts = <0x0d80>;
> +
> + nand-bus-width = <16>;
> +
> + system at 0 {
> + label = "system";
> + reg = <0x0 0x8000000>;
> + };
> +
> + userdata at 8000000 {
> + label = "userdata";
> + reg = <0x8000000 0x10000000>;
> + };
> +
> + cache at 18000000 {
> + label = "cache";
> + reg = <0x18000000 0x8000000>;
> + };
> + };
Since you are also adding dma-engine support, I would suggest you specify
a "dmas" and "dma-names" property as well, so the device can find the
right dma channel. The code might not do that yet while you're still
sorting out the dependencies (and the sh dmaengine code is not yet
converted to DT), but I think it would be good to nail down the binding
for this device.
Arnd
More information about the linux-arm-kernel
mailing list