Skip to content

Commit ec58d19

Browse files
sarthsmartnashif
authored andcommitted
boards: arm: stm32l562e_dk: Enabling DAC1 support in device tree
This commit enables DAC1 support for stm32l562e_dk platform in device tree. Signed-off-by: Sidhdharth Yadav <[email protected]>
1 parent dc75c61 commit ec58d19

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

boards/arm/stm32l562e_dk/doc/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ The Zephyr stm32l562e_dk board configuration supports the following hardware fea
172172
+-----------+------------+-------------------------------------+
173173
| PWM | on-chip | PWM |
174174
+-----------+------------+-------------------------------------+
175+
| DAC | on-chip | DAC Controller |
176+
+-----------+------------+-------------------------------------+
175177

176178
Other hardware features are not yet supported on this Zephyr port.
177179

@@ -196,6 +198,7 @@ Default Zephyr Peripheral Mapping:
196198
- USER_PB : PC13
197199
- LD10 : PG12
198200
- PWM_2_CH1 : PA0
201+
- DAC1 : PA4
199202

200203
System Clock
201204
------------

boards/arm/stm32l562e_dk/stm32l562e_dk.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ supported:
1212
- lptim
1313
- pwm
1414
- watchdog
15+
- dac
1516
ram: 192
1617
flash: 512

boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,8 @@
124124
pinctrl-0 = <&tim2_ch1_pa0>;
125125
};
126126
};
127+
128+
&dac1 {
129+
status = "okay";
130+
pinctrl-0 = <&dac1_out1_pa4>;
131+
};

boards/arm/stm32l562e_dk/stm32l562e_dk_ns.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ supported:
1010
- i2c
1111
- lsm6dso
1212
- lptim
13+
- dac
1314
ram: 192
1415
flash: 512

0 commit comments

Comments
 (0)