Back to home page

OSCL-LXR

 
 

    


0001 Microchip PIC32 SPI Master controller
0002 
0003 Required properties:
0004 - compatible: Should be "microchip,pic32mzda-spi".
0005 - reg: Address and length of register space for the device.
0006 - interrupts: Should contain all three spi interrupts in sequence
0007               of <fault-irq>, <receive-irq>, <transmit-irq>.
0008 - interrupt-names: Should be "fault", "rx", "tx" in order.
0009 - clocks: Phandle of the clock generating SPI clock on the bus.
0010 - clock-names: Should be "mck0".
0011 - cs-gpios: Specifies the gpio pins to be used for chipselects.
0012             See: Documentation/devicetree/bindings/spi/spi-bus.txt
0013 
0014 Optional properties:
0015 - dmas: Two or more DMA channel specifiers following the convention outlined
0016         in Documentation/devicetree/bindings/dma/dma.txt
0017 - dma-names: Names for the dma channels. There must be at least one channel
0018              named "spi-tx" for transmit and named "spi-rx" for receive.
0019 
0020 Example:
0021 
0022 spi1: spi@1f821000 {
0023         compatible = "microchip,pic32mzda-spi";
0024         reg = <0x1f821000 0x200>;
0025         interrupts = <109 IRQ_TYPE_LEVEL_HIGH>,
0026                      <110 IRQ_TYPE_LEVEL_HIGH>,
0027                      <111 IRQ_TYPE_LEVEL_HIGH>;
0028         interrupt-names = "fault", "rx", "tx";
0029         clocks = <&PBCLK2>;
0030         clock-names = "mck0";
0031         cs-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>;
0032         dmas = <&dma 134>, <&dma 135>;
0033         dma-names = "spi-rx", "spi-tx";
0034 };