microchip,spi-pic32.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. Microchip PIC32 SPI Master controller
  2. Required properties:
  3. - compatible: Should be "microchip,pic32mzda-spi".
  4. - reg: Address and length of register space for the device.
  5. - interrupts: Should contain all three spi interrupts in sequence
  6. of <fault-irq>, <receive-irq>, <transmit-irq>.
  7. - interrupt-names: Should be "fault", "rx", "tx" in order.
  8. - clocks: Phandle of the clock generating SPI clock on the bus.
  9. - clock-names: Should be "mck0".
  10. - cs-gpios: Specifies the gpio pins to be used for chipselects.
  11. See: Documentation/devicetree/bindings/spi/spi-bus.txt
  12. Optional properties:
  13. - dmas: Two or more DMA channel specifiers following the convention outlined
  14. in Documentation/devicetree/bindings/dma/dma.txt
  15. - dma-names: Names for the dma channels. There must be at least one channel
  16. named "spi-tx" for transmit and named "spi-rx" for receive.
  17. Example:
  18. spi1: spi@1f821000 {
  19. compatible = "microchip,pic32mzda-spi";
  20. reg = <0x1f821000 0x200>;
  21. interrupts = <109 IRQ_TYPE_LEVEL_HIGH>,
  22. <110 IRQ_TYPE_LEVEL_HIGH>,
  23. <111 IRQ_TYPE_LEVEL_HIGH>;
  24. interrupt-names = "fault", "rx", "tx";
  25. clocks = <&PBCLK2>;
  26. clock-names = "mck0";
  27. cs-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>;
  28. dmas = <&dma 134>, <&dma 135>;
  29. dma-names = "spi-rx", "spi-tx";
  30. };