boards: twr_ke18f: enable DAC

Enable the DAC on the NXP TWR-KE18F development board.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2020-02-16 14:02:53 +01:00 committed by Maureen Helm
commit 1a73e603b4
4 changed files with 11 additions and 0 deletions

View file

@ -84,6 +84,8 @@ features:
+-----------+------------+-------------------------------------+
| PWM | on-chip | pwm |
+-----------+------------+-------------------------------------+
| DAC | on-chip | dac |
+-----------+------------+-------------------------------------+
The default configuration can be found in the defconfig file:
``boards/arm/twr_ke18f/twr_ke18f_defconfig``.

View file

@ -144,6 +144,10 @@ static int twr_ke18f_pinmux_init(struct device *dev)
pinmux_pin_set(portc, 14, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
#endif
#if DT_HAS_NODE(DT_NODELABEL(dac0))
pinmux_pin_set(porte, 9, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
#endif
return 0;
}

View file

@ -195,6 +195,10 @@
status = "okay";
};
&dac0 {
status = "okay";
};
&adc0 {
status = "okay";
sample-time = <12>;

View file

@ -12,6 +12,7 @@ supported:
- adc
- can
- counter
- dac
- i2c
- pwm
- spi