tests/drivers/rtc: Add unit tests for RTC devices
This test suite adds tests for the following: - Setting and getting time - Validating time is incrementing correctly - Validating behavior of alarms with callback disabled - Validating behavior of alarms with callback enabled - Validating update callback The test suite uses the devicetree alias rtc to find the device to test. Signed-off-by: Bjarki Arge Andreasen <baa@trackunit.com>
This commit is contained in:
parent
b557a1d711
commit
ac697d153d
14 changed files with 687 additions and 0 deletions
13
dts/bindings/rtc/rtc-device.yaml
Normal file
13
dts/bindings/rtc/rtc-device.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Copyright (c) 2022 Bjarki Arge Andreasen
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
include: base.yaml
|
||||
|
||||
description: RTC device common bindings
|
||||
|
||||
properties:
|
||||
alarms-count:
|
||||
type: int
|
||||
required: true
|
||||
description: |
|
||||
Number of alarms supported by RTC device
|
Loading…
Add table
Add a link
Reference in a new issue