xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/clock/imx6q-clock.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/clock/imx6q-clock.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: Clock bindings for Freescale i.MX6 Quad
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunmaintainers:
10*4882a593Smuzhiyun  - Anson Huang <Anson.Huang@nxp.com>
11*4882a593Smuzhiyun
12*4882a593Smuzhiyunproperties:
13*4882a593Smuzhiyun  compatible:
14*4882a593Smuzhiyun    const: fsl,imx6q-ccm
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun  reg:
17*4882a593Smuzhiyun    maxItems: 1
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun  interrupts:
20*4882a593Smuzhiyun    description: CCM provides 2 interrupt requests, request 1 is to generate
21*4882a593Smuzhiyun      interrupt for frequency or mux change, request 2 is to generate
22*4882a593Smuzhiyun      interrupt for oscillator read or PLL lock.
23*4882a593Smuzhiyun    items:
24*4882a593Smuzhiyun      - description: CCM interrupt request 1
25*4882a593Smuzhiyun      - description: CCM interrupt request 2
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun  '#clock-cells':
28*4882a593Smuzhiyun    const: 1
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun  clocks:
31*4882a593Smuzhiyun    items:
32*4882a593Smuzhiyun      - description: 24m osc
33*4882a593Smuzhiyun      - description: 32k osc
34*4882a593Smuzhiyun      - description: ckih1 clock input
35*4882a593Smuzhiyun      - description: anaclk1 clock input
36*4882a593Smuzhiyun      - description: anaclk2 clock input
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun  clock-names:
39*4882a593Smuzhiyun    items:
40*4882a593Smuzhiyun      - const: osc
41*4882a593Smuzhiyun      - const: ckil
42*4882a593Smuzhiyun      - const: ckih1
43*4882a593Smuzhiyun      - const: anaclk1
44*4882a593Smuzhiyun      - const: anaclk2
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun  fsl,pmic-stby-poweroff:
47*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/flag
48*4882a593Smuzhiyun    description: |
49*4882a593Smuzhiyun      Use this property if the SoC should be powered off by external power
50*4882a593Smuzhiyun      management IC (PMIC) triggered via PMIC_STBY_REQ signal.
51*4882a593Smuzhiyun      Boards that are designed to initiate poweroff on PMIC_ON_REQ signal should
52*4882a593Smuzhiyun      be using "syscon-poweroff" driver instead.
53*4882a593Smuzhiyun
54*4882a593Smuzhiyunrequired:
55*4882a593Smuzhiyun  - compatible
56*4882a593Smuzhiyun  - reg
57*4882a593Smuzhiyun  - interrupts
58*4882a593Smuzhiyun  - '#clock-cells'
59*4882a593Smuzhiyun
60*4882a593SmuzhiyunadditionalProperties: false
61*4882a593Smuzhiyun
62*4882a593Smuzhiyunexamples:
63*4882a593Smuzhiyun  # Clock Control Module node:
64*4882a593Smuzhiyun  - |
65*4882a593Smuzhiyun    #include <dt-bindings/interrupt-controller/arm-gic.h>
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun    clock-controller@20c4000 {
68*4882a593Smuzhiyun        compatible = "fsl,imx6q-ccm";
69*4882a593Smuzhiyun        reg = <0x020c4000 0x4000>;
70*4882a593Smuzhiyun        interrupts = <0 87 IRQ_TYPE_LEVEL_HIGH>,
71*4882a593Smuzhiyun                     <0 88 IRQ_TYPE_LEVEL_HIGH>;
72*4882a593Smuzhiyun        #clock-cells = <1>;
73*4882a593Smuzhiyun    };
74