zephyr/dts/bindings/rtc/nordic,nrf-rtc.yaml
Krzysztof Chruscinski 656b0e6426 drivers: counter: Adapt to use device tree
Modifying counter drivers (rtc and timer) to rely completely on
device tree and not on Kconfig of MDK flags.

Adapting dtsi for all SoCs and adapting test configuration.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
2023-03-20 16:59:40 +01:00

40 lines
1.1 KiB
YAML

# Copyright (c) 2018 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
description: Nordic nRF RTC (Real-Time Counter)
compatible: "nordic,nrf-rtc"
include: rtc.yaml
properties:
reg:
required: true
cc-num:
type: int
required: true
description: |
Number of compare (CC) registers available.
On nRF53 these registers can also be used for capture.
# If enabled, overflow different than full range (24 bits) is handled
# through PPI channel which ensures precise timing. If disabled then
# counter is cleared in the interrupt which results in accumulative error
# of counter period if top value is different than maximal.
ppi-wrap:
type: boolean
description: Enable wrapping with PPI
# If enabled then counter based on nRF RTC peripheral supports only maximal
# top value. That results in code optimizations and availability of one more
# channel
fixed-top:
type: boolean
description: Enable fixed top value
zli:
type: boolean
description: Enable event handler in the ZLI (Zero latency interrupt) context