162306a36Sopenharmony_ciMicrochip PIC32 SPI Master controller
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciRequired properties:
462306a36Sopenharmony_ci- compatible: Should be "microchip,pic32mzda-spi".
562306a36Sopenharmony_ci- reg: Address and length of register space for the device.
662306a36Sopenharmony_ci- interrupts: Should contain all three spi interrupts in sequence
762306a36Sopenharmony_ci              of <fault-irq>, <receive-irq>, <transmit-irq>.
862306a36Sopenharmony_ci- interrupt-names: Should be "fault", "rx", "tx" in order.
962306a36Sopenharmony_ci- clocks: Phandle of the clock generating SPI clock on the bus.
1062306a36Sopenharmony_ci- clock-names: Should be "mck0".
1162306a36Sopenharmony_ci- cs-gpios: Specifies the gpio pins to be used for chipselects.
1262306a36Sopenharmony_ci            See: Documentation/devicetree/bindings/spi/spi-bus.txt
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciOptional properties:
1562306a36Sopenharmony_ci- dmas: Two or more DMA channel specifiers following the convention outlined
1662306a36Sopenharmony_ci        in Documentation/devicetree/bindings/dma/dma.txt
1762306a36Sopenharmony_ci- dma-names: Names for the dma channels. There must be at least one channel
1862306a36Sopenharmony_ci             named "spi-tx" for transmit and named "spi-rx" for receive.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciExample:
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_cispi1: spi@1f821000 {
2362306a36Sopenharmony_ci        compatible = "microchip,pic32mzda-spi";
2462306a36Sopenharmony_ci        reg = <0x1f821000 0x200>;
2562306a36Sopenharmony_ci        interrupts = <109 IRQ_TYPE_LEVEL_HIGH>,
2662306a36Sopenharmony_ci                     <110 IRQ_TYPE_LEVEL_HIGH>,
2762306a36Sopenharmony_ci                     <111 IRQ_TYPE_LEVEL_HIGH>;
2862306a36Sopenharmony_ci        interrupt-names = "fault", "rx", "tx";
2962306a36Sopenharmony_ci        clocks = <&PBCLK2>;
3062306a36Sopenharmony_ci        clock-names = "mck0";
3162306a36Sopenharmony_ci        cs-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>;
3262306a36Sopenharmony_ci        dmas = <&dma 134>, <&dma 135>;
3362306a36Sopenharmony_ci        dma-names = "spi-rx", "spi-tx";
3462306a36Sopenharmony_ci};
35