mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
e34d3865ee
This adds a complete DT binding for the arasan device driver. There is currently only one user, which is the spear13xx platform, so we don't actually have to parse all the properties until another user comes in, but this does use the generic DMA binding to find the DMA channel. The patch is untested so far and is part of a series to convert the spear platform over to use the generic DMA binding, so it should stay with the rest of the series. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Viresh Kumar <viresh.linux@linaro.org> Cc: Vinod Koul <vinod.koul@intel.com> Cc: Jeff Garzik <jgarzik@redhat.com> Cc: devicetree-discuss@lists.ozlabs.org
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
* ARASAN PATA COMPACT FLASH CONTROLLER
|
|
|
|
Required properties:
|
|
- compatible: "arasan,cf-spear1340"
|
|
- reg: Address range of the CF registers
|
|
- interrupt-parent: Should be the phandle for the interrupt controller
|
|
that services interrupts for this device
|
|
- interrupt: Should contain the CF interrupt number
|
|
- clock-frequency: Interface clock rate, in Hz, one of
|
|
25000000
|
|
33000000
|
|
40000000
|
|
50000000
|
|
66000000
|
|
75000000
|
|
100000000
|
|
125000000
|
|
150000000
|
|
166000000
|
|
200000000
|
|
|
|
Optional properties:
|
|
- arasan,broken-udma: if present, UDMA mode is unusable
|
|
- arasan,broken-mwdma: if present, MWDMA mode is unusable
|
|
- arasan,broken-pio: if present, PIO mode is unusable
|
|
- dmas: one DMA channel, as described in bindings/dma/dma.txt
|
|
required unless both UDMA and MWDMA mode are broken
|
|
- dma-names: the corresponding channel name, must be "data"
|
|
|
|
Example:
|
|
|
|
cf@fc000000 {
|
|
compatible = "arasan,cf-spear1340";
|
|
reg = <0xfc000000 0x1000>;
|
|
interrupt-parent = <&vic1>;
|
|
interrupts = <12>;
|
|
dmas = <&dma-controller 23>;
|
|
dma-names = "data";
|
|
};
|