From patchwork Tue Nov 5 09:00:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13862679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 06DBAD12663 for ; Tue, 5 Nov 2024 09:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=djQbbob5DRcgyzgtrmCeJK9wCGVRn3M70o+CkFeCAc0=; b=fAXbB8Y3WDuD6b g98EnXGDIO9sq9VQvtsXWVYvVO/JbtTn3koZjgAM9IEtMn4IWwCM67KP/ebyv3DYZL5fdFgUHtLnh YBZWjpfMn40nGDZrir7Q+LA2k8fnJki3q78Lel4Haoaghb8SOZq9kRbly8UNQuUIAebxxpKbSKKeH dQQxM21iJCnIpYgRQfVOk+oNIo/9yEK9d/JQVWFAZPZxlermi8+ORRSwsvdU1Yw3iCBue5Y83UD7P xQrjNLldTUN1eNQvKoDsgofGE5xai2dhGi5awlfhXbowlKadQaMJIGLY0nNQeFF1LXotga9BMlVdP QKH+1+gGoGhkQvbpnTdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8FSc-0000000GQmL-30Pz; Tue, 05 Nov 2024 09:02:50 +0000 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8FSK-0000000GQcE-0TEW for linux-mediatek@lists.infradead.org; Tue, 05 Nov 2024 09:02:33 +0000 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-7f3f1849849so171965a12.1 for ; Tue, 05 Nov 2024 01:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1730797351; x=1731402151; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=djQbbob5DRcgyzgtrmCeJK9wCGVRn3M70o+CkFeCAc0=; b=lpyeEORl8udmjWqnUg6BnidOsCfCZk0WtarVLTiVnl9w1OPGjTRgVogX8qoea2x0U2 fxCpwaEhrpWRBb0J8wyisMUOPiGSBZ6rSYBKdoCXOHT63ugonev6ZeTuOiTcRWrFxZz3 R8TJA0oUC5M2Wf/Q18ITt8FPcICc9xIJfSj/4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730797351; x=1731402151; 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=djQbbob5DRcgyzgtrmCeJK9wCGVRn3M70o+CkFeCAc0=; b=lNxP9BMxS7nAcdNmsmNly0BzU5owtprDAy8YyHs6LY0rOR+4SzWyoLAzHJCYi3qhup OTiTo/6OncYFg3err6QLWiCvkx70jQwUo6LGJv+tSFQH09T57lv67SwsscO97rTHpMN0 Hf5qGPPtyt1E4Bj9rEI0IUf+FJhs8cuXhom6cfQolilHacfCKVyh81HA8bZOtPBbg7i5 om2xm9tI6hn40lhnNy+TbKY6wi0eui4FHsFYTeyYBzooVtvD+pi9HmxXxCVbaWdL7xUD UDvmJheQLbfNSA2P2bEtiLI3F4O/ND8o+lHSXemI6mIEzzQLVys6depttZfIweQXCVkS 31aw== X-Forwarded-Encrypted: i=1; AJvYcCWJSHEjQ23rxeuZEw8nUww4OZ+Xue1d/VlnA7Vk4jukYLIjfyZ0vRARqEPZByTHiOzs8c1bgM/K4MTp2rdEdA==@lists.infradead.org X-Gm-Message-State: AOJu0YyxtwNNE4/fl1PglbvEqCdhXyxESfoGb/agQwfbjulxeEDA6pbJ 65i3jZ+5OEh8Hdu3e0kDMTp0XlzzIdSBjaT3iyVpB5gbQOftOM01K9nJtw7zUA== X-Google-Smtp-Source: AGHT+IH1k+zMqS05NS5QvavH+ykcILKALPqruVdecenHRtfW6dG9qXj72cxb37tXkc0AOy3qeQYb5g== X-Received: by 2002:a17:90a:bc87:b0:2d3:da6d:8330 with SMTP id 98e67ed59e1d1-2e92ce32e36mr25501301a91.4.1730797350795; Tue, 05 Nov 2024 01:02:30 -0800 (PST) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:20ee:3712:ce0b:1ed7]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2110570ad54sm72591315ad.111.2024.11.05.01.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 01:02:30 -0800 (PST) From: Fei Shao To: Chun-Kuang Hu Subject: [PATCH v2] dt-bindings: display: mediatek: dp: Reference common DAI properties Date: Tue, 5 Nov 2024 17:00:28 +0800 Message-ID: <20241105090207.3892242-1-fshao@chromium.org> X-Mailer: git-send-email 2.47.0.277.g8800431eea-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241105_010232_204412_DBBE9350 X-CRM114-Status: GOOD ( 10.34 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Conor Dooley , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Matthias Brugger , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Rob Herring (Arm) --- Changes in v2: - reference to dai-common.yaml since the hardware exposes DAI and update to `unevaluatedProperties: false` - update commit message .../display/mediatek/mediatek,dp.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dp.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dp.yaml index 2aef1eb32e11..75ce92f4a5fd 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 + '#sound-dai-cells': + const: 0 + ports: $ref: /schemas/graph.yaml#/properties/ports properties: @@ -85,7 +88,21 @@ required: - ports - max-linkrate-mhz -additionalProperties: false +allOf: + - $ref: /schemas/sound/dai-common.yaml# + - if: + not: + properties: + compatible: + contains: + enum: + - mediatek,mt8188-dp-tx + - mediatek,mt8195-dp-tx + then: + properties: + '#sound-dai-cells': false + +unevaluatedProperties: false examples: - |