boards: arm: stm32l562e_dk: Enabling ADC support in device tree
This commit enables ADC support in stm32l562e_dk platform in device tree. Signed-off-by: Sidhdharth Yadav <sidhdharth.yadav@hcl.com>
This commit is contained in:
parent
d5d3be5f83
commit
c691b50420
3 changed files with 9 additions and 0 deletions
|
@ -174,6 +174,8 @@ The Zephyr stm32l562e_dk board configuration supports the following hardware fea
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
| DAC | on-chip | DAC Controller |
|
| DAC | on-chip | DAC Controller |
|
||||||
+-----------+------------+-------------------------------------+
|
+-----------+------------+-------------------------------------+
|
||||||
|
| ADC | on-chip | ADC Controller |
|
||||||
|
+-----------+------------+-------------------------------------+
|
||||||
|
|
||||||
Other hardware features are not yet supported on this Zephyr port.
|
Other hardware features are not yet supported on this Zephyr port.
|
||||||
|
|
||||||
|
@ -199,6 +201,7 @@ Default Zephyr Peripheral Mapping:
|
||||||
- LD10 : PG12
|
- LD10 : PG12
|
||||||
- PWM_2_CH1 : PA0
|
- PWM_2_CH1 : PA0
|
||||||
- DAC1 : PA4
|
- DAC1 : PA4
|
||||||
|
- ADC1 : PC4
|
||||||
|
|
||||||
System Clock
|
System Clock
|
||||||
------------
|
------------
|
||||||
|
|
|
@ -13,5 +13,6 @@ supported:
|
||||||
- pwm
|
- pwm
|
||||||
- watchdog
|
- watchdog
|
||||||
- dac
|
- dac
|
||||||
|
- adc
|
||||||
ram: 192
|
ram: 192
|
||||||
flash: 512
|
flash: 512
|
||||||
|
|
|
@ -129,3 +129,8 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-0 = <&dac1_out1_pa4>;
|
pinctrl-0 = <&dac1_out1_pa4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&adc1 {
|
||||||
|
pinctrl-0 = <&adc1_in13_pc4>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue