A successful date read in Linux shows that an RTC interface works. To qualify RX8901CE event capture, the production image must also retrieve the original timestamp from a known event input.
Make two acceptance items. First, the host can read the calendar from the intended real-time clock (RTC). Second, after a designated external event input (EVIN) triggers, the application can retrieve the corresponding record, time, and source. Qualify both with the delivered software and hardware options. A passing calendar read cannot sign off the second item. Conversely, a bench utility that retrieves one record does not establish a reliable interface for the shipping application.
Distinguish three different kinds of time
The Epson RX8901CE has a built-in 32.768 kHz timebase. Its timestamp function can be triggered by external inputs, designated status events, or a host command. The public brief lists a maximum of 32 records and a fractional time field down to 1/1024 second. Check the exact ordering option and operating mode before assigning channel capacity. “Up to 32” does not mean every input arrangement and mode has the same capacity. The brief lists two EVIN inputs for option A and three for option B. It also lists different capacities for direct-mode recording from external events.
A device can expose the host's current time, the selected RTC's current calendar, and the time of an earlier event captured by that RTC. If software wakes a second late and stores the time at which it reads the clock, it embeds that second of delay in the event. This may be enough to note that something happened, but sequence analysis, correlation with a field trace, or recording across host restarts calls for a defined event time. The host time at interrupt delivery is not a substitute.
A generic Linux calendar operation such as RTC_RD_TIME reads the RTC calendar. A success response does not establish access to the device-specific event registers, source decoding, or an application interface for those fields. The same numbered RTC node may point to a different clock after an image update. First establish that the calendar read came from the RX8901CE on the board, then assess whether software can retrieve its timestamps.
Tie driver evidence to the delivered image
Record the production kernel version and source commit, board support package (BSP) version, device tree actually loaded and hardware revision. Check the running device-tree node and compatible string. Verify that the relevant driver code is enabled in the delivered image and that the device instance actually binds to it. A kernel major version or a statement that the board supports Linux does not distinguish demonstration, delivery and update images. For supplier or in-house extensions, document which layer implements the feature and which version the delivery depends on.
Test device identity, calendar operations and event retrieval separately. Do not infer the model from /dev/rtc0. Identify its actual bus instance, address and driver, then read the clock through the interface the application will use. Check whether the event interface returns time, source, and any validity information the application needs. For an intermediate service, test with final permissions and service configuration. A node available to an engineering account may not be available to the production service.
A driver proposal on a mailing list does not establish that the code shipped in a particular release. Bind any statement about kernel support to a specific version or commit, rather than to a patch title or the successful binding of a related part. If an event interface cannot be located, record it as unverified in the delivery image and obtain the driver source, interface description, and test evidence. A later BSP can then be checked against the same acceptance criteria.
Inject two events and deliberately read late
Suppose an independent reference records an input at EVIN1 at 12:00:05.125 and at EVIN2 at 12:00:05.375. Deliberately defer application retrieval until 12:00:06.375. A correct result, within the project error allowance, preserves both original times and their mapped sources, separated by 0.250 second. It must not record both as 12:00:06.375. That would be 1.250 seconds and 1.000 second late, respectively, exposing software that substitutes retrieval time for event time. This is an illustrative test, not measured device accuracy.
Align the RTC and an independent reference to a common time basis. Capture the actual trigger edge, not when a button was pressed or a thread was scheduled. Allow for triggering conditions, RTC error, timestamp resolution, and reference uncertainty. The 1/1024 second increment is about 0.977 milliseconds. It describes field resolution, not end-to-end accuracy, and does not guarantee an arbitrarily short pulse will be captured. If the application cannot distinguish sources, accurate times alone do not satisfy a project that needs event attribution.
After delayed retrieval passes, separately test host suspension, restart, or return from backup power as the application requires. Record which functions remained active and when the software could read records after recovery. Detection in backup mode does not imply that the same host path can immediately read records while in that mode. Follow the approved power-transition and recovery procedure instead of carrying over a passing test made under normal power. Include a window with no external input, to catch software reporting an alarm, a pre-existing record, or a host-generated event as a new EVIN event.
Put the checks on one acceptance sheet
| Acceptance item | Evidence to retain | Passing result |
|---|---|---|
| Device and wiring | Full ordering code, EVIN mapping, and board revision | The part provides the required inputs |
| System identity | Image ID, kernel commit, actual device tree and driver binding | The check identifies this RX8901CE, not another RTC |
| Independent calendar test | Calendar result and test reference | The intended RTC reads correctly under the stated conditions |
| Hardware event retrieval | Trigger trace, source, original time, and application export | Delayed reads preserve order and identity |
If multiple tools or services use the bus, assign ownership of calendar setting, event reads, and clearing or acknowledging records. A debug tool can change behavior on the bench. Reproduce conditions with approved methods, then test the production service on its own. Procurement can confirm the physical option and board requirements, while software engineering supplies the interface and regression tests. Both sets of evidence are needed to claim event recording as a delivered feature.
Frequently asked questions
Does an interrupt prove that the application can read a timestamp?
No. An interrupt notifies the host, and the same output may serve other conditions. Check which record the delivered interface returns, its source and its time fields. Deliberately read late and verify that the fields still describe the original event. An interrupt-arrival log is not substitute evidence.
If calendar reads still pass after a BSP update, should we repeat the event test?
Yes. An update can change device binding, extension interfaces, permissions, or initialization. Repeat at least two known triggers and retain the new image ID, original times, and application export. If the project depends on a backup state or host restart, repeat that test under the relevant conditions rather than reusing an older image's result.
