Skip to content

Commit 88f20c3

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

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

boards/arm/nucleo_l552ze_q/doc/nucleol552ze_q.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ The Zephyr nucleo_l552ze_q board configuration supports the following hardware f
156156
+-----------+------------+-------------------------------------+
157157
| RNG | on-chip | True Random Number Generator |
158158
+-----------+------------+-------------------------------------+
159+
| DAC | on-chip | DAC Controller |
160+
+-----------+------------+-------------------------------------+
159161

160162
Other hardware features are not yet supported on this Zephyr port.
161163

@@ -210,6 +212,7 @@ Default Zephyr Peripheral Mapping:
210212
- PWM_2_CH1 : PA0
211213
- USER_PB : PC13
212214
- LD2 : PA5
215+
- DAC1 : PA4
213216

214217
System Clock
215218
------------

boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@
6060
&rng {
6161
status = "okay";
6262
};
63+
64+
&dac1 {
65+
status = "okay";
66+
pinctrl-0 = <&dac1_out1_pa4>;
67+
};

boards/arm/nucleo_l552ze_q/nucleo_l552ze_q.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ toolchain:
77
- gnuarmemb
88
supported:
99
- gpio
10+
- dac
1011
ram: 192
1112
flash: 512

boards/arm/nucleo_l552ze_q/nucleo_l552ze_q_ns.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ toolchain:
77
- gnuarmemb
88
supported:
99
- gpio
10+
- dac
1011
ram: 192
1112
flash: 328

0 commit comments

Comments
 (0)