Back to home page

OSCL-LXR

 
 

    


0001 Spreadtrum SPI Controller
0002 
0003 Required properties:
0004 - compatible: Should be "sprd,sc9860-spi".
0005 - reg: Offset and length of SPI controller register space.
0006 - interrupts: Should contain SPI interrupt.
0007 - clock-names: Should contain following entries:
0008         "spi" for SPI clock,
0009         "source" for SPI source (parent) clock,
0010         "enable" for SPI module enable clock.
0011 - clocks: List of clock input name strings sorted in the same order
0012         as the clock-names property.
0013 - #address-cells: The number of cells required to define a chip select
0014         address on the SPI bus. Should be set to 1.
0015 - #size-cells: Should be set to 0.
0016 
0017 Optional properties:
0018 dma-names: Should contain names of the SPI used DMA channel.
0019 dmas: Should contain DMA channels and DMA slave ids which the SPI used
0020         sorted in the same order as the dma-names property.
0021 
0022 Example:
0023 spi0: spi@70a00000{
0024         compatible = "sprd,sc9860-spi";
0025         reg = <0 0x70a00000 0 0x1000>;
0026         interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
0027         clock-names = "spi", "source","enable";
0028         clocks = <&clk_spi0>, <&ext_26m>, <&clk_ap_apb_gates 5>;
0029         dma-names = "rx_chn", "tx_chn";
0030         dmas = <&apdma 11 11>, <&apdma 12 12>;
0031         #address-cells = <1>;
0032         #size-cells = <0>;
0033 };