]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: dts: at91: sama5d2: Add DMA bindings for the flx3 SPI function
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 14 May 2020 05:03:12 +0000 (05:03 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 15 May 2020 14:50:33 +0000 (16:50 +0200)
Spare boards of duplicating the DMA bindings. Describe the flx3
DMA bindings in the SoC dtsi. Users that don't want to use DMA
for their flexcom functions have to overwrite the flexcom DMA
bindings in their board device tree.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20200514050301.147442-10-tudor.ambarus@microchip.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
arch/arm/boot/dts/at91-sama5d2_icp.dts
arch/arm/boot/dts/sama5d2.dtsi

index 6ad66d034305be315cfbbf3c3e93371322167be5..1aa8b79d618b54561623da14c69a30a776328de6 100644 (file)
                                };
 
                                spi5: spi@400 {
+                                       dmas = <0>, <0>;
                                        pinctrl-names = "default";
                                        pinctrl-0 = <&pinctrl_flx3_default>;
                                        status = "disabled"; /* Conflict with isc. */
index 4a01ab8e7e70418bafb50c06b9266879eda64ae7..559d8ae93af9a98a8a613f97645584108e1652b9 100644 (file)
        status = "okay";
 
        spi5: spi@400 {
+               dmas = <0>, <0>;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_mikrobus1_spi &pinctrl_mikrobus1_spi_cs>;
                status = "okay";
index 66aa8d6502d3212f1e516a7fe624bf9bfc3df641..5a0162915ae78606dc4bfe2fb342aa756547d7a3 100644 (file)
                                        interrupts = <22 IRQ_TYPE_LEVEL_HIGH 7>;
                                        clocks = <&pmc PMC_TYPE_PERIPHERAL 22>;
                                        clock-names = "spi_clk";
+                                       dmas = <&dma0
+                                               (AT91_XDMAC_DT_MEM_IF(0) |
+                                                AT91_XDMAC_DT_PER_IF(1) |
+                                                AT91_XDMAC_DT_PERID(17))>,
+                                              <&dma0
+                                               (AT91_XDMAC_DT_MEM_IF(0) |
+                                                AT91_XDMAC_DT_PER_IF(1) |
+                                                AT91_XDMAC_DT_PERID(18))>;
+                                       dma-names = "tx", "rx";
                                        atmel,fifo-size = <16>;
                                        status = "disabled";
                                };