Re: [PATCH 01/11] arm64: dts: imx93: add dma support for lpi2c[1..8]

From: Frank Li
Date: Tue Apr 16 2024 - 11:36:40 EST


On Tue, Apr 16, 2024 at 11:26:37PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@xxxxxxx>
>
> Add dma support for lpi2c[1..8].
>
> Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
> ---
> arch/arm64/boot/dts/freescale/imx93.dtsi | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
> index b8ef9b938856..5c08e8787989 100644
> --- a/arch/arm64/boot/dts/freescale/imx93.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi

#include <dt-bindings/dma/fsl-edma.h>

> @@ -316,6 +316,8 @@ lpi2c1: i2c@44340000 {
> clocks = <&clk IMX93_CLK_LPI2C1_GATE>,
> <&clk IMX93_CLK_BUS_AON>;
> clock-names = "per", "ipg";
> + dmas = <&edma1 7 0 0>, <&edma1 8 0 1>;

1: should be FSL_EDMA_RX

Frank

> + dma-names = "tx", "rx";
> status = "disabled";
> };
>
> @@ -328,6 +330,8 @@ lpi2c2: i2c@44350000 {
> clocks = <&clk IMX93_CLK_LPI2C2_GATE>,
> <&clk IMX93_CLK_BUS_AON>;
> clock-names = "per", "ipg";
> + dmas = <&edma1 9 0 0>, <&edma1 10 0 1>;
> + dma-names = "tx", "rx";
> status = "disabled";
> };
>
> @@ -692,6 +696,8 @@ lpi2c3: i2c@42530000 {
> clocks = <&clk IMX93_CLK_LPI2C3_GATE>,
> <&clk IMX93_CLK_BUS_WAKEUP>;
> clock-names = "per", "ipg";
> + dmas = <&edma2 8 0 0>, <&edma2 9 0 1>;
> + dma-names = "tx", "rx";
> status = "disabled";
> };
>
> @@ -704,6 +710,8 @@ lpi2c4: i2c@42540000 {
> clocks = <&clk IMX93_CLK_LPI2C4_GATE>,
> <&clk IMX93_CLK_BUS_WAKEUP>;
> clock-names = "per", "ipg";
> + dmas = <&edma2 10 0 0>, <&edma2 11 0 1>;
> + dma-names = "tx", "rx";
> status = "disabled";
> };
>
> @@ -881,6 +889,8 @@ lpi2c5: i2c@426b0000 {
> clocks = <&clk IMX93_CLK_LPI2C5_GATE>,
> <&clk IMX93_CLK_BUS_WAKEUP>;
> clock-names = "per", "ipg";
> + dmas = <&edma2 71 0 0>, <&edma2 72 0 1>;
> + dma-names = "tx", "rx";
> status = "disabled";
> };
>
> @@ -893,6 +903,8 @@ lpi2c6: i2c@426c0000 {
> clocks = <&clk IMX93_CLK_LPI2C6_GATE>,
> <&clk IMX93_CLK_BUS_WAKEUP>;
> clock-names = "per", "ipg";
> + dmas = <&edma2 73 0 0>, <&edma2 74 0 1>;
> + dma-names = "tx", "rx";
> status = "disabled";
> };
>
> @@ -905,6 +917,8 @@ lpi2c7: i2c@426d0000 {
> clocks = <&clk IMX93_CLK_LPI2C7_GATE>,
> <&clk IMX93_CLK_BUS_WAKEUP>;
> clock-names = "per", "ipg";
> + dmas = <&edma2 75 0 0>, <&edma2 76 0 1>;
> + dma-names = "tx", "rx";
> status = "disabled";
> };
>
> @@ -917,6 +931,8 @@ lpi2c8: i2c@426e0000 {
> clocks = <&clk IMX93_CLK_LPI2C8_GATE>,
> <&clk IMX93_CLK_BUS_WAKEUP>;
> clock-names = "per", "ipg";
> + dmas = <&edma2 77 0 0>, <&edma2 78 0 1>;
> + dma-names = "tx", "rx";
> status = "disabled";
> };
>
>
> --
> 2.37.1
>