xref: /freebsd/sys/contrib/device-tree/Bindings/timer/nxp,sysctr-timer.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/timer/nxp,sysctr-timer.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: NXP System Counter Module(sys_ctr)
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Bai Ping <ping.bai@nxp.com>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  The system counter(sys_ctr) is a programmable system counter
14c66ec88fSEmmanuel Vadot  which provides a shared time base to Cortex A15, A7, A53, A73,
15c66ec88fSEmmanuel Vadot  etc. it is intended for use in applications where the counter
16c66ec88fSEmmanuel Vadot  is always powered and support multiple, unrelated clocks. The
17c66ec88fSEmmanuel Vadot  compare frame inside can be used for timer purpose.
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadotproperties:
20c66ec88fSEmmanuel Vadot  compatible:
21c66ec88fSEmmanuel Vadot    const: nxp,sysctr-timer
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot  reg:
24c66ec88fSEmmanuel Vadot    maxItems: 1
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot  interrupts:
27c66ec88fSEmmanuel Vadot    maxItems: 1
28c66ec88fSEmmanuel Vadot
29c66ec88fSEmmanuel Vadot  clocks:
30c66ec88fSEmmanuel Vadot    maxItems: 1
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot  clock-names:
33c66ec88fSEmmanuel Vadot    const: per
34c66ec88fSEmmanuel Vadot
35*7ef62cebSEmmanuel Vadot  nxp,no-divider:
36*7ef62cebSEmmanuel Vadot    description: if present, means there is no internal base clk divider.
37*7ef62cebSEmmanuel Vadot    type: boolean
38*7ef62cebSEmmanuel Vadot
39c66ec88fSEmmanuel Vadotrequired:
40c66ec88fSEmmanuel Vadot  - compatible
41c66ec88fSEmmanuel Vadot  - reg
42c66ec88fSEmmanuel Vadot  - interrupts
43c66ec88fSEmmanuel Vadot  - clocks
44c66ec88fSEmmanuel Vadot  - clock-names
45c66ec88fSEmmanuel Vadot
46c66ec88fSEmmanuel VadotadditionalProperties: false
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadotexamples:
49c66ec88fSEmmanuel Vadot  - |
50c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadot    timer@306a0000 {
53c66ec88fSEmmanuel Vadot        compatible = "nxp,sysctr-timer";
54c66ec88fSEmmanuel Vadot        reg = <0x306a0000 0x20000>;
55c66ec88fSEmmanuel Vadot        clocks = <&clk_8m>;
56c66ec88fSEmmanuel Vadot        clock-names = "per";
57c66ec88fSEmmanuel Vadot        interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
58c66ec88fSEmmanuel Vadot     };
59