1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2e67e8565SEmmanuel Vadot%YAML 1.2
3e67e8565SEmmanuel Vadot---
4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/brcm,brcmstb-waketimer.yaml#
5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6e67e8565SEmmanuel Vadot
7e67e8565SEmmanuel Vadottitle: Broadcom STB wake-up Timer
8e67e8565SEmmanuel Vadot
9e67e8565SEmmanuel Vadotmaintainers:
10e67e8565SEmmanuel Vadot  - Florian Fainelli <f.fainelli@gmail.com>
11e67e8565SEmmanuel Vadot
12e67e8565SEmmanuel Vadotdescription:
13e67e8565SEmmanuel Vadot  The Broadcom STB wake-up timer provides a 27Mhz resolution timer, with the
14cb7aa33aSEmmanuel Vadot  ability to wake up the system from low-power suspend/standby modes and
15cb7aa33aSEmmanuel Vadot  optionally generate RTC alarm interrupts.
16e67e8565SEmmanuel Vadot
17e67e8565SEmmanuel VadotallOf:
18*fac71e4eSEmmanuel Vadot  - $ref: rtc.yaml#
19e67e8565SEmmanuel Vadot
20e67e8565SEmmanuel Vadotproperties:
21e67e8565SEmmanuel Vadot  compatible:
22e67e8565SEmmanuel Vadot    const: brcm,brcmstb-waketimer
23e67e8565SEmmanuel Vadot
24e67e8565SEmmanuel Vadot  reg:
25e67e8565SEmmanuel Vadot    maxItems: 1
26e67e8565SEmmanuel Vadot
27e67e8565SEmmanuel Vadot  interrupts:
28cb7aa33aSEmmanuel Vadot    minItems: 1
29cb7aa33aSEmmanuel Vadot    items:
30cb7aa33aSEmmanuel Vadot      - description: the TIMER interrupt
31cb7aa33aSEmmanuel Vadot      - description: the ALARM interrupt
32cb7aa33aSEmmanuel Vadot    description:
33cb7aa33aSEmmanuel Vadot      The TIMER interrupt wakes the system from low-power suspend/standby modes.
34cb7aa33aSEmmanuel Vadot      An ALARM interrupt may be specified to interrupt the CPU when an RTC alarm
35cb7aa33aSEmmanuel Vadot      is enabled.
36e67e8565SEmmanuel Vadot
37e67e8565SEmmanuel Vadot  clocks:
38e67e8565SEmmanuel Vadot    description: clock reference in the 27MHz domain
39e67e8565SEmmanuel Vadot    maxItems: 1
40e67e8565SEmmanuel Vadot
41e67e8565SEmmanuel VadotadditionalProperties: false
42e67e8565SEmmanuel Vadot
43e67e8565SEmmanuel Vadotexamples:
44e67e8565SEmmanuel Vadot  - |
45cb7aa33aSEmmanuel Vadot    rtc@f041a080 {
46e67e8565SEmmanuel Vadot        compatible = "brcm,brcmstb-waketimer";
47cb7aa33aSEmmanuel Vadot        reg = <0xf041a080 0x14>;
48cb7aa33aSEmmanuel Vadot        interrupts-extended = <&aon_pm_l2_intc 0x04>,
49cb7aa33aSEmmanuel Vadot                              <&upg_aux_aon_intr2_intc 0x08>;
50e67e8565SEmmanuel Vadot        clocks = <&upg_fixed>;
51e67e8565SEmmanuel Vadot    };
52