From nobody Mon Nov 25 18:05:33 2024 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 782CF1D54C7 for ; Fri, 25 Oct 2024 10:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729853007; cv=none; b=BPzNWceqCf7aCtNT272R2lEAz8JzSZ/rLE1rqP80aavzJHyX9F0iPgNbB19EyhWhf6HA8DvWPsCa+iaGSjKcvLr9qw7pWHXL/X7GJb/fxNaEMjFmnFZY1SmgmvQCz1rAghsj/YwfdVcg36KoJpDe2qg/s5BVgeA7sWmCf47sxXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729853007; c=relaxed/simple; bh=WSwybBvIgG1IpEW2B6Wpf43EoAYTHprR+E28IrEifwQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jqmwlz5wxNPcPW8MvDC8vTXCS8Sn0UhrfZIL/Zsv538qIrHsYlxG3AAQWTZccbX6ClhGQK4BeVgdnDm8h+xsXIo1uPlRpxdg4WcrLrx2Xiy00ZwTfddrmwc7shYBVL2Espkj5ccpaiGJ//RI64Gr+FgDS7HcjU5++/IMONWcc9Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=g9NgYi+C; arc=none smtp.client-ip=209.85.216.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="g9NgYi+C" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2e2cc47f1d7so1260711a91.0 for ; Fri, 25 Oct 2024 03:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1729853004; x=1730457804; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KxrytHmxkB3KbKiG8V4DcHZ1mCc5pLP/FlD1m68qCP4=; b=g9NgYi+CszGlE5dgv8A0frGL716ftVu2yZqR7iTyJ9ZpeQMu0MrN2Qe+aEyXoIBAEW Nel3MSHyQD9xBRendAv8zNKDjCRgdNzm6ekr6z7BW2jP+Jzsqf5fqBUM+imYC8oUY2sp EpR3co5oDJttLPG+HnwfO/AMw5vILufo1jw+0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729853004; x=1730457804; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KxrytHmxkB3KbKiG8V4DcHZ1mCc5pLP/FlD1m68qCP4=; b=vTarZDPPHqmv0nsyhfU2ZgVjVqdi4o717U4jblqddh4kSHw0y/VQl4YJOYGpSzNbsn HBHZiIj0UUa5yjr9GEtRkv2bMCLzL0iIAFZ0mVpvTWzL2ad2guDEs0GRWh78csoSOG8X 5FJQsQ493rMTDiLK5Ax6rK8ILDAZZh6AAlGrDRgOOw6h4jIUAlss9/LuzWaXwWAOazyF o/cizXVWQ3Mra60EpoOey8Hh2UONKvuXBmAo48ETi0ABHbj1V+0r51NNmfQSD0751JSd Cl2opechsKDrb5/vsNSwq3VG5G46/f23o9BGj3FVVUQJVCTGPJWFLQmyUCSy7fJsJVCh 4UxQ== X-Forwarded-Encrypted: i=1; AJvYcCVT7qlqMnVNrCG42TFO3pallY8LC7umFOETsfPjQDYea2UAg/zS6wzXtxAnpLLKgAWG239j+avTbSpKz1Q=@vger.kernel.org X-Gm-Message-State: AOJu0YzAf8ZfZSwIMCAuebpmU4y2k6V9FCezTrAatYutqs+gyvIk8Ect 5zRDaow2QkijCLUe49c+42i+wcxMtHXpc4HlkeP+jfNE3OPknnPQqzAzJLJTVw== X-Google-Smtp-Source: AGHT+IEc8DWXdGFrPxI2fzHPjMeSAyvo7Jul73y4KLbJM19gxhJsddXsu1xMH6CPalfcWwhWNeu3pg== X-Received: by 2002:a17:90a:4bc6:b0:2e1:8a41:aaba with SMTP id 98e67ed59e1d1-2e77e88ddfemr7745822a91.19.1729853003888; Fri, 25 Oct 2024 03:43:23 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:ebe1:dd63:343d:8a4c]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e8e36a26aasm1093307a91.27.2024.10.25.03.43.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2024 03:43:23 -0700 (PDT) From: Fei Shao To: Chun-Kuang Hu Cc: Fei Shao , AngeloGioacchino Del Regno , Conor Dooley , David Airlie , Jitao shi , Krzysztof Kozlowski , Maarten Lankhorst , Matthias Brugger , Maxime Ripard , Philipp Zabel , Rob Herring , Simona Vetter , Thomas Zimmermann , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH] dt-bindings: display: mediatek: dp: Add #sound-dai-cells property Date: Fri, 25 Oct 2024 18:42:45 +0800 Message-ID: <20241025104310.1210946-1-fshao@chromium.org> X-Mailer: git-send-email 2.47.0.163.g1226f6d8fa-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MediaTek DP hardware supports audio, and the "#sound-dai-cells" property is required to describe DAI links and audio routing. Add "#sound-dai-cells" property to the binding and filter out non-DP compatibles, as MediaTek eDP doesn't support audio. Signed-off-by: Fei Shao --- .../bindings/display/mediatek/mediatek,dp.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dp= .yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dp.yaml index 2aef1eb32e11..c05c2b409780 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dp.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dp.yaml @@ -42,6 +42,9 @@ properties: interrupts: maxItems: 1 =20 + "#sound-dai-cells": + const: 0 + ports: $ref: /schemas/graph.yaml#/properties/ports properties: @@ -87,6 +90,19 @@ required: =20 additionalProperties: false =20 +allOf: + - if: + not: + properties: + compatible: + contains: + enum: + - mediatek,mt8188-dp-tx + - mediatek,mt8195-dp-tx + then: + properties: + "#sound-dai-cells": false + examples: - | #include --=20 2.47.0.163.g1226f6d8fa-goog