Re: [PATCH v2 05/21] ASoC: dt-bindings: Add binding for Apple Silicon Mac audio
From: Krzysztof Kozlowski
Date: Fri Oct 09 2026 - 03:20:26 EST
On Sun, Oct 04, 2026 at 04:03:32PM +1000, James Calligeros wrote:
> +properties:
> + compatible:
> + oneOf:
> + - items:
> + - enum:
> + - apple,j180-macaudio
> + - apple,j274-macaudio
> + - apple,j293-macaudio
> + - apple,j313-macaudio
> + - apple,j314-macaudio
> + - apple,j316-macaudio
> + - apple,j375-macaudio
> + - apple,j413-macaudio
> + - apple,j415-macaudio
> + - apple,j473-macaudio
> + - apple,j456-macaudio
> + - apple,j457-macaudio
Keep this list sorted.
> + - items:
> + - enum:
> + - apple,j493-macaudio
> + - const: apple,j293-macaudio
...
> + model:
> + description:
> + Model name for presentation to users
> + $ref: /schemas/types.yaml#/definitions/string
> +
> +patternProperties:
> + "^dai-link(@[0-9a-f]+)?$":
> + description: |
> + Node for each sound peripheral such as the speaker array, headphones jack,
> + or microphone.
> + type: object
> + $ref: tdm-slot.yaml#
> +
Drop blank line
> + additionalProperties: false
> +
> + properties:
> + reg:
> + maxItems: 1
> +
> + link-name:
> + description: Name for the peripheral
> + enum: [ Headphone Jack, Speaker, Speakers ]
> + $ref: /schemas/types.yaml#/definitions/string
> +
> + codec:
> + type: object
> +
Drop blank line
> + additionalProperties: false
> +
> + properties:
> + sound-dai:
> + minItems: 1
> + maxItems: 8
> + description: |
> + DAI list with the CODEC-side DAIs connected to the above CPU-side
> + DAIs and involved in this sound peripheral.
> +
> + The list is in left/right order if applicable. If there are more
> + than one CPU-side DAIs (there can be two), the CODECs must be
> + listed first those connected to the first CPU, then those
> + connected to the second.
> +
> + In addition, on some machines with many speaker codecs, the CODECs
> + are listed in this fixed order:
> +
> + Four speakers: Left Front, Left Rear, Right Front, Right Rear
> + Six speakers: Left Woofer 1, Left Tweeter, Left Woofer 2,
> + Right Woofer 1, Right Tweeter, Right Woofer 2
> +
> + required:
> + - sound-dai
> +
> + cpu:
> + type: object
> +
Drop blank line
> + additionalProperties: false
> +
> + properties:
> + sound-dai:
> + minItems: 1
> + maxItems: 2
> + description: |
> + DAI list with CPU-side I2S ports involved in this peripheral.
> +
> + required:
> + - sound-dai
> +
> + patternProperties:
> + "^dai-tdm-idle-mode-[0-9]$":
> + $ref: tdm-slot.yaml#/properties/dai-tdm-idle-mode
This looks like you put several slots into one. TDM slot is for one
slot, no?
> +
> + "^dai-tdm-slot-tx-idle-mask-[0-9]$":
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Idle slot mask. A bit being set to 1 indicates
> + that the corresponding TDM slot is inactive/idle.
> +
> + required:
> + - reg
> + - codec
> + - cpu
> +
> +required:
> + - compatible
> + - model
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + sound {
> + compatible = "apple,j416-macaudio", "apple,j316-macaudio";
> + model = "MacBook Pro J416";
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + dai-link@0 {
> + reg = <0>;
> + link-name = "Speakers";
> +
> + dai-tdm-idle-mode-0 = "zero";
> + dai-tdm-idle-mode-3 = "zero";
> + dai-tdm-slot-tx-idle-mask-0 = <0xf0f0f0>;
> + dai-tdm-slot-tx-idle-mask-3 = <0x0f0f0f>;
> +
> + codec {
> + sound-dai = <&speaker_left_woof1>,
> + <&speaker_left_tweet>,
> + <&speaker_left_woof2>,
> + <&speaker_right_woof1>,
> + <&speaker_right_tweet>,
> + <&speaker_right_woof2>;
> + };
> +
> + cpu {
> + sound-dai = <&mca 0>, <&mca 1>;
> + };
> + };
> +
> + dai-link@1 {
> + reg = <1>;
> + link-name = "Headphone Jack";
> +
> + codec {
> + sound-dai = <&jack_codec>;
> + };
> +
> + cpu {
> + sound-dai = <&mca 2>;
Example looks incomplete, you miss TDM slot properties.
> + };
> + };
> + };
>
> --
> 2.55.0
>