Skip to content

Commit

Permalink
tests: drivers: adc: Support RA8, RA6, RA4 to test accuracy and api
Browse files Browse the repository at this point in the history
Add overlay to support test adc_accuracy_test and adc_api in boards:
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 <[email protected]>
  • Loading branch information
khoa-nguyen-18 committed Nov 29, 2024
1 parent e6221f4 commit f3bdecf
Show file tree
Hide file tree
Showing 29 changed files with 1,006 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra4e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra4m2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra4m3.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra4w1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 4>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@4 {
reg = <4>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra6e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra6m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra6m2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra6m3.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra6m4.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra6m5.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/ek_ra8d1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/fpb_ra6e1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_accuracy_test/boards/fpb_ra6e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>;
reference_mv = <3300>;
expected_accuracy = <32>;
};
};

&adc0{
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,vref-mv = <3300>;
};
};
Loading

0 comments on commit f3bdecf

Please sign in to comment.