diff mbox series

[v2,02/12] arm64: dts: imx93: add dma support for lpi2c[1..8]

Message ID 20240419-imx93-dts-4-13-v2-2-9076e1d7d399@nxp.com (mailing list archive)
State In Next, archived
Headers show
Series arm64: dts: imx93: various update | expand

Commit Message

Peng Fan (OSS) April 19, 2024, 3:36 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>

Add dma support for lpi2c[1..8].

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx93.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Frank Li April 19, 2024, 2:27 p.m. UTC | #1
On Fri, Apr 19, 2024 at 11:36:57AM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
> 
> Add dma support for lpi2c[1..8].
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Reviewed-by: Frank Li <Frank.Li@nxp.com>

> ---
>  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 42bbe491a29b..93c1d0fae291 100644
> --- a/arch/arm64/boot/dts/freescale/imx93.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
> @@ -317,6 +317,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 FSL_EDMA_RX>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -329,6 +331,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 FSL_EDMA_RX>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -693,6 +697,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 FSL_EDMA_RX>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -705,6 +711,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 FSL_EDMA_RX>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -882,6 +890,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 FSL_EDMA_RX>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -894,6 +904,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 FSL_EDMA_RX>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -906,6 +918,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 FSL_EDMA_RX>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> @@ -918,6 +932,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 FSL_EDMA_RX>;
> +				dma-names = "tx", "rx";
>  				status = "disabled";
>  			};
>  
> 
> -- 
> 2.37.1
>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi
index 42bbe491a29b..93c1d0fae291 100644
--- a/arch/arm64/boot/dts/freescale/imx93.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93.dtsi
@@ -317,6 +317,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 FSL_EDMA_RX>;
+				dma-names = "tx", "rx";
 				status = "disabled";
 			};
 
@@ -329,6 +331,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 FSL_EDMA_RX>;
+				dma-names = "tx", "rx";
 				status = "disabled";
 			};
 
@@ -693,6 +697,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 FSL_EDMA_RX>;
+				dma-names = "tx", "rx";
 				status = "disabled";
 			};
 
@@ -705,6 +711,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 FSL_EDMA_RX>;
+				dma-names = "tx", "rx";
 				status = "disabled";
 			};
 
@@ -882,6 +890,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 FSL_EDMA_RX>;
+				dma-names = "tx", "rx";
 				status = "disabled";
 			};
 
@@ -894,6 +904,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 FSL_EDMA_RX>;
+				dma-names = "tx", "rx";
 				status = "disabled";
 			};
 
@@ -906,6 +918,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 FSL_EDMA_RX>;
+				dma-names = "tx", "rx";
 				status = "disabled";
 			};
 
@@ -918,6 +932,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 FSL_EDMA_RX>;
+				dma-names = "tx", "rx";
 				status = "disabled";
 			};