From nobody Sun Nov 24 14:42:29 2024 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 961B14317C for ; Tue, 5 Nov 2024 09:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730797353; cv=none; b=Qe/LHtKh08+g1f81IZlZV82od/L+6tt+KhxD1ofwRe4KOR/MIbLCfGwoETt0cG3Vm1t4iJwI68sbeD17zK2Hv0QfiXTu4ciK+E8/CshSSUEl+/JLNXvbpsVAYRvipfFBRBSB+BG9tP3f9xKBBHiMP9h5/IzDCIMrdBF1XzvEdfs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730797353; c=relaxed/simple; bh=2OIjhOvK0YgKLi/tF0dBv4b3uZZAtdgXIgXmLx0oIBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jNaTX8PbUc+ife1hnlCNzuKudcPexo/XPNzYoOZc5cawc0shFVYQ64nLCzOrQ6UUWyCL+tPRnz76RNnWWMdFj/diSBZ0SvugjmSdsh98AJ8CkBfUSjnL1Mzuc0rjwt2xCNHMLLEsqaPvPQkoVIqO4yMp8I6j3mKj+rI0qDTtTpQ= 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=lfAbIuLM; arc=none smtp.client-ip=209.85.215.172 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="lfAbIuLM" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-7ea7e2ff5ceso3643697a12.2 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=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=djQbbob5DRcgyzgtrmCeJK9wCGVRn3M70o+CkFeCAc0=; b=lfAbIuLMez58szFNGFy95fnf0YLPIjAg5Sl1tNV9T9p8ltVRehRWGOnS6b8lw86V4H 9KSDhFwTpPmHrKhlvkUMN04V3ifVOtdVMREjRooXBQJtCGpSGAxbe21CbL+JGS8/wa2G 0Y9kHBBQm+jBGF9P2DJDnlo8ajX9f8olxACsQ= 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=dZI+p4UqP8iRAWbxNLCNVch6l+FKHFuhatJZWAkhuZnrct4N6SnqDQqX6sYfvD+taE BYur20vOs/jDamF4HkP0Tgi5hxv+5ubdFpJFIyD1KGdc7cmX4YeXd8eBtOReJknOQx6N 9AuYQmCkNwjRDQJsRkVOAkHmA0KahYu5BxfesIp+XRaJalKAxPteOcOsB8AL7mFU8tQF K/qUEueaYw6fc62Zr0BJFL+PkhCyaJyMPpO6sYBaAe+qZ2Jo8kZpPmL8BTVXfOFmGKfV /66bT7Y4zULiRRoYqO8JJA5yzVxmTO/dNC+5xZQRLTm8c07ZH+O7UAFbPcq3ERJ0GHyW xXhA== X-Forwarded-Encrypted: i=1; AJvYcCU5wBrCvm2W63fjAsYldNL/jH3z+fj4f38pX/5OchXVx0Ne8E2DN884sAwxhwin6h4prZ2bcUsq53w/hzY=@vger.kernel.org X-Gm-Message-State: AOJu0Ywqy7BFSLH2iNDFC+ivwqnqNVqhYPxtHwDyBX3X2FU7DOvGja1y 54b6fvCyIxD9UOl4ICAYzDgnFYDf0QqTsSapoaLp6nYST9Yq7xukl5g0Qsysdg== 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 Cc: Fei Shao , AngeloGioacchino Del Regno , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , 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 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 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 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 =20 + '#sound-dai-cells': + const: 0 + ports: $ref: /schemas/graph.yaml#/properties/ports properties: @@ -85,7 +88,21 @@ required: - ports - max-linkrate-mhz =20 -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 =20 examples: - | --=20 2.47.0.277.g8800431eea-goog