1# 2# Copyright (c) 2022, Andes Technology Corporation. 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7description: | 8 This is a representation of the Andes Technology atcpit100 PIT node 9 10compatible: "andestech,atcpit100" 11 12include: base.yaml 13 14properties: 15 reg: 16 required: true 17 18 interrupts: 19 required: true 20 21 clock-frequency: 22 type: int 23 required: true 24 description: channel clock source 25 26 prescaler: 27 type: int 28 default: 1 29 description: | 30 The prescaler value defines the counter frequency 31 (clock-frequency/prescaler) in atcpit100 counter driver, the prescaler 32 value could be in range [1 .. clock-frequency] and 1 means no prescaler 33 for the PIT clock-frequency. 34 35 Defaults to 1 to use the PIT clock-frequency as the counter frequency. 36 37 Setting the prescaler value if the system overhead is close to or 38 larger than a counter tick period, reducing the counter frequency to 39 avoid imprecise counter value. 40 41 For example, andes_v5_ae350 platform takes about 200 ~ 300 PIT 42 clock cycles for counter interface, setting prescaler value to 600 in 43 this case. 44