Skip to content

Commit 1ae6e61

Browse files
djiatsaf-stcarlescufi
authored andcommitted
boards: st: add dac node in dts file and update docs
-enable dac in nucleo_u031r8, stm32u083c_dk and nucleo_u083rc - add dac as new supported interface in docs - update yaml files Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent e33e997 commit 1ae6e61

File tree

9 files changed

+32
-0
lines changed

9 files changed

+32
-0
lines changed

boards/st/nucleo_u031r8/doc/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ The Zephyr _nucleo_u031r8_ board configuration supports the following hardware f
140140
+-----------+------------+-------------------------------------+
141141
| NVIC | on-chip | nested vector interrupt controller |
142142
+-----------+------------+-------------------------------------+
143+
| DAC | on-chip | DAC Controller |
144+
+-----------+------------+-------------------------------------+
143145
| I2C | on-chip | i2c |
144146
+-----------+------------+-------------------------------------+
145147

@@ -160,6 +162,7 @@ For more details please refer to `STM32U031 User Manual`_.
160162
Default Zephyr Peripheral Mapping:
161163
----------------------------------
162164

165+
- DAC1_OUT1 : PA4
163166
- LD1 : PA5
164167
- UART_1_TX : PA9
165168
- UART_1_RX : PA10

boards/st/nucleo_u031r8/nucleo_u031r8.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@
8282
apb1-prescaler = <1>;
8383
};
8484

85+
&dac1 {
86+
status = "okay";
87+
pinctrl-0 = <&dac1_out1_pa4>;
88+
pinctrl-names = "default";
89+
};
90+
8591
&i2c1 {
8692
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
8793
pinctrl-names = "default";

boards/st/nucleo_u031r8/nucleo_u031r8.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ toolchain:
66
- zephyr
77
supported:
88
- arduino_gpio
9+
- dac
910
- gpio
1011
- i2c
1112
- usart

boards/st/nucleo_u083rc/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ The Zephyr nucleo_u083rc board configuration supports the following hardware fea
146146
| UART | on-chip | serial port-polling; |
147147
| | | serial port-interrupt |
148148
+-----------+------------+-------------------------------------+
149+
| DAC | on-chip | DAC Controller |
150+
+-----------+------------+-------------------------------------+
149151
| I2C | on-chip | i2c |
150152
+-----------+------------+-------------------------------------+
151153

boards/st/nucleo_u083rc/nucleo_u083rc.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@
8282
apb1-prescaler = <1>;
8383
};
8484

85+
&dac1 {
86+
status = "okay";
87+
pinctrl-0 = <&dac1_out1_pa4>;
88+
pinctrl-names = "default";
89+
};
90+
8591
&i2c1 {
8692
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
8793
pinctrl-names = "default";

boards/st/nucleo_u083rc/nucleo_u083rc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ toolchain:
77
- gnuarmemb
88
- xtools
99
supported:
10+
- arduino_gpio
11+
- dac
1012
- gpio
1113
- i2c
14+
- usart
1215
ram: 40
1316
flash: 256

boards/st/stm32u083c_dk/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ The Zephyr stm32u083c_dk board configuration supports the following hardware fea
159159
| UART | on-chip | serial port-polling; |
160160
| | | serial port-interrupt |
161161
+-----------+------------+-------------------------------------+
162+
| DAC | on-chip | DAC Controller |
163+
+-----------+------------+-------------------------------------+
162164
| I2C | on-chip | i2c |
163165
+-----------+------------+-------------------------------------+
164166

boards/st/stm32u083c_dk/stm32u083c_dk.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@
7272
apb1-prescaler = <1>;
7373
};
7474

75+
&dac1 {
76+
status = "okay";
77+
pinctrl-0 = <&dac1_out1_pa4>;
78+
pinctrl-names = "default";
79+
};
80+
7581
&i2c1 {
7682
pinctrl-0 = <&i2c1_scl_pa9 &i2c1_sda_pa10>;
7783
pinctrl-names = "default";

boards/st/stm32u083c_dk/stm32u083c_dk.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ toolchain:
77
- gnuarmemb
88
- xtools
99
supported:
10+
- arduino_gpio
11+
- dac
1012
- gpio
1113
- i2c
14+
- usart
1215
ram: 40
1316
flash: 256

0 commit comments

Comments
 (0)