xref: /freebsd/sys/contrib/device-tree/Bindings/clock/apm,xgene-device-clock.yaml (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*833e5d42SEmmanuel Vadot%YAML 1.2
3*833e5d42SEmmanuel Vadot---
4*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/clock/apm,xgene-device-clock.yaml#
5*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*833e5d42SEmmanuel Vadot
7*833e5d42SEmmanuel Vadottitle: APM X-Gene SoC device clocks
8*833e5d42SEmmanuel Vadot
9*833e5d42SEmmanuel Vadotmaintainers:
10*833e5d42SEmmanuel Vadot  - Khuong Dinh <khuong@os.amperecomputing.com>
11*833e5d42SEmmanuel Vadot
12*833e5d42SEmmanuel Vadotproperties:
13*833e5d42SEmmanuel Vadot  compatible:
14*833e5d42SEmmanuel Vadot    const: apm,xgene-device-clock
15*833e5d42SEmmanuel Vadot
16*833e5d42SEmmanuel Vadot  reg:
17*833e5d42SEmmanuel Vadot    minItems: 1
18*833e5d42SEmmanuel Vadot    maxItems: 2
19*833e5d42SEmmanuel Vadot
20*833e5d42SEmmanuel Vadot  reg-names:
21*833e5d42SEmmanuel Vadot    items:
22*833e5d42SEmmanuel Vadot      - enum: [ csr-reg, div-reg ]
23*833e5d42SEmmanuel Vadot      - const: div-reg
24*833e5d42SEmmanuel Vadot    minItems: 1
25*833e5d42SEmmanuel Vadot
26*833e5d42SEmmanuel Vadot  clocks:
27*833e5d42SEmmanuel Vadot    maxItems: 1
28*833e5d42SEmmanuel Vadot
29*833e5d42SEmmanuel Vadot  "#clock-cells":
30*833e5d42SEmmanuel Vadot    const: 1
31*833e5d42SEmmanuel Vadot
32*833e5d42SEmmanuel Vadot  clock-output-names:
33*833e5d42SEmmanuel Vadot    maxItems: 1
34*833e5d42SEmmanuel Vadot
35*833e5d42SEmmanuel Vadot  clock-names:
36*833e5d42SEmmanuel Vadot    maxItems: 1
37*833e5d42SEmmanuel Vadot
38*833e5d42SEmmanuel Vadot  csr-offset:
39*833e5d42SEmmanuel Vadot    description: Offset to the CSR reset register
40*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
41*833e5d42SEmmanuel Vadot    default: 0
42*833e5d42SEmmanuel Vadot
43*833e5d42SEmmanuel Vadot  csr-mask:
44*833e5d42SEmmanuel Vadot    description: CSR reset mask bit
45*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
46*833e5d42SEmmanuel Vadot    default: 0xf
47*833e5d42SEmmanuel Vadot
48*833e5d42SEmmanuel Vadot  enable-offset:
49*833e5d42SEmmanuel Vadot    description: Offset to the enable register
50*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
51*833e5d42SEmmanuel Vadot    default: 8
52*833e5d42SEmmanuel Vadot
53*833e5d42SEmmanuel Vadot  enable-mask:
54*833e5d42SEmmanuel Vadot    description: CSR enable mask bit
55*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
56*833e5d42SEmmanuel Vadot    default: 0xf
57*833e5d42SEmmanuel Vadot
58*833e5d42SEmmanuel Vadot  divider-offset:
59*833e5d42SEmmanuel Vadot    description: Offset to the divider register
60*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
61*833e5d42SEmmanuel Vadot    default: 0
62*833e5d42SEmmanuel Vadot
63*833e5d42SEmmanuel Vadot  divider-width:
64*833e5d42SEmmanuel Vadot    description: Width of the divider register
65*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
66*833e5d42SEmmanuel Vadot    default: 0
67*833e5d42SEmmanuel Vadot
68*833e5d42SEmmanuel Vadot  divider-shift:
69*833e5d42SEmmanuel Vadot    description: Bit shift of the divider register
70*833e5d42SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
71*833e5d42SEmmanuel Vadot    default: 0
72*833e5d42SEmmanuel Vadot
73*833e5d42SEmmanuel Vadotrequired:
74*833e5d42SEmmanuel Vadot  - compatible
75*833e5d42SEmmanuel Vadot  - reg
76*833e5d42SEmmanuel Vadot  - clocks
77*833e5d42SEmmanuel Vadot  - '#clock-cells'
78*833e5d42SEmmanuel Vadot  - clock-output-names
79*833e5d42SEmmanuel Vadot
80*833e5d42SEmmanuel VadotadditionalProperties: false
81