From 21c5c0957410d92bf7743ed6d273d1a389b7ef8c Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Fri, 15 Nov 2024 19:45:06 +0100 Subject: [PATCH] drivers: rtc: sam: Add platform on API test coverage The #81456 fixed the driver issue related to issue #81454. This add the RTC configurations on sam_v71_xult board to enable test coverage. Fixes #81454 Signed-off-by: Gerson Fernando Budke (cherry picked from commit cffb66f5c6862854a0f53657742077bd4ba32de0) --- boards/atmel/sam/sam_v71_xult/sam_v71_xult-common.dtsi | 7 ++++++- boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21.yaml | 1 + boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21b.yaml | 1 + .../drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21.conf | 3 +++ .../rtc/rtc_api/boards/sam_v71_xult_samv71q21b.conf | 3 +++ 5 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tests/drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21.conf create mode 100644 tests/drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21b.conf diff --git a/boards/atmel/sam/sam_v71_xult/sam_v71_xult-common.dtsi b/boards/atmel/sam/sam_v71_xult/sam_v71_xult-common.dtsi index f6981455b51224..d5500da2bfc970 100644 --- a/boards/atmel/sam/sam_v71_xult/sam_v71_xult-common.dtsi +++ b/boards/atmel/sam/sam_v71_xult/sam_v71_xult-common.dtsi @@ -2,7 +2,7 @@ * Copyright (c) 2017 Piotr Mienkowski * Copyright (c) 2017 Justin Watson * Copyright (c) 2020 Stephanos Ioannidis - * Copyright (c) 2019-2022 Gerson Fernando Budke + * Copyright (c) 2019-2024 Gerson Fernando Budke * * SPDX-License-Identifier: Apache-2.0 */ @@ -17,6 +17,7 @@ led0 = &yellow_led1; pwm-led0 = &pwm_led0; pwm-0 = &pwm0; + rtc = &rtc; sw0 = &sw0_user_button; sw1 = &sw1_user_button; watchdog0 = &wdt; @@ -336,6 +337,10 @@ zephyr_udc0: &usbhs { }; }; +&rtc { + status = "okay"; +}; + ext1_spi: &spi0 { }; diff --git a/boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21.yaml b/boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21.yaml index 450c0e54ead85a..271565dac24435 100644 --- a/boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21.yaml +++ b/boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21.yaml @@ -22,6 +22,7 @@ supported: - i2s - pwm - netif:eth + - rtc - spi - usb_device - watchdog diff --git a/boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21b.yaml b/boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21b.yaml index b1490e426deabf..732d1de39e693b 100644 --- a/boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21b.yaml +++ b/boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21b.yaml @@ -22,6 +22,7 @@ supported: - i2s - pwm - netif:eth + - rtc - spi - usb_device - watchdog diff --git a/tests/drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21.conf b/tests/drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21.conf new file mode 100644 index 00000000000000..10768b5fc1280c --- /dev/null +++ b/tests/drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21.conf @@ -0,0 +1,3 @@ +CONFIG_RTC_ALARM=y +CONFIG_RTC_UPDATE=y +CONFIG_RTC_CALIBRATION=y diff --git a/tests/drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21b.conf b/tests/drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21b.conf new file mode 100644 index 00000000000000..10768b5fc1280c --- /dev/null +++ b/tests/drivers/rtc/rtc_api/boards/sam_v71_xult_samv71q21b.conf @@ -0,0 +1,3 @@ +CONFIG_RTC_ALARM=y +CONFIG_RTC_UPDATE=y +CONFIG_RTC_CALIBRATION=y