boards: gd323103_eval: add dac support.

add dac support.

Signed-off-by: YuLong Yao <feilongphone@gmail.com>
This commit is contained in:
YuLong Yao
2022-02-27 16:06:19 +08:00
committed by Carles Cufí
parent b5e26c678f
commit 86f460cd30
3 changed files with 25 additions and 0 deletions

View File

@@ -18,6 +18,12 @@
};
};
dac_default: dac_default {
group1 {
pinmux = <DAC_OUT0_PA4>;
};
};
i2c0_default: i2c0_default {
group1 {
pinmux = <I2C0_SCL_PB6_NORMP>, <I2C0_SDA_PB7_NORMP>;

View File

@@ -126,3 +126,9 @@
timeout = <5>;
};
};
&dac {
status = "okay";
pinctrl-0 = <&dac_default>;
pinctrl-names = "default";
};

View File

@@ -0,0 +1,13 @@
/*
* Copyright 2021 BrainCo Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
zephyr,user {
dac = <&dac>;
dac-channel-id = <0>;
dac-resolution = <12>;
};
};