0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/timer/nxp,sysctr-timer.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: NXP System Counter Module(sys_ctr)
0008
0009 maintainers:
0010 - Bai Ping <ping.bai@nxp.com>
0011
0012 description: |
0013 The system counter(sys_ctr) is a programmable system counter
0014 which provides a shared time base to Cortex A15, A7, A53, A73,
0015 etc. it is intended for use in applications where the counter
0016 is always powered and support multiple, unrelated clocks. The
0017 compare frame inside can be used for timer purpose.
0018
0019 properties:
0020 compatible:
0021 const: nxp,sysctr-timer
0022
0023 reg:
0024 maxItems: 1
0025
0026 interrupts:
0027 maxItems: 1
0028
0029 clocks:
0030 maxItems: 1
0031
0032 clock-names:
0033 const: per
0034
0035 required:
0036 - compatible
0037 - reg
0038 - interrupts
0039 - clocks
0040 - clock-names
0041
0042 additionalProperties: false
0043
0044 examples:
0045 - |
0046 #include <dt-bindings/interrupt-controller/arm-gic.h>
0047
0048 timer@306a0000 {
0049 compatible = "nxp,sysctr-timer";
0050 reg = <0x306a0000 0x20000>;
0051 clocks = <&clk_8m>;
0052 clock-names = "per";
0053 interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
0054 };