From nobody Sun Nov 24 14:46:04 2024 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 49F941CDA19 for ; Tue, 5 Nov 2024 09:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730798139; cv=none; b=sHlXrHuF0ef4ZnvRWX4QWDybTrd0kDf+WOdUM0OnZT4cyZ0uYTN46GbrU+UdM6q1TbQ9sKbpieqYZeGY1p4evkSVx25CIf9gF3QWf2TT8P7Bj7tVntHdB6T6TJCCZWVlEUHtrIdAZOGjv0VoJPc8qVWp33iBmGOWEltCsn/aMxQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730798139; c=relaxed/simple; bh=NoJ4ZGaZx7AkDYtA5g7KbWAi5e6RM2XncfGQkpsnNAw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D0dmkjFMijqeir6Ji/8O7q0Xj9vdRLHfbDhcrpTrYFuFoxyoMB7lpuXUzrqShmz6RMGzHyE8gCwJiCoHh0CVzNtbhK4b86GIdik6R2lBD1HjQh51GN4BvPaRXoweDgEQnx7/OwDhhbm78y4UlIv/ApYAvOyE7J4791WME9RPb3w= 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=bcRwHDx7; arc=none smtp.client-ip=209.85.210.175 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="bcRwHDx7" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-720d14c8dbfso4079391b3a.0 for ; Tue, 05 Nov 2024 01:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1730798137; x=1731402937; 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=bp5SzzDrkWzFz+KkFH2AjLFNmdPoRX4+H3HpHMfQq2k=; b=bcRwHDx7domjvFWQCpaq8ih8PLMPJ76H6WR3ocqINJyc9knP/GhsOcBaRbPm33J7aH E2a7Z2C0XiEaCoINUtw9W9oe9SNLrM2w+jcMZ0Ke62o96MvZSYBqPLqEg4/o2fQMBjUq AVxeGYtzw0RfNWm+Fey44MJN7/opG88VhKtvY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730798137; x=1731402937; 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=bp5SzzDrkWzFz+KkFH2AjLFNmdPoRX4+H3HpHMfQq2k=; b=YfsHLeJGAzYtOrlYQQWx9xMWWB5g0AxH+X3fUaN0QFekvGkK8YtjYFsSLK7uh3ZfNN clPXy53is/RILu984o3W9EaAbHD2rqanGRGH/IZAtkG+wvlwblD5tctcaw+RQ2HB9zRw kVa38vcb+qou5QG23PPAfPEkS+NEe50u+JrmA0uxwTG5cImjYd/Co/7I4QFq0/MXCXDB TsmqBWSaO70QcVmkO8dCPmiYLw727uT9IaDlRRTm76ha2GmAy7SkBpJ5BPXMpHeT9OMd spHyD3+XtjUip2ansboY4ZLdItVfuXiUSKehYXzrb5biYMErLNBJsb70O4HMIsBvj4NF Vwyg== X-Forwarded-Encrypted: i=1; AJvYcCUHgsjDJAl7AxUngZyehkXqtGIRKn4u8JSeY9/r93R36J+EpwrKOVfXoQ6T1rSOG+GqDVs6Vp+3d9i5poY=@vger.kernel.org X-Gm-Message-State: AOJu0YzsWPbzzF2MhhVO2SDxHyPLyQncnllU1yhcggD+X2YiTX1g3L51 7Plxkctr10wQdUPGNhYvd2BeJcjZbjg/20vBsty+LuVLCJty+xbY2Rbqp3bBXg== X-Google-Smtp-Source: AGHT+IGHX0L4HfW1RQzdQL8LuZUiHavKnr2hG99pMYDCnlf3de5sLsOYbFCY7gSPwFvuixT4u6i6bA== X-Received: by 2002:a05:6a21:2d8b:b0:1d9:28f8:f27d with SMTP id adf61e73a8af0-1db91e533camr28597387637.38.1730798137580; Tue, 05 Nov 2024 01:15:37 -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 d2e1a72fcca58-720bc313502sm9137251b3a.182.2024.11.05.01.15.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 01:15:37 -0800 (PST) From: Fei Shao To: Mark Brown Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org Subject: [PATCH v2] ASoC: dt-bindings: maxim,max98390: Reference common DAI properties Date: Tue, 5 Nov 2024 17:14:31 +0800 Message-ID: <20241105091513.3963102-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" MAX98390 is a smart amplifier and exposes one DAI, so '#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. 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: Krzysztof Kozlowski --- This patch is based on a previous [v1] series. This is sent as an individual patch in v2 because the other patches in the [v1] series are either invalid or for different purpose in different binding, so I think it'd be better to send them separately. [v1]: https://lore.kernel.org/all/20241025104548.1220076-4-fshao@chromium.org/ Changes in v2: - specify '#sound-dai-cells' with const value - update commit message .../devicetree/bindings/sound/maxim,max98390.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/maxim,max98390.yaml b/= Documentation/devicetree/bindings/sound/maxim,max98390.yaml index deaa6886c42f..d35dd8408c61 100644 --- a/Documentation/devicetree/bindings/sound/maxim,max98390.yaml +++ b/Documentation/devicetree/bindings/sound/maxim,max98390.yaml @@ -9,6 +9,9 @@ title: Maxim Integrated MAX98390 Speaker Amplifier with Int= egrated Dynamic Speak maintainers: - Steve Lee =20 +allOf: + - $ref: dai-common.yaml# + properties: compatible: const: maxim,max98390 @@ -32,11 +35,14 @@ properties: reset-gpios: maxItems: 1 =20 + '#sound-dai-cells': + const: 0 + required: - compatible - reg =20 -additionalProperties: false +unevaluatedProperties: false =20 examples: - | --=20 2.47.0.277.g8800431eea-goog