Skip to content

Commit

Permalink
dts: xtensa: nxp_imx8: add edma power domains
Browse files Browse the repository at this point in the history
Add power domains for EDMA0's channels 6, 7, 14, and 15.
For QM these are identified as IMX_SC_R_DMA_2_*, while
for QXP thy are identified as IMX_SC_R_DMA_0_*.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 committed Dec 2, 2024
1 parent 8e4aa37 commit 35cf1ee
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
58 changes: 58 additions & 0 deletions dts/xtensa/nxp/nxp_imx8.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,62 @@
nxp,resource-id = <IMX_SC_R_IRQSTR_DSP>;
#power-domain-cells = <0>;
};

edma0_ch6_pd: pd@1 {
compatible = "nxp,imx8qm-scu-pd", "nxp,scu-pd";
reg = <1>;
nxp,resource-id = <IMX_SC_R_DMA_0_CH6>;
#power-domain-cells = <0>;
};

edma0_ch7_pd: pd@2 {
compatible = "nxp,imx8qm-scu-pd", "nxp,scu-pd";
reg = <2>;
nxp,resource-id = <IMX_SC_R_DMA_0_CH7>;
#power-domain-cells = <0>;
};

edma0_ch14_pd: pd@3 {
compatible = "nxp,imx8qm-scu-pd", "nxp,scu-pd";
reg = <3>;
nxp,resource-id = <IMX_SC_R_DMA_0_CH14>;
#power-domain-cells = <0>;
};

edma0_ch15_pd: pd@4 {
compatible = "nxp,imx8qm-scu-pd", "nxp,scu-pd";
reg = <4>;
nxp,resource-id = <IMX_SC_R_DMA_0_CH15>;
#power-domain-cells = <0>;
};

edma2_ch6_pd: pd@5 {
compatible = "nxp,imx8qm-scu-pd", "nxp,scu-pd";
reg = <5>;
nxp,resource-id = <IMX_SC_R_DMA_2_CH6>;
#power-domain-cells = <0>;
};

edma2_ch7_pd: pd@6 {
compatible = "nxp,imx8qm-scu-pd", "nxp,scu-pd";
reg = <6>;
nxp,resource-id = <IMX_SC_R_DMA_2_CH7>;
#power-domain-cells = <0>;
};

edma2_ch14_pd: pd@7 {
compatible = "nxp,imx8qm-scu-pd", "nxp,scu-pd";
reg = <7>;
nxp,resource-id = <IMX_SC_R_DMA_2_CH14>;
#power-domain-cells = <0>;
};

edma2_ch15_pd: pd@8 {
compatible = "nxp,imx8qm-scu-pd", "nxp,scu-pd";
reg = <8>;
nxp,resource-id = <IMX_SC_R_DMA_2_CH15>;
#power-domain-cells = <0>;
};
};
};

Expand All @@ -74,6 +130,8 @@
compatible = "nxp,edma";
reg = <0x591f0000 (DT_SIZE_K(64) * 33)>;
valid-channels = <6>, <7>, <14>, <15>;
power-domains = <&edma0_ch6_pd>, <&edma0_ch7_pd>,
<&edma0_ch14_pd>, <&edma0_ch15_pd>;
interrupts-extended = <&master6 58>, <&master6 58>,
<&master5 29>, <&master5 29>;
#dma-cells = <2>;
Expand Down
5 changes: 5 additions & 0 deletions dts/xtensa/nxp/nxp_imx8qm.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@
};
};
};

&edma0 {
power-domains = <&edma2_ch6_pd>, <&edma2_ch7_pd>,
<&edma2_ch14_pd>, <&edma2_ch15_pd>;
};

0 comments on commit 35cf1ee

Please sign in to comment.