xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/fsl,ls-ftm-alarm.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
10e8011faSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
20e8011faSEmmanuel Vadot%YAML 1.2
30e8011faSEmmanuel Vadot---
40e8011faSEmmanuel Vadot$id: http://devicetree.org/schemas/rtc/fsl,ls-ftm-alarm.yaml#
50e8011faSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
60e8011faSEmmanuel Vadot
70e8011faSEmmanuel Vadottitle: Freescale FlexTimer Module (FTM) Alarm
80e8011faSEmmanuel Vadot
90e8011faSEmmanuel Vadotmaintainers:
100e8011faSEmmanuel Vadot  - Frank Li <Frank.Li@nxp.com>
110e8011faSEmmanuel Vadot
120e8011faSEmmanuel Vadotproperties:
130e8011faSEmmanuel Vadot  compatible:
140e8011faSEmmanuel Vadot    enum:
150e8011faSEmmanuel Vadot      - fsl,ls1012a-ftm-alarm
160e8011faSEmmanuel Vadot      - fsl,ls1021a-ftm-alarm
170e8011faSEmmanuel Vadot      - fsl,ls1028a-ftm-alarm
180e8011faSEmmanuel Vadot      - fsl,ls1043a-ftm-alarm
190e8011faSEmmanuel Vadot      - fsl,ls1046a-ftm-alarm
200e8011faSEmmanuel Vadot      - fsl,ls1088a-ftm-alarm
210e8011faSEmmanuel Vadot      - fsl,ls208xa-ftm-alarm
220e8011faSEmmanuel Vadot      - fsl,lx2160a-ftm-alarm
230e8011faSEmmanuel Vadot
240e8011faSEmmanuel Vadot  reg:
250e8011faSEmmanuel Vadot    maxItems: 1
260e8011faSEmmanuel Vadot
270e8011faSEmmanuel Vadot  interrupts:
280e8011faSEmmanuel Vadot    maxItems: 1
290e8011faSEmmanuel Vadot
300e8011faSEmmanuel Vadot  fsl,rcpm-wakeup:
310e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
320e8011faSEmmanuel Vadot    items:
330e8011faSEmmanuel Vadot      - items:
340e8011faSEmmanuel Vadot          - description: phandle to rcpm node
350e8011faSEmmanuel Vadot          - description: bit mask of IPPDEXPCR0
360e8011faSEmmanuel Vadot          - description: bit mask of IPPDEXPCR1
370e8011faSEmmanuel Vadot          - description: bit mask of IPPDEXPCR2
380e8011faSEmmanuel Vadot          - description: bit mask of IPPDEXPCR3
390e8011faSEmmanuel Vadot          - description: bit mask of IPPDEXPCR4
400e8011faSEmmanuel Vadot          - description: bit mask of IPPDEXPCR5
410e8011faSEmmanuel Vadot          - description: bit mask of IPPDEXPCR6
420e8011faSEmmanuel Vadot        minItems: 1
430e8011faSEmmanuel Vadot    description:
440e8011faSEmmanuel Vadot      phandle to rcpm node, Please refer
45*b2d2a78aSEmmanuel Vadot      Documentation/devicetree/bindings/soc/fsl/fsl,rcpm.yaml
460e8011faSEmmanuel Vadot
470e8011faSEmmanuel Vadot  big-endian:
480e8011faSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
490e8011faSEmmanuel Vadot    description:
500e8011faSEmmanuel Vadot      If the host controller is big-endian mode, specify this property.
510e8011faSEmmanuel Vadot      The default endian mode is little-endian.
520e8011faSEmmanuel Vadot
530e8011faSEmmanuel Vadotrequired:
540e8011faSEmmanuel Vadot  - compatible
550e8011faSEmmanuel Vadot  - reg
560e8011faSEmmanuel Vadot  - interrupts
570e8011faSEmmanuel Vadot  - fsl,rcpm-wakeup
580e8011faSEmmanuel Vadot
590e8011faSEmmanuel VadotallOf:
600e8011faSEmmanuel Vadot  - $ref: rtc.yaml#
610e8011faSEmmanuel Vadot
620e8011faSEmmanuel VadotunevaluatedProperties: false
630e8011faSEmmanuel Vadot
640e8011faSEmmanuel Vadotexamples:
650e8011faSEmmanuel Vadot  - |
660e8011faSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
670e8011faSEmmanuel Vadot
680e8011faSEmmanuel Vadot    rtc@2800000 {
690e8011faSEmmanuel Vadot        compatible = "fsl,ls1088a-ftm-alarm";
700e8011faSEmmanuel Vadot        reg = <0x2800000 0x10000>;
710e8011faSEmmanuel Vadot        fsl,rcpm-wakeup = <&rcpm 0x0 0x0 0x0 0x0 0x4000 0x0>;
720e8011faSEmmanuel Vadot        interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
730e8011faSEmmanuel Vadot    };
74