From patchwork Thu Feb 2 18:36:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 52149 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp419996wrn; Thu, 2 Feb 2023 11:08:52 -0800 (PST) X-Google-Smtp-Source: AK7set9v3oizU/LEZ8AbTCkKNtyo9n+jdPhDxSrslWxTDHd+OyGzGJCTsLdI+VYkS40IM0fZi1n+ X-Received: by 2002:a62:501:0:b0:594:3fde:40c6 with SMTP id 1-20020a620501000000b005943fde40c6mr1185640pff.25.1675364931788; Thu, 02 Feb 2023 11:08:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675364931; cv=none; d=google.com; s=arc-20160816; b=jabw072KdQ3PFSN5Tqs1YkkWmr10HuBTRlddmSGDWqemryj4FUZRvR44cqv9eMLBGY SnmtbYnjlU0N2cP7nrLnPFpCNH4fq9J34uq6ub59PrhSsjWgLkrgUdQpLutn6gx9twls lpalmBSVrXU+ZHTFSFz7PrA09O991Axwq1wUQc7dU5z2BSVbLGqCnDzo/vW+2f1pk2F5 +x8whVpI1K7grx6fWdfo/m2i0UW4G084BMWNdZrR+z8RtVS1NBUFFKGWYks4RqofBDYu j21T4nOI9kEJ8/a3Tz5pLtD/jiadZ/v4BhVA2rzSPcjl6WczQ2ykSnTBrgHUztWgh2pC 8BxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=it81YP95JIRPJswh/FgK8dhTohEGTS21tUAjm96BPMQ=; b=dCdSQEVDybAjcZndXiZqCSN7vX2vVaDgjrsydC0/cG6XEEWG/kquMhlEddQQS54Aa+ oPuPOGNJY/pyxz0aK1/ZkQihMYVfph2vWnwdeP4k2E6nRGoVpUOjOUfopDLCv2/86E3E dEfywTBo7Zwiz96l4g+OuIuPydXPXklil+w+LOLBYnICxe7Hp0fc9eMKPIPIxy0Zbe3R yl6HU6NYm7ilRzUeY+qnNMj/Opn4LYWwjqk7qEgL6gZEWIHGcRb/ImSftRKYUetJlHQW BeNOwKhF4somigl4Sgq1kdQoaNlh8p/N4WhAvRI87EhdlFHGVTZvF7Jm93sfVrpwe3xY vBww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=T35BJJth; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 64-20020a620543000000b0053e8d0c9909si42663pff.221.2023.02.02.11.08.32; Thu, 02 Feb 2023 11:08:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=T35BJJth; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232552AbjBBSiL (ORCPT + 99 others); Thu, 2 Feb 2023 13:38:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232563AbjBBSiF (ORCPT ); Thu, 2 Feb 2023 13:38:05 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFFDC7B784 for ; Thu, 2 Feb 2023 10:37:28 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id h16so2534315wrz.12 for ; Thu, 02 Feb 2023 10:37:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=it81YP95JIRPJswh/FgK8dhTohEGTS21tUAjm96BPMQ=; b=T35BJJthNSXWGuipJ/S57/Vin4LoRONI1yOJ2iw8a6ampM/SH/alQlaM3pwJXbfIto rhB/lH9b1SfkOR19HeWTkVB7VSSsTJgHyiavcYsEoM/cXzmWt6zg2rxDTIV6fKG7uY6C R59zbQQItYpdbiiKXP3AQ7Vsyoc4Swh2MVx05ksPml3KYRaXwgZdpVxGAzQzbmS6ZsUk hFKqBE/i/V1NnVVjwq0cZN7FQRbfbNj0VLT9zzJo0vI2vf1zI2ghqgOOttCZZN4+N/qR OJNFfbUx3uQyls1lZ4AVo++FolCmlr1lg3WtFc0TRW0TSRpiuvX8jLi/jVecCpg+wtgK voEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=it81YP95JIRPJswh/FgK8dhTohEGTS21tUAjm96BPMQ=; b=yu8lGQXW7iRqQX05wxmBfPiee1V8YrCLznWXn1eLxArvnWH/9ZAcWxMKxELax8nJfD sKuCMxdZkbR2qB8gCx5qRHu5jsfYH75swQ706ZhJ2sdR0x6q12KGnkH3EZyDuXprmxGA xyu/F3u5ETMaGkqqlHiCBDaV0AUY9oyF1tLK7XBUwXAhd1IPao6VrBkkVelVkfdMpsSW eMIyjkQQHIiSqmLoy8E1nSae1qhVXgh7ZIp7Pzp22+8mqIhu2cozokbGwySECoddqYrS qyWACTZxCIADKwAljwCF9pVzQDvyVd/kKVMPPh/q536FI85wQyMrLvjX+95DGmDosYL5 6kxw== X-Gm-Message-State: AO0yUKUjCwgYbC5auwqeY3BWGtnoT1wYhdHxWG+MwGKyRSEL+b2oM/mt 1dj8KkuV1eiqHHr8hETpAvgJKQ== X-Received: by 2002:a05:6000:1285:b0:2bf:b036:ffe3 with SMTP id f5-20020a056000128500b002bfb036ffe3mr6707490wrx.45.1675363047162; Thu, 02 Feb 2023 10:37:27 -0800 (PST) Received: from localhost.localdomain (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.googlemail.com with ESMTPSA id p12-20020a5d48cc000000b00241fab5a296sm164664wrs.40.2023.02.02.10.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Feb 2023 10:37:26 -0800 (PST) From: Jerome Brunet To: Mark Brown , alsa-devel@alsa-project.org, devicetree@vger.kernel.org Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, Kevin Hilman , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org Subject: [PATCH 1/9] ASoC: dt-bindings: create component common schema Date: Thu, 2 Feb 2023 19:36:45 +0100 Message-Id: <20230202183653.486216-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230202183653.486216-1-jbrunet@baylibre.com> References: <20230202183653.486216-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756747458822551536?= X-GMAIL-MSGID: =?utf-8?q?1756747458822551536?= All DAIs are component but not all components are DAI. Move the component properties (sound-name-prefix ATM) to a separate schema file so it can be used by non-DAI components, such as auxiliary devices. Signed-off-by: Jerome Brunet Reviewed-by: Krzysztof Kozlowski --- .../bindings/sound/component-common.yaml | 21 +++++++++++++++++++ .../devicetree/bindings/sound/dai-common.yaml | 11 +++------- 2 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/component-common.yaml diff --git a/Documentation/devicetree/bindings/sound/component-common.yaml b/Documentation/devicetree/bindings/sound/component-common.yaml new file mode 100644 index 000000000000..37766c5f3974 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/component-common.yaml @@ -0,0 +1,21 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/component-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Audio Component Common Properties + +maintainers: + - Jerome Brunet + +properties: + sound-name-prefix: + $ref: /schemas/types.yaml#/definitions/string + description: | + Card implementing the routing property define the connection between + audio components as list of string pair. Component using the same + sink/source names may use this property to prepend the name of their + sinks/sources with the provided string. + +additionalProperties: true diff --git a/Documentation/devicetree/bindings/sound/dai-common.yaml b/Documentation/devicetree/bindings/sound/dai-common.yaml index d858eea73ed7..1aed2f0f1775 100644 --- a/Documentation/devicetree/bindings/sound/dai-common.yaml +++ b/Documentation/devicetree/bindings/sound/dai-common.yaml @@ -9,15 +9,10 @@ title: Digital Audio Interface Common Properties maintainers: - Jerome Brunet -properties: - sound-name-prefix: - $ref: /schemas/types.yaml#/definitions/string - description: | - Card implementing the routing property define the connection between - audio components as list of string pair. Component using the same - sink/source names may use this property to prepend the name of their - sinks/sources with the provided string. +allOf: + - $ref: component-common.yaml# +properties: '#sound-dai-cells': true additionalProperties: true