Skip to content
Merged
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
12 changes: 12 additions & 0 deletions Documentation/admin-guide/media/apple-ave.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ those nodes. A probe with a valid handoff reports the verified CRCs without
starting the coprocessor. An unknown layout refuses stream start before
allocating session buffers or acquiring runtime power.

T8122 (M3) with the macOS 27.2 firmware (TEXT 0x134000, DATA 0x128000, TEXT
CRC ``918d70d3``) encodes H.264 and HEVC: the firmware boots on the boot
configuration handshake as device 17 with handshake type 17 and speaks the
26B123 command layout, while the coprocessor registers and their start are the
T8112 ones. The rest of the M3 generation (T6030, T6031 and both dies of T6032)
is probe-only. Its encoders have the T8112 register windows, interrupt order and
power states, but their firmware builds have not been seen yet, so no build
size is pinned: any
loader-verified handoff binds, the probe logs both segment sizes and CRCs,
and the coprocessor is never started. The nodes stay disabled until the
loader hands their firmware over.

Command sizes, offsets, descriptor groups, constants, Process subtype and
buffer sizes are selected by the verified TEXT CRC, independently of the
SoC match data. ``69c54454`` and ``68d5f9f6`` select the 9003.78.0 layout and
Expand Down
249 changes: 104 additions & 145 deletions Documentation/devicetree/bindings/media/apple,t8140-ave.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,168 +82,127 @@ allOf:
- power-domains
- iommus
else:
properties:
compatible:
oneOf:
- enum:
- apple,t6000-ave
- apple,t6041-ave
- apple,t6050-ave
- apple,t8112-ave
- apple,t8140-ave
- apple,t8142-ave
- items:
- enum:
- apple,t6020-ave
- apple,t6021-ave
- apple,t6022-ave
- apple,t6030-ave
- apple,t6031-ave
- apple,t6032-ave
- apple,t8103-ave
- apple,t8122-ave
- const: apple,ave

reg:
minItems: 3
maxItems: 5
description: Codec, mailbox, coprocessor and generation-specific auxiliary banks.

reg-names:
minItems: 3
items:
- const: codec
- const: mailbox
- const: coproc
- enum: [pmgr, power-control]
- enum: [fabric, pio]

clocks:
maxItems: 1

interrupts:
items:
- description: Mailbox, raised when the firmware posts to a host ring
- description: Codec interrupt handled by the firmware
- description: Codec interrupt handled by the firmware
- description: Codec interrupt handled by the firmware
- description: Codec interrupt handled by the firmware

power-domains:
minItems: 1
maxItems: 6

power-domain-names:
minItems: 5
items:
- const: dma
- const: pipe4
- const: pipe5
- const: me0
- const: me1
- const: perf
description: |
A performance floor the encoder needs to run at full speed, held
while the encoder is powered (for example the SoC rail floor of a
PMC).

iommus:
minItems: 2
maxItems: 4
description:
The encoder's stream on each of its DARTs. Where the motion-compensated
temporal filter has its own stream (stream 12 on T8140), that stream is
listed after the encoder's on each DART.

memory-region:
items:
- description: Preloaded firmware text
- description: Preloaded firmware data

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

allOf:
- if:
properties:
compatible:
contains:
enum:
- apple,t6032-ave
required:
- compatible
- apple,t6020-ave
- apple,t6021-ave
- apple,t6022-ave
then:
properties:
compatible:
items:
- const: apple,t6032-ave
- const: apple,ave

reg:
minItems: 5
maxItems: 5

interrupts:
minItems: 5
maxItems: 5

else:
properties:
power-domains:
minItems: 5
maxItems: 6

iommus:
minItems: 2
maxItems: 2

required:
- compatible
- reg
- interrupts
- power-domains
- iommus
else:
- reg-names
- power-domain-names
- if:
properties:
compatible:
oneOf:
- enum:
- apple,t6000-ave
- apple,t6041-ave
- apple,t6050-ave
- apple,t8112-ave
- apple,t8140-ave
- apple,t8142-ave
- items:
- enum:
- apple,t6020-ave
- apple,t6021-ave
- apple,t6022-ave
- apple,t6030-ave
- apple,t6031-ave
- apple,t8103-ave
- apple,t8122-ave
- const: apple,ave

contains:
enum:
- apple,t6041-ave
- apple,t6050-ave
- apple,t8140-ave
- apple,t8142-ave
then:
properties:
reg:
minItems: 3
maxItems: 5
description: Codec, mailbox, coprocessor and generation-specific auxiliary banks.

maxItems: 3
reg-names:
minItems: 3
items:
- const: codec
- const: mailbox
- const: coproc
- enum: [pmgr, power-control]
- enum: [fabric, pio]

clocks:
maxItems: 1

interrupts:
items:
- description: Mailbox, raised when the firmware posts to a host ring
- description: Codec interrupt handled by the firmware
- description: Codec interrupt handled by the firmware
- description: Codec interrupt handled by the firmware
- description: Codec interrupt handled by the firmware

power-domains:
minItems: 1
maxItems: 6
maxItems: 3

power-domain-names:
minItems: 5
items:
- const: dma
- const: pipe4
- const: pipe5
- const: me0
- const: me1
- const: perf
description: |
A performance floor the encoder needs to run at full speed, held
while the encoder is powered (for example the SoC rail floor of a
PMC).

iommus:
minItems: 2
maxItems: 4
description:
The encoder's stream on each of its DARTs. Where the motion-compensated
temporal filter has its own stream (stream 12 on T8140), that stream is
listed after the encoder's on each DART.

memory-region:
items:
- description: Preloaded firmware text
- description: Preloaded firmware data

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

allOf:
- if:
properties:
compatible:
contains:
enum:
- apple,t6020-ave
- apple,t6021-ave
- apple,t6022-ave
- apple,t6030-ave
- apple,t6031-ave
- apple,t8122-ave
then:
properties:
reg:
minItems: 5
else:
properties:
power-domains:
minItems: 5
required:
- reg-names
- power-domain-names
- if:
properties:
compatible:
contains:
enum:
- apple,t6041-ave
- apple,t6050-ave
- apple,t8140-ave
- apple,t8142-ave
then:
properties:
reg:
maxItems: 3
reg-names:
maxItems: 3

additionalProperties: false
additionalProperties: false

unevaluatedProperties: false
15 changes: 9 additions & 6 deletions arch/arm64/boot/dts/apple/t6030-peripherals.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -494,17 +494,20 @@
ave: video-encoder@2cd100000 {
compatible = "apple,t6030-ave", "apple,ave";
reg = <0x2 0xcd100000 0x0 0x45c000>,
<0x2 0xcd800000 0x0 0x800000>,
<0x2 0xcd050000 0x0 0x4000>,
<0x2 0xcd800000 0x0 0x800000>,
<0x3 0x507003d0 0x0 0x7c54>,
<0x2 0xcc000000 0x0 0x1000000>;
reg-names = "codec", "mailbox", "coproc", "pmgr", "pio";
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 810 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 804 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 803 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 806 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 805 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_venc_sys>, <&ps_venc_pipe4>, <&ps_venc_pipe5>, <&ps_venc_me0>, <&ps_venc_me1>, <&ps_venc_dma>;
<AIC_IRQ 804 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 803 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 806 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 805 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_venc_dma>, <&ps_venc_pipe4>,
<&ps_venc_pipe5>, <&ps_venc_me0>, <&ps_venc_me1>;
power-domain-names = "dma", "pipe4", "pipe5", "me0", "me1";
iommus = <&dart_ave0 0>, <&dart_ave1 0>;
status = "disabled";
};
Expand Down
30 changes: 18 additions & 12 deletions arch/arm64/boot/dts/apple/t6031-peripherals.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -852,35 +852,41 @@
ave0: video-encoder@285100000 {
compatible = "apple,t6031-ave", "apple,ave";
reg = <0x2 0x85100000 0x0 0x45c000>,
<0x2 0x85800000 0x0 0x800000>,
<0x2 0x85050000 0x0 0x4000>,
<0x2 0x85800000 0x0 0x800000>,
<0x2 0x92800430 0x0 0x20c>,
<0x2 0x84000000 0x0 0x1000000>;
reg-names = "codec", "mailbox", "coproc", "pmgr", "pio";
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 0 1207 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1201 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1200 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1203 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1202 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_venc0_sys>, <&ps_venc0_pipe4>, <&ps_venc0_pipe5>, <&ps_venc0_me0>, <&ps_venc0_me1>, <&ps_venc0_dma>;
<AIC_IRQ 0 1201 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1200 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1203 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1202 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_venc0_dma>, <&ps_venc0_pipe4>,
<&ps_venc0_pipe5>, <&ps_venc0_me0>, <&ps_venc0_me1>;
power-domain-names = "dma", "pipe4", "pipe5", "me0", "me1";
iommus = <&dart_ave00 0>, <&dart_ave01 0>;
status = "disabled";
};

ave1: video-encoder@3c5100000 {
compatible = "apple,t6031-ave", "apple,ave";
reg = <0x3 0xc5100000 0x0 0x45c000>,
<0x3 0xc5800000 0x0 0x800000>,
<0x3 0xc5050000 0x0 0x4000>,
<0x3 0xc5800000 0x0 0x800000>,
<0x2 0x92280510 0x0 0x7b14>,
<0x3 0xc4000000 0x0 0x1000000>;
reg-names = "codec", "mailbox", "coproc", "pmgr", "pio";
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 0 1219 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1213 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1212 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1215 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1214 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_venc1_pipe4>, <&ps_venc1_pipe5>, <&ps_venc1_me0>, <&ps_venc1_me1>, <&ps_venc1_dma>;
<AIC_IRQ 0 1213 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1212 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1215 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 0 1214 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&ps_venc1_dma>, <&ps_venc1_pipe4>,
<&ps_venc1_pipe5>, <&ps_venc1_me0>, <&ps_venc1_me1>;
power-domain-names = "dma", "pipe4", "pipe5", "me0", "me1";
iommus = <&dart_ave10 0>, <&dart_ave11 0>;
status = "disabled";
};
Expand Down
Loading
Loading