drivers: dma: Update drivers to use devicetree Kconfig symbol

Update DMA drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
diff --git a/drivers/dma/Kconfig.dma_pl330 b/drivers/dma/Kconfig.dma_pl330
index 4e51d8f..16a121d 100644
--- a/drivers/dma/Kconfig.dma_pl330
+++ b/drivers/dma/Kconfig.dma_pl330
@@ -4,5 +4,7 @@
 config DMA_PL330
 	bool
 	prompt "PL330 DMA driver"
+	default y
+	depends on DT_HAS_ARM_DMA_PL330_ENABLED
 	help
 	  This option enables support of pl330 DMA Controller.
diff --git a/drivers/dma/Kconfig.dw b/drivers/dma/Kconfig.dw
index 3246d67..cfdec37 100644
--- a/drivers/dma/Kconfig.dw
+++ b/drivers/dma/Kconfig.dw
@@ -5,6 +5,8 @@
 
 config DMA_DW
 	bool "DesignWare DMA driver"
+	default y
+	depends on DT_HAS_SNPS_DESIGNWARE_DMA_ENABLED
 	help
 	  DesignWare DMA driver.
 
diff --git a/drivers/dma/Kconfig.intel_adsp_gpdma b/drivers/dma/Kconfig.intel_adsp_gpdma
index a34ed1a..fabcbeb 100644
--- a/drivers/dma/Kconfig.intel_adsp_gpdma
+++ b/drivers/dma/Kconfig.intel_adsp_gpdma
@@ -5,6 +5,8 @@
 
 config DMA_INTEL_ADSP_GPDMA
 	bool "Intel ADSP General Purpose Direct Memory Access driver"
+	default y
+	depends on DT_HAS_INTEL_ADSP_GPDMA_ENABLED
 	help
 	  Intel ADSP DMA driver.
 
diff --git a/drivers/dma/Kconfig.intel_adsp_hda b/drivers/dma/Kconfig.intel_adsp_hda
index 69e140c..d219595 100644
--- a/drivers/dma/Kconfig.intel_adsp_hda
+++ b/drivers/dma/Kconfig.intel_adsp_hda
@@ -3,14 +3,10 @@
 # Copyright (c) 2022 Intel Corporation
 # SPDX-License-Identifier: Apache-2.0
 
-DT_COMPAT_INTEL_ADSP_HDA_HOST_IN := intel,adsp-hda-host-in
-DT_COMPAT_INTEL_ADSP_HDA_HOST_OUT := intel,adsp-hda-host-out
-DT_COMPAT_INTEL_ADSP_HDA_LINK_IN := intel,adsp-hda-link-in
-DT_COMPAT_INTEL_ADSP_HDA_LINK_OUT := intel,adsp-hda-link-out
-
 config DMA_INTEL_ADSP_HDA_HOST_IN
 	bool "Intel ADSP HDA Host In DMA drivers"
-	default $(dt_compat_enabled,$(DT_COMPAT_INTEL_ADSP_HDA_HOST_IN))
+	default y
+	depends on DT_HAS_INTEL_ADSP_HDA_HOST_IN_ENABLED
 	depends on DMA
 	select DMA_INTEL_ADSP_HDA
 	help
@@ -18,24 +14,24 @@
 
 config DMA_INTEL_ADSP_HDA_HOST_OUT
 	bool "Intel ADSP HDA Host Out DMA drivers"
-	default $(dt_compat_enabled,$(DT_COMPAT_INTEL_ADSP_HDA_HOST_OUT))
-	depends on DMA
+	default y
+	depends on DT_HAS_INTEL_ADSP_HDA_HOST_OUT_ENABLED
 	select DMA_INTEL_ADSP_HDA
 	help
 	  Intel ADSP Host HDA DMA driver.
 
 config DMA_INTEL_ADSP_HDA_LINK_IN
 	bool "Intel ADSP HDA Link In DMA drivers"
-	default $(dt_compat_enabled,$(DT_COMPAT_INTEL_ADSP_HDA_LINK_IN))
-	depends on DMA
+	default y
+	depends on DT_HAS_INTEL_ADSP_HDA_LINK_IN_ENABLED
 	select DMA_INTEL_ADSP_HDA
 	help
 	  Intel ADSP Link In HDA DMA driver.
 
 config DMA_INTEL_ADSP_HDA_LINK_OUT
 	bool "Intel ADSP HDA Link Out DMA drivers"
-	default $(dt_compat_enabled,$(DT_COMPAT_INTEL_ADSP_HDA_LINK_OUT))
-	depends on DMA
+	default y
+	depends on DT_HAS_INTEL_ADSP_HDA_LINK_OUT_ENABLED
 	select DMA_INTEL_ADSP_HDA
 	help
 	  Intel ADSP Link Out HDA DMA driver.
diff --git a/drivers/dma/Kconfig.iproc_pax b/drivers/dma/Kconfig.iproc_pax
index 11d0808..64a42a7 100644
--- a/drivers/dma/Kconfig.iproc_pax
+++ b/drivers/dma/Kconfig.iproc_pax
@@ -4,11 +4,15 @@
 config DMA_IPROC_PAX
 	bool
 	prompt "Broadcom PAX(PCIE<->AXI) DMA driver"
+	default y
+	depends on DT_HAS_BRCM_IPROC_PAX_DMA_V1_ENABLED
 	depends on PCIE_EP_IPROC
 
 config DMA_IPROC_PAX_V2
 	bool
 	prompt "Broadcom PAX(PCIE<->AXI) DMA driver version 2"
+	default y
+	depends on DT_HAS_BRCM_IPROC_PAX_DMA_V2_ENABLED
 	depends on PCIE_EP_IPROC_V2
 
 if DMA_IPROC_PAX || DMA_IPROC_PAX_V2
diff --git a/drivers/dma/Kconfig.mcux_edma b/drivers/dma/Kconfig.mcux_edma
index 7b17548..d4d44cb 100644
--- a/drivers/dma/Kconfig.mcux_edma
+++ b/drivers/dma/Kconfig.mcux_edma
@@ -5,7 +5,8 @@
 
 config DMA_MCUX_EDMA
 	bool "MCUX DMA driver"
-	depends on HAS_MCUX_EDMA
+	default y
+	depends on DT_HAS_NXP_MCUX_EDMA_ENABLED
 	imply NOCACHE_MEMORY if HAS_MCUX_CACHE
 	help
 	  DMA driver for MCUX series SoCs.
diff --git a/drivers/dma/Kconfig.mcux_lpc b/drivers/dma/Kconfig.mcux_lpc
index 19ac400..2d1253a 100644
--- a/drivers/dma/Kconfig.mcux_lpc
+++ b/drivers/dma/Kconfig.mcux_lpc
@@ -5,7 +5,8 @@
 
 config DMA_MCUX_LPC
 	bool "MCUX LPC DMAC driver"
-	depends on HAS_MCUX_LPC_DMA
+	default y
+	depends on DT_HAS_NXP_LPC_DMA_ENABLED
 	help
 	  DMA driver for MCUX LPC MCUs.
 
diff --git a/drivers/dma/Kconfig.nios2_msgdma b/drivers/dma/Kconfig.nios2_msgdma
index 7e1c62b..06ebe4e 100644
--- a/drivers/dma/Kconfig.nios2_msgdma
+++ b/drivers/dma/Kconfig.nios2_msgdma
@@ -5,6 +5,7 @@
 
 config DMA_NIOS2_MSGDMA
 	bool "Nios-II  Modular Scatter-Gather DMA(MSGDMA) driver"
-	depends on HAS_ALTERA_HAL
+	default y
+	depends on DT_HAS_ALTR_MSGDMA_ENABLED
 	help
 	  Enable Nios-II Modular Scatter-Gather DMA(MSGDMA) driver.
diff --git a/drivers/dma/Kconfig.sam0 b/drivers/dma/Kconfig.sam0
index bdeacce..4da2bba 100644
--- a/drivers/dma/Kconfig.sam0
+++ b/drivers/dma/Kconfig.sam0
@@ -6,6 +6,6 @@
 config DMA_SAM0
 	bool "Atmel SAM0 series DMAC driver"
 	default y
-	depends on SOC_FAMILY_SAM0
+	depends on DT_HAS_ATMEL_SAM0_DMAC_ENABLED
 	help
 	  DMA driver for Atmel SAM0 series MCUs.
diff --git a/drivers/dma/Kconfig.sam_xdmac b/drivers/dma/Kconfig.sam_xdmac
index 5a5a34d..e8b4464 100644
--- a/drivers/dma/Kconfig.sam_xdmac
+++ b/drivers/dma/Kconfig.sam_xdmac
@@ -5,6 +5,7 @@
 
 config DMA_SAM_XDMAC
 	bool "Atmel SAM DMA (XDMAC) driver"
-	depends on SOC_FAMILY_SAM
+	default y
+	depends on DT_HAS_ATMEL_SAM_XDMAC_ENABLED
 	help
 	  Enable Atmel SAM MCU Family Direct Memory Access (XDMAC) driver.