Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: display: mediatek: dp: Reference common DAI properties

The MediaTek DP hardware supports audio and exposes a DAI, so the
'#sound-dai-cells' property is needed for describing the DAI links.

Reference the dai-common.yaml schema to allow '#sound-dai-cells' to be
used, and filter out non-DP compatibles as MediaTek eDP in the same
binding doesn't support audio.

This fixes dtbs_check error:
'#sound-dai-cells' does not match any of the regexes: 'pinctrl-[0-9]+'

Signed-off-by: Fei Shao <fshao@chromium.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20241105090207.3892242-1-fshao@chromium.org/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>

authored by

Fei Shao and committed by
Chun-Kuang Hu
8fe3ee95 0d68b558

+18 -1
+18 -1
Documentation/devicetree/bindings/display/mediatek/mediatek,dp.yaml
··· 42 42 interrupts: 43 43 maxItems: 1 44 44 45 + '#sound-dai-cells': 46 + const: 0 47 + 45 48 ports: 46 49 $ref: /schemas/graph.yaml#/properties/ports 47 50 properties: ··· 88 85 - ports 89 86 - max-linkrate-mhz 90 87 91 - additionalProperties: false 88 + allOf: 89 + - $ref: /schemas/sound/dai-common.yaml# 90 + - if: 91 + not: 92 + properties: 93 + compatible: 94 + contains: 95 + enum: 96 + - mediatek,mt8188-dp-tx 97 + - mediatek,mt8195-dp-tx 98 + then: 99 + properties: 100 + '#sound-dai-cells': false 101 + 102 + unevaluatedProperties: false 92 103 93 104 examples: 94 105 - |