Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions Documentation/devicetree/bindings/clock/apple,pmgr-clocks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/apple,pmgr-clocks.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple PMGR peripheral clock selectors

maintainers:
- Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>

description: |
Peripheral input clocks managed by the SoC power manager. The clock
specifier is the SoC clock selector from the hardware description. It is
separate from a PMGR device/power-gate ID. Rates may change with performance
state and must not be represented as fixed clocks sampled at one boot.
The provider remains disabled until a generation-specific clock driver
can resolve selectors and coordinate ownership with firmware.

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

properties:
compatible: true

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:
items:
- enum:
- apple,t6041-pmgr-clocks
- apple,t8140-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

unevaluatedProperties: false
113 changes: 75 additions & 38 deletions Documentation/devicetree/bindings/crypto/apple,aes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ select:
- apple,t8122-aes
- apple,t6030-aes
- apple,t6031-aes
- apple,t6032-aes
required:
- compatible

Expand All @@ -35,19 +36,14 @@ allOf:
compatible:
contains:
enum:
- apple,t8122-aes
- apple,t6030-aes
- apple,t6031-aes
- apple,t6032-aes
required:
- compatible
then:
properties:
compatible:
items:
- enum:
- apple,t8122-aes
- apple,t6030-aes
- apple,t6031-aes
- const: apple,t6032-aes
- const: apple,aes

reg:
Expand All @@ -69,37 +65,78 @@ allOf:
- interrupts
- power-domains
- iommus

else:
properties:
compatible:
oneOf:
- items:
- const: apple,t6041-aes
- const: apple,aes
- items:
- const: apple,t8140-aes
- const: apple,aes

reg:
minItems: 3
maxItems: 3
description: Register apertures in hardware-description order.

interrupts:
maxItems: 1

power-domains:
maxItems: 1

iommus:
maxItems: 1

required:
- compatible
- reg
- interrupts
- power-domains
- iommus
allOf:
- if:
properties:
compatible:
contains:
enum:
- apple,t8122-aes
- apple,t6030-aes
- apple,t6031-aes
required:
- compatible
then:
properties:
compatible:
items:
- enum:
- apple,t8122-aes
- apple,t6030-aes
- apple,t6031-aes
- const: apple,aes

reg:
minItems: 2
maxItems: 2

interrupts:
maxItems: 1

power-domains:
maxItems: 1

iommus:
maxItems: 1

required:
- compatible
- reg
- interrupts
- power-domains
- iommus

else:
properties:
compatible:
oneOf:
- items:
- const: apple,t6041-aes
- const: apple,aes
- items:
- const: apple,t8140-aes
- const: apple,aes

reg:
minItems: 3
maxItems: 3
description: Register apertures in hardware-description order.

interrupts:
maxItems: 1

power-domains:
maxItems: 1

iommus:
maxItems: 1

required:
- compatible
- reg
- interrupts
- power-domains
- iommus

unevaluatedProperties: false
75 changes: 75 additions & 0 deletions Documentation/devicetree/bindings/display/apple,dpin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/display/apple,dpin.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Apple DisplayPort tunnel ingress

maintainers:
- Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>

description: |
DisplayPort ingress registers and interrupt for a USB4 display tunnel.

select:
properties:
compatible:
contains:
enum:
- apple,t6041-dpin
- apple,t6032-dpin
required:
- compatible

properties:
compatible: true

allOf:
- if:
properties:
compatible:
contains:
enum:
- apple,t6032-dpin
required:
- compatible
then:
properties:
compatible:
items:
- const: apple,t6032-dpin
- const: apple,dpin

reg:
maxItems: 1

interrupts:
maxItems: 1

required:
- compatible
- reg
- interrupts

else:
properties:
compatible:
oneOf:
- items:
- const: apple,t6041-dpin
- const: apple,dpin

reg:
maxItems: 1
description: Register apertures in hardware-description order.

interrupts:
maxItems: 1

required:
- compatible
- reg
- interrupts

unevaluatedProperties: false
Loading