1*c66ec88fSEmmanuel VadotSpreadtrum SPI Controller 2*c66ec88fSEmmanuel Vadot 3*c66ec88fSEmmanuel VadotRequired properties: 4*c66ec88fSEmmanuel Vadot- compatible: Should be "sprd,sc9860-spi". 5*c66ec88fSEmmanuel Vadot- reg: Offset and length of SPI controller register space. 6*c66ec88fSEmmanuel Vadot- interrupts: Should contain SPI interrupt. 7*c66ec88fSEmmanuel Vadot- clock-names: Should contain following entries: 8*c66ec88fSEmmanuel Vadot "spi" for SPI clock, 9*c66ec88fSEmmanuel Vadot "source" for SPI source (parent) clock, 10*c66ec88fSEmmanuel Vadot "enable" for SPI module enable clock. 11*c66ec88fSEmmanuel Vadot- clocks: List of clock input name strings sorted in the same order 12*c66ec88fSEmmanuel Vadot as the clock-names property. 13*c66ec88fSEmmanuel Vadot- #address-cells: The number of cells required to define a chip select 14*c66ec88fSEmmanuel Vadot address on the SPI bus. Should be set to 1. 15*c66ec88fSEmmanuel Vadot- #size-cells: Should be set to 0. 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel VadotOptional properties: 18*c66ec88fSEmmanuel Vadotdma-names: Should contain names of the SPI used DMA channel. 19*c66ec88fSEmmanuel Vadotdmas: Should contain DMA channels and DMA slave ids which the SPI used 20*c66ec88fSEmmanuel Vadot sorted in the same order as the dma-names property. 21*c66ec88fSEmmanuel Vadot 22*c66ec88fSEmmanuel VadotExample: 23*c66ec88fSEmmanuel Vadotspi0: spi@70a00000{ 24*c66ec88fSEmmanuel Vadot compatible = "sprd,sc9860-spi"; 25*c66ec88fSEmmanuel Vadot reg = <0 0x70a00000 0 0x1000>; 26*c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 27*c66ec88fSEmmanuel Vadot clock-names = "spi", "source","enable"; 28*c66ec88fSEmmanuel Vadot clocks = <&clk_spi0>, <&ext_26m>, <&clk_ap_apb_gates 5>; 29*c66ec88fSEmmanuel Vadot dma-names = "rx_chn", "tx_chn"; 30*c66ec88fSEmmanuel Vadot dmas = <&apdma 11 11>, <&apdma 12 12>; 31*c66ec88fSEmmanuel Vadot #address-cells = <1>; 32*c66ec88fSEmmanuel Vadot #size-cells = <0>; 33*c66ec88fSEmmanuel Vadot}; 34