Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: at91: sama5d2: Add DMA bindings for the SPI and I2C flx0 functions

Spare boards of duplicating the DMA bindings. Describe the flx0
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-12-tudor.ambarus@microchip.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Tudor Ambarus and committed by
Alexandre Belloni
466fb89b 1a6508a2

+19 -1
+1
arch/arm/boot/dts/at91-sama5d2_icp.dts
··· 105 105 status = "okay"; 106 106 107 107 spi2: spi@400 { 108 + dmas = <0>, <0>; 108 109 cs-gpios = <&pioA PIN_PC0 GPIO_ACTIVE_LOW>; 109 110 pinctrl-names = "default"; 110 111 pinctrl-0 = <&pinctrl_mikrobus2_spi &pinctrl_ksz_spi_cs>;
-1
arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts
··· 192 192 193 193 i2c2: i2c@600 { 194 194 dmas = <0>, <0>; 195 - dma-names = "tx", "rx"; 196 195 pinctrl-names = "default", "gpio"; 197 196 pinctrl-0 = <&pinctrl_flx0_default>; 198 197 pinctrl-1 = <&pinctrl_flx0_gpio>;
+18
arch/arm/boot/dts/sama5d2.dtsi
··· 661 661 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>; 662 662 clocks = <&pmc PMC_TYPE_PERIPHERAL 19>; 663 663 clock-names = "spi_clk"; 664 + dmas = <&dma0 665 + (AT91_XDMAC_DT_MEM_IF(0) | 666 + AT91_XDMAC_DT_PER_IF(1) | 667 + AT91_XDMAC_DT_PERID(11))>, 668 + <&dma0 669 + (AT91_XDMAC_DT_MEM_IF(0) | 670 + AT91_XDMAC_DT_PER_IF(1) | 671 + AT91_XDMAC_DT_PERID(12))>; 672 + dma-names = "tx", "rx"; 664 673 atmel,fifo-size = <16>; 665 674 status = "disabled"; 666 675 }; ··· 681 672 #address-cells = <1>; 682 673 #size-cells = <0>; 683 674 clocks = <&pmc PMC_TYPE_PERIPHERAL 19>; 675 + dmas = <&dma0 676 + (AT91_XDMAC_DT_MEM_IF(0) | 677 + AT91_XDMAC_DT_PER_IF(1) | 678 + AT91_XDMAC_DT_PERID(11))>, 679 + <&dma0 680 + (AT91_XDMAC_DT_MEM_IF(0) | 681 + AT91_XDMAC_DT_PER_IF(1) | 682 + AT91_XDMAC_DT_PERID(12))>; 683 + dma-names = "tx", "rx"; 684 684 atmel,fifo-size = <16>; 685 685 status = "disabled"; 686 686 };