Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp296280pxb; Thu, 27 Jan 2022 22:22:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMgR5IVd7KXW0BQkHAvBi3qMpuMp86yPXzRMhlHKcmRhBVzgvGQreddGFxQ7/AglYgDD/l X-Received: by 2002:a17:907:3d01:: with SMTP id gm1mr5527679ejc.749.1643350974875; Thu, 27 Jan 2022 22:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643350974; cv=none; d=google.com; s=arc-20160816; b=ugqfI7xqvQrX/xqu7gPxhsHp2FypOAYDiqoTxEOqu9MvUckS4xQhnKf6oFIokrElPg 8SVUu/3EWAIPjHiyQm/CgVOcjWsBtBYT2/rFY3qGczqLsCY2J7uECWz+Dey1+DqApxu3 p9nfaR5QHhxYymM988c/yZqa2Ic1aMNys9ZShgBJdo+mTjVuc3uuVWA3rmpfLs1qeW0e bFNqHNcGHSlcJyGMeu7wlK7zYGM5Sqs8cLbYC97JzOZdLsS1xVU5YCcyvugLJWlE3mSN 5QhAieqeVAfzGOGBuQZb4m0Fv7shiDNuszIpjrOOcAbizIecfANl6Gxrze+4laM7gWwR ceIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZSYGppchudkpP9qRn+YpHY8kpOOKZn9BqPmwqsEFVpw=; b=XEaGhUbE7cdX0ASQN6fi4VQE3vbcLRguHnGbcu01k4NhYYGeK4SRZdQ81SB62fxr+E xqwJz34vlBSBLe0qvghoEvQuc6uxWki/qomst1qOw64cejeem+RG2PZyMkUMAI2m+Ngr 4gQ5oyXPgNcDDuzKj1s72GmD6i6yb/87Oz9Ba3WhNsDVgdfwNKpJqgcrl/qB2TjIGFcm RDdg1I2Yw8NQw4fHG0SBy3C4eZ29ybTjiBBEW8bRmoWm075U7FmURucmR5ToSY1mt+Aj KfLG95U9ae3Zf9tNwicQT0P1PQ9bl2yyiaLyJNi2uvRSq9E06kGkDsNQ0nPtBB0LjoYv ep2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AUOiVeCe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u25si2457847edd.329.2022.01.27.22.22.30; Thu, 27 Jan 2022 22:22:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AUOiVeCe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242439AbiA0Oft (ORCPT + 99 others); Thu, 27 Jan 2022 09:35:49 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:60928 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234071AbiA0Ofs (ORCPT ); Thu, 27 Jan 2022 09:35:48 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1D1C3B822B7; Thu, 27 Jan 2022 14:35:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E6C5C36AE3; Thu, 27 Jan 2022 14:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643294144; bh=PW79X8cPn6ViAnKzMlHMh+jPKdZ8Vtts2c4SdW32Gzo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AUOiVeCeNZFf4AWa8FOVXHRuBed/o2o6B/EcNapzB8ePPOMhpmyKkIqo++Qm62r4J vHRhxxSrHzO7jdW8TUe1ZtOCuvacFsfdGkgHKBBeKW0pBsrRodg9PxEWBVjR0JIvfy A+1YmBxZKEaWwwYfBzbUYkQeX+89pa7zoeFNoU44h41wVWTBvbnbucJ3VrSqhjLYS/ xz5mbETro1Rwxjm0MlXTAhBRD6Ge1fmkZYCjP279qf6UAK5y4IPY9/FgtdfVmFUUVg whN4SzEt0zXclfVCPhbjJ4WdDWLVEnuoIDJ2yFOQnN4+AC4j7k5ksBOxWpqzPPf8af KzvhYU8HVMdQA== Received: by mail-qk1-f177.google.com with SMTP id g145so2737407qke.3; Thu, 27 Jan 2022 06:35:44 -0800 (PST) X-Gm-Message-State: AOAM531JLKM8MlRY3fXNxRMMM1n8T/miefkvfwP559sQBh/4I4WH8jWk rHTpuW8ZkwrXSW3l0jAu2AAtQ68ft6GZUhUpvA== X-Received: by 2002:a05:620a:24cd:: with SMTP id m13mr937625qkn.643.1643294143207; Thu, 27 Jan 2022 06:35:43 -0800 (PST) MIME-Version: 1.0 References: <20220126231427.1638089-1-robh@kernel.org> <1jtudp1rc1.fsf@starbuckisacylon.baylibre.com> In-Reply-To: <1jtudp1rc1.fsf@starbuckisacylon.baylibre.com> From: Rob Herring Date: Thu, 27 Jan 2022 08:35:31 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ASoC: dt-bindings: Centralize the 'sound-dai' definition To: Jerome Brunet Cc: Liam Girdwood , Mark Brown , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Sylwester Nawrocki , Rohit kumar , Cheng-Yi Chiang , Shengjiu Wang , Srinivas Kandagatla , Jonathan Bakker , Krzysztof Kozlowski , Linux-ALSA , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-arm-kernel , linux-arm-msm Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 3:05 AM Jerome Brunet wrote: > > > On Wed 26 Jan 2022 at 17:14, Rob Herring wrote: > > > 'sound-dai' is a common property, but has duplicate type definitions. > > Create a new common definition to define the type and then update all > > the other occurrences to just define how many entries there are just > > like other phandle+arg properties. > > > > The constraints on the number of entries is based on the examples and > > could be wrong. > > > > Cc: Krzysztof Kozlowski > > Signed-off-by: Rob Herring > > --- > > Please ack, this depends on commit abf0fee97313 ("dt-bindings: Improve > > phandle-array schemas") in my tree. > > --- > > .../bindings/sound/amlogic,gx-sound-card.yaml | 4 ++-- > > .../bindings/sound/google,sc7180-trogdor.yaml | 6 ++++-- > > .../bindings/sound/imx-audio-card.yaml | 7 +++++-- > > .../bindings/sound/qcom,sm8250.yaml | 10 +++++++--- > > .../bindings/sound/samsung,aries-wm8994.yaml | 5 +---- > > .../bindings/sound/samsung,midas-audio.yaml | 2 -- > > .../bindings/sound/samsung,odroid.yaml | 9 +++------ > > .../devicetree/bindings/sound/sound-dai.yaml | 20 +++++++++++++++++++ > > 8 files changed, 42 insertions(+), 21 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/sound/sound-dai.yaml > > > > diff --git a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml > > index 2e35aeaa8781..8b5be4b92f35 100644 > > --- a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml > > +++ b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml > > @@ -57,7 +57,7 @@ patternProperties: > > rate > > > > sound-dai: > > - $ref: /schemas/types.yaml#/definitions/phandle-array > > + maxItems: 1 > > description: phandle of the CPU DAI > > > > patternProperties: > > @@ -71,7 +71,7 @@ patternProperties: > > > > properties: > > sound-dai: > > - $ref: /schemas/types.yaml#/definitions/phandle-array > > + maxItems: 1 > > No min or max here. Links may have more than one codec. > > Ex: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts#n158 What do you mean? Every 'sound-dai' there only has 1 phande+args. Each codec is a child node. Rob