ARM: dts: at91: sama5d2: Add DMA bindings for the flx1 I2C function
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 14 May 2020 05:03:13 +0000 (05:03 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 15 May 2020 14:50:34 +0000 (16:50 +0200)
Spare boards of duplicating the DMA bindings. Describe the flx1
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-11-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/sama5d2.dtsi

index 1aa8b79d618b54561623da14c69a30a776328de6..0e159f879c15e662c346d327b7c25fa0df534399 100644 (file)
 
                                i2c3: i2c@600 {
                                        dmas = <0>, <0>;
-                                       dma-names = "tx", "rx";
                                        i2c-analog-filter;
                                        i2c-digital-filter;
                                        i2c-digital-filter-width-ns = <35>;
index 5a0162915ae78606dc4bfe2fb342aa756547d7a3..855846c74a32b82219d514305149748b4af6343e 100644 (file)
                                        #address-cells = <1>;
                                        #size-cells = <0>;
                                        clocks = <&pmc PMC_TYPE_PERIPHERAL 20>;
+                                       dmas = <&dma0
+                                               (AT91_XDMAC_DT_MEM_IF(0) |
+                                                AT91_XDMAC_DT_PER_IF(1) |
+                                                AT91_XDMAC_DT_PERID(13))>,
+                                              <&dma0
+                                               (AT91_XDMAC_DT_MEM_IF(0) |
+                                                AT91_XDMAC_DT_PER_IF(1) |
+                                                AT91_XDMAC_DT_PERID(14))>;
+                                       dma-names = "tx", "rx";
                                        atmel,fifo-size = <16>;
                                        status = "disabled";
                                };