Skip to content
153 changes: 111 additions & 42 deletions Documentation/devicetree/bindings/clock/apple,pmgr-clocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,59 +19,128 @@ description: |
Selectors are scoped by the referenced PMGR; a dual-die platform has
one provider per die.

select:
properties:
compatible:
contains:
enum:
- apple,t6000-pmgr-clocks
- apple,t6032-pmgr-clocks
- apple,t6041-pmgr-clocks
- apple,t8103-pmgr-clocks
- apple,t8132-pmgr-clocks
- apple,t8140-pmgr-clocks
required:
- compatible

properties:
compatible:
oneOf:
- items:
- enum:
- apple,t6041-pmgr-clocks
- apple,t8140-pmgr-clocks
- const: apple,pmgr-clocks
- items:
- const: apple,t8103-pmgr-clocks
- const: apple,pmgr-clocks
- items:
- const: apple,t6000-pmgr-clocks
- const: apple,pmgr-clocks

reg:
description: PMGR control apertures in hardware-description order.
minItems: 44
maxItems: 63

'#clock-cells':
const: 1
compatible: true

apple,pmgr:
$ref: /schemas/types.yaml#/definitions/phandle
description: Primary PMGR syscon. Additional control banks are described by reg.

required:
- reg
- compatible
- '#clock-cells'
- apple,pmgr
description: Shared hardware resource metadata.

allOf:
- if:
properties:
compatible:
contains:
const: apple,t6041-pmgr-clocks
enum:
- apple,t8132-pmgr-clocks
required:
- compatible
then:
properties:
reg:
minItems: 63
maxItems: 63
- if:
properties:
compatible:
contains:
const: apple,t8140-pmgr-clocks
then:
properties:
reg:
minItems: 44
maxItems: 44
items:
- const: apple,t8132-pmgr-clocks
- const: apple,pmgr-clocks

'#clock-cells':
const: 1

required:
- compatible
- '#clock-cells'
else:
allOf:
- if:
properties:
compatible:
contains:
enum:
- apple,t6032-pmgr-clocks
required:
- compatible
then:
properties:
compatible:
items:
- const: apple,t6032-pmgr-clocks
- const: apple,pmgr-clocks

'#clock-cells':
const: 1

required:
- compatible
- '#clock-cells'
else:
properties:
compatible:
oneOf:
- items:
- enum:
- apple,t6041-pmgr-clocks
- apple,t8140-pmgr-clocks
- const: apple,pmgr-clocks
- items:
- const: apple,t8103-pmgr-clocks
- const: apple,pmgr-clocks
- items:
- const: apple,t6000-pmgr-clocks
- const: apple,pmgr-clocks

reg:
description: PMGR control apertures in hardware-description order.
minItems: 44
maxItems: 63

'#clock-cells':
const: 1

apple,pmgr:
$ref: /schemas/types.yaml#/definitions/phandle
description: Primary PMGR syscon. Additional control banks are described by reg.

required:
- reg
- compatible
- '#clock-cells'
- apple,pmgr

allOf:
- if:
properties:
compatible:
contains:
const: apple,t6041-pmgr-clocks
then:
properties:
reg:
minItems: 63
maxItems: 63
- if:
properties:
compatible:
contains:
const: apple,t8140-pmgr-clocks
then:
properties:
reg:
minItems: 44
maxItems: 44

additionalProperties: false

additionalProperties: false
unevaluatedProperties: false
Loading
Loading