drivers: dac: Adds DAC support for gd32vf103

Enable DAC driver with gd32vf103 SoC.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
TOKITA Hiroshi 2021-12-22 17:04:59 +09:00 committed by Carles Cufí
commit 3787e5aab3
2 changed files with 11 additions and 1 deletions

View file

@ -9,7 +9,7 @@ DT_COMPAT_GD_GD32_DAC := gd,gd32-dac
config DAC_GD32
bool "GD32 DAC driver"
depends on SOC_FAMILY_GD32
depends on (SOC_FAMILY_GD32 || SOC_SERIES_GD32VF103)
default $(dt_compat_enabled,$(DT_COMPAT_GD_GD32_DAC))
help
Enable GigaDevice GD32 DAC driver

View file

@ -95,6 +95,16 @@
label = "UART_2";
};
dac: dac@40007400 {
compatible = "gd,gd32-dac";
reg = <0x40007400 0x400>;
rcu-periph-clock = <0x71d>;
num-channels = <2>;
label = "DAC";
status = "disabled";
#io-channel-cells = <1>;
};
afio: afio@40010000 {
compatible = "gd,gd32-afio";
reg = <0x40010000 0x400>;