Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions boards/renesas/ek_ra2a1/ek_ra2a1-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
};
};

adc0_default: adc0_default {
group1 {
/* input */
psels = <RA_PSEL(RA_PSEL_ADC, 5, 0)>;
renesas,analog-enable;
};
};

dac0_default: dac0_default {
group1 {
/* output */
Expand Down
7 changes: 7 additions & 0 deletions boards/renesas/ek_ra2a1/ek_ra2a1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <renesas/ra/ra2/r7fa2a1ab3cfm.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/adc/adc.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>

#include "ek_ra2a1-pinctrl.dtsi"
Expand Down Expand Up @@ -119,6 +120,12 @@
status = "okay";
};

&adc0 {
status = "okay";
pinctrl-0 = <&adc0_default>;
pinctrl-names = "default";
};

&dac0 {
pinctrl-0 = <&dac0_default>;
pinctrl-names = "default";
Expand Down
11 changes: 11 additions & 0 deletions doc/releases/migration-guide-4.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ Device Drivers and Devicetree

.. zephyr-keep-sorted-start re(^\w)

ADC
===

* The :dtcompatible:`renesas,ra-adc` compatible has been replaced by
:dtcompatible:`renesas,ra-adc12`. Applications using the old compatible
must update their devicetree nodes.

* The :dtcompatible:`renesas,ra-adc16` compatible was added. This must be
used when working with the EK-RA2A1 board, which provides a 16-bit ADC
resolution.

MFD
===

Expand Down
2 changes: 1 addition & 1 deletion drivers/adc/Kconfig.renesas_ra
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
config ADC_RENESAS_RA
bool "Renesas RA ADC"
default y
depends on DT_HAS_RENESAS_RA_ADC_ENABLED
depends on DT_HAS_RENESAS_RA_ADC12_ENABLED || DT_HAS_RENESAS_RA_ADC16_ENABLED
select USE_RA_FSP_ADC
select PINCTRL
help
Expand Down
Loading