boards: renesas: Add ADC support for Renesas RA8, RA6, RA4
Add ADC support for EK-RA8D1, MCK-RA8T1, EK-RA6M1, EK-RA6M2, EK-RA6M3, EK-RA6M4, EK-RA6M5, EK-RA6E2, FPB-RA6E1, FPB-RA6E2, EK-RA4M2, EK-RA4M3, EK-RA4E2, EK-RA4W1 Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
This commit is contained in:
parent
4db0c07b8c
commit
c26c87e958
42 changed files with 239 additions and 2 deletions
|
|
@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA4E2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| SPI | on-chip | spi |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -30,4 +30,12 @@
|
|||
drive-strength = "high";
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra4/r7fa4e2b93cfm.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
#include "ek_ra4e2-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
|
|
@ -111,3 +112,9 @@
|
|||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| COUNTER | on-chip | counter |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -21,4 +21,12 @@
|
|||
<RA_PSEL(RA_PSEL_SPI, 3, 0)>;
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra4/r7fa4m2ad3cfp.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
#include "ek_ra4m2-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
|
|
@ -78,3 +79,9 @@
|
|||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M3 board:
|
|||
+-----------+------------+----------------------+
|
||||
| COUNTER | on-chip | counter |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -21,4 +21,12 @@
|
|||
<RA_PSEL(RA_PSEL_SPI, 7, 3)>;
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra4/r7fa4m3af3cfb.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
#include "ek_ra4m3-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
|
|
@ -78,3 +79,9 @@
|
|||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -96,6 +96,8 @@ The below features are currently supported on Zephyr OS for EK-RA4W1 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ENTROPY | on-chip | entropy |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -21,4 +21,12 @@
|
|||
<RA_PSEL(RA_PSEL_SPI, 1, 12)>;
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 4)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra4/r7fa4w1ad2cng.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
#include "ek_ra4w1-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
|
|
@ -70,3 +71,9 @@
|
|||
&trng {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA6E2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| SPI | on-chip | spi |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -30,4 +30,12 @@
|
|||
drive-strength = "high";
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra6/r7fa6e2bb3cfm.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
|
||||
#include "ek_ra6e2-pinctrl.dtsi"
|
||||
|
||||
|
|
@ -126,3 +127,9 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M1 board:
|
|||
+-----------+------------+----------------------+
|
||||
| COUNTER | on-chip | counter |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -30,4 +30,12 @@
|
|||
<RA_PSEL(RA_PSEL_SPI, 4, 13)>;
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra6/r7fa6m1ad3cfp.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
|
||||
#include "ek_ra6m1-pinctrl.dtsi"
|
||||
|
||||
|
|
@ -87,3 +88,9 @@
|
|||
&trng {
|
||||
status ="okay";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -94,6 +94,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| COUNTER | on-chip | counter |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -30,4 +30,12 @@
|
|||
<RA_PSEL(RA_PSEL_SPI, 4, 13)>;
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra6/r7fa6m2af3cfb.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
|
||||
#include "ek_ra6m2-pinctrl.dtsi"
|
||||
|
||||
|
|
@ -87,3 +88,9 @@
|
|||
&trng {
|
||||
status ="okay";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M3 board:
|
|||
+-----------+------------+----------------------+
|
||||
| USBHS | on-chip | udc |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -37,4 +37,12 @@
|
|||
drive-strength = "high";
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra6/r7fa6m3ah3cfc.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
|
||||
#include "ek_ra6m3-pinctrl.dtsi"
|
||||
|
||||
|
|
@ -113,3 +114,9 @@
|
|||
&usbhs_phy {
|
||||
phys-clock-src = "xtal";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -107,6 +107,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M4 board:
|
|||
+-----------+------------+----------------------+
|
||||
| COUNTER | on-chip | counter |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -30,4 +30,12 @@
|
|||
<RA_PSEL(RA_PSEL_SPI, 2, 5)>;
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra6/r7fa6m4af3cfb.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
|
||||
#include "ek_ra6m4-pinctrl.dtsi"
|
||||
|
||||
|
|
@ -96,3 +97,9 @@
|
|||
div = <2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -107,6 +107,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M5 board:
|
|||
+-----------+------------+----------------------+
|
||||
| USBHS | on-chip | udc |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -37,4 +37,12 @@
|
|||
drive-strength = "high";
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra6/r7fa6m5bh3cfc.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
|
||||
#include "ek_ra6m5-pinctrl.dtsi"
|
||||
|
||||
|
|
@ -104,3 +105,9 @@
|
|||
&usbhs_phy {
|
||||
phys-clock-src = "xtal";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -116,6 +116,8 @@ The below features are currently supported on Zephyr OS for EK-RA8D1 board:
|
|||
+--------------+------------+------------------+
|
||||
| ETHERNET | on-chip | ethernet |
|
||||
+--------------+------------+------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+--------------+------------+------------------+
|
||||
|
||||
**Note:** for using Ethernet on RA8D1 board please set switch SW1 as following configuration:
|
||||
|
||||
|
|
|
|||
|
|
@ -77,4 +77,12 @@
|
|||
drive-strength = "high";
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 4)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra8/r7fa8d1bhecbd.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
#include "ek_ra8d1-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
|
|
@ -192,3 +192,9 @@
|
|||
&usbhs_phy {
|
||||
phys-clock-src = "xtal";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -89,6 +89,8 @@ The below features are currently supported on Zephyr OS for FPB-RA6E1 board:
|
|||
+-----------+------------+----------------------+
|
||||
| COUNTER | on-chip | counter |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -30,4 +30,12 @@
|
|||
<RA_PSEL(RA_PSEL_SPI, 4, 13)>;
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra6/r7fa6e10f2cfp.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
|
||||
#include "fpb_ra6e1-pinctrl.dtsi"
|
||||
|
||||
|
|
@ -97,3 +98,9 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -87,6 +87,8 @@ The below features are currently supported on Zephyr OS for FPB-RA6E2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| SPI | on-chip | spi |
|
||||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -21,4 +21,12 @@
|
|||
<RA_PSEL(RA_PSEL_SPI, 3, 1)>;
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 0)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra6/r7fa6e2bb3cfm.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
|
||||
#include "fpb_ra6e2-pinctrl.dtsi"
|
||||
|
||||
|
|
@ -87,3 +88,9 @@
|
|||
mul = <10 0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -112,6 +112,8 @@ The below features are currently supported on Zephyr OS for MCB-RA8T1 board:
|
|||
+--------------+------------+----------------------+
|
||||
| ETHERNET | on-chip | ethernet |
|
||||
+--------------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+--------------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -70,4 +70,12 @@
|
|||
drive-strength = "high";
|
||||
};
|
||||
};
|
||||
|
||||
adc0_default: adc0_default {
|
||||
group1 {
|
||||
/* input */
|
||||
psels = <RA_PSEL(RA_PSEL_ADC, 0, 4)>;
|
||||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
#include <renesas/ra/ra8/r7fa8t1ahecbd.dtsi>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
#include <zephyr/dt-bindings/adc/adc.h>
|
||||
#include "mck_ra8t1-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
|
|
@ -171,3 +171,10 @@
|
|||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&adc0_default>;
|
||||
pinctrl-names = "default";
|
||||
average-count = <4>;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue