Re: [PATCH v2 01/11] dt-bindings: sound: qcom,qaif-cpu: Add binding

From: Krzysztof Kozlowski

Date: Thu Jul 02 2026 - 02:53:13 EST


On Wed, Jul 01, 2026 at 04:27:47PM +0530, Harendra Gautam wrote:
> Add a dt-bindings header for the Qualcomm Audio Interface (QAIF) controller
> DAI IDs. This provides shared constants for devicetree sound-dai references
> and QAIF aif-interface reg values instead of using raw numeric IDs.
>
> Add a Devicetree binding for the Qualcomm Audio Interface (QAIF) CPU DAI
> controller used on the Shikra audio platform.
>
> QAIF moves PCM data between system memory and external serial audio
> interfaces through the AIF path, and between memory and the internal Bolero
> digital codec through the CIF path. The controller needs a binding so
> platform Devicetree files can describe its MMIO region, DMA IOMMU stream,
> clocks, interrupt, DAI cells and per-interface AIF configuration.
>
> Describe the single register region, one EE interrupt, the required GCC
> LPASS and audio core clocks, the DMA IOMMU mapping, and 'aif-interface@N'
> child nodes used for static PCM, TDM or MI2S configuration.
>
> Depends-on: [PATCH 0/4] clk: qcom: Add Audio Core clock controller
> support on Qualcomm Shikra SoC
> https://lore.kernel.org/linux-clk/20260605-shikra-audiocorecc-v1-0-7ee6b5f2d928@xxxxxxxxxxxxxxxx/

There is no such tag. Why would you want to include it in the Git
history?

...

> +properties:
> + compatible:
> + enum:
> + - qcom,qaif-cpu

How did this appear?

You ignored my previous comments (I checked one or two).


> + - qcom,shikra-qaif-cpu
> +
> + reg:
> + maxItems: 1
> +
> + iommus:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 9
> +
> + clock-names:
> + items:
> + - const: lpass_config
> + - const: lpass_core_axim
> + - const: aud_dma
> + - const: aud_dma_mem
> + - const: bus
> + - const: aif_if0_ibit
> + - const: aif_if1_ibit
> + - const: aif_if2_ibit
> + - const: aif_if3_ibit
> +
> + interrupts:
> + maxItems: 1
> +
> + '#sound-dai-cells':
> + const: 1
> +
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> +

Why double line break?

> +patternProperties:
> + "^aif-interface@[0-9a-f]+$":

Use consistent quotes.

> + type: object
> + description:
> + AIF interface configuration child node. The compatible string
> + identifies the serial protocol the interface is wired for on the
> + board. The unit address matches the hardware AIF interface index.
> + properties:
> + compatible:
> + enum:
> + - qcom,qaif-pcm-dai
> + - qcom,qaif-tdm-dai
> + - qcom,qaif-mi2s-dai
> + reg:
> + maxItems: 1
> + description: |
> + Hardware AIF interface index (AUD_INTFa block index). This value
> + also serves as the ALSA DAI ID; it corresponds directly to the
> + QAIF_MI2S_TDM_AIFn constants in <dt-bindings/sound/qcom,qaif.h>
> + (e.g. reg = <2> selects QAIF_MI2S_TDM_AIF2).
> + qcom,qaif-aif-sync-mode:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 1, 2]
> + description:
> + Defines the FRAME SYNC mode for the audio interface.
> + 0 = SHORT - FRAME SYNC is high for 1 INTF clock cycle per frame
> + 1 = ONE_SLOT - FRAME SYNC is high for 1 slot per frame (pulse
> + stretched by MIN(RPCM_WIDTH, TPCM_WIDTH))
> + 2 = LONG - FRAME SYNC is high for half the frame duration
> + qcom,qaif-aif-sync-src:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 1]
> + description:
> + Sync clock/frame source. Independent of sync-mode;
> + all combinations of sync-mode and sync-src are valid.
> + 0 = External source (slave)
> + 1 = Internal source (master)
> + qcom,qaif-aif-invert-sync:
> + type: boolean
> + description: Invert the frame sync polarity.

There is no such style of such text flow. Open any existing binding.

Either you disregarded existing code or you just vibe coded something.
Both cases are not right.

Combining missed comments, that's a NAK

Best regards,
Krzysztof