Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1964445pxb; Mon, 20 Sep 2021 09:06:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy26hKWL+D7eQZYUgaZ37G/dtZQuZXwzLjpjgqx1PQYThvzLQTuV66zOT4x/19JNJ1BnCM5 X-Received: by 2002:a05:6638:ac1:: with SMTP id m1mr3656896jab.74.1632153996714; Mon, 20 Sep 2021 09:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632153996; cv=none; d=google.com; s=arc-20160816; b=mq8TbueU/ojdHB76HwEyj87btiB9F22Flm9CD/600zvLFR/iNxeKpKqFkgfMoPU0SO QusJ0SS/1tj/DHePSRWKtB09P+wgRp6dhJI+vE0DuN0YVWrp34OVJqvF7x2bfglo5fjq AxoTV2Npu3YUZNZt2IkgJPTVRNbLDs+CLCdUMrZICc8KbKEd1owdEpjeLb3LlBWQ9C7g V8yf4bQ6HSyyo6/dnCenOpvvxmMid/ZW6CtweBJfZ+f0UQXRiu5KfYEjG68P1CPeMfB6 AINatcKBOjGRdQG/hU00qBno5nRBXH+1G4lLtM7oH6vmDuBPHbp791VXkXW5x+7ZJTcF a2PQ== 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=Hpy3V/sG13PHPywsBpAFgAgVqMFWTdCYyEN+iz6691E=; b=VBhbheHYPPBgIV4gzEkL0Qy2Vkeut2ywhd65OrEbEPEkCgb++tktWWkvCdneZMwbxA 5Wz7kSZuy2/U452jcGEVofPtuPtwX9YpQOifXEzYSPSVZ3VQju+sodqYqml8DPbahPli ivK2bbBhYB4vkkmgPO8Hhscz2IHiCnAkVArEoQ7MlwUznZumwMeek9jftcMn2wRONZn9 lCKUoAKUueVZrTnLayTPVu8gAUyQdinyLtTGrLkSfFkZ3DQzsZJatnPfcDuJWonxpMqF XM1mrhK5NNqloyLzlwPm2bufSsV1RBY0Ggf/G4v8FnsLqkgERYDCJTMIE9waoJxjXljy u4Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="t1/6VbpW"; 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 r20si14744708jad.99.2021.09.20.09.06.22; Mon, 20 Sep 2021 09:06:36 -0700 (PDT) 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="t1/6VbpW"; 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 S233586AbhITM6w (ORCPT + 99 others); Mon, 20 Sep 2021 08:58:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:58228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbhITM6v (ORCPT ); Mon, 20 Sep 2021 08:58:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2DAE96109D; Mon, 20 Sep 2021 12:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632142645; bh=3Y4gQvacVMDsvloS8gj8JrRb56U+3j+/P9qgEmbnLxQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=t1/6VbpWrRN93zO/7PLoh+fho0IqhrImeOpjdU4IY33UR2RAo7KLD276fmnMAqpg8 jCF6414qDCbijwCEbh81qJABpbSW3o1mSNMt+CitGM2rzApfyMATlyU3QFE4BoEArv R6FKYy/zO//2UHZgqUlfWafI78znpa+tbcapZu+vLR/lfXcqteI6kLj2ANMBlncaW5 Ui37uFBr0wFioz20MQzDVrJnIAhTN7NUMZFYBt0mWrniRdWQWCeEW2OzX9EHbyW7x7 TZWwQjqDLn81DMH9k4YnT/5wVaC+QtBcwDo6qwbQ7VO56O2zlqYW3UlhGkFhwOpyJn S1Hl8sOxy1YNQ== Received: by mail-ed1-f51.google.com with SMTP id dj4so4947047edb.5; Mon, 20 Sep 2021 05:57:25 -0700 (PDT) X-Gm-Message-State: AOAM532RAds5bAaN7qhvT36q0eww3Y2EF7DoaTxiH4KBWYoiY7Al2O+a O6lD7jTFW2dPaQeBfy6Zhja6yVzJEJGq+cTSKw== X-Received: by 2002:a50:e004:: with SMTP id e4mr29223066edl.164.1632142643564; Mon, 20 Sep 2021 05:57:23 -0700 (PDT) MIME-Version: 1.0 References: <1630686919-19495-1-git-send-email-spujar@nvidia.com> <1630686919-19495-3-git-send-email-spujar@nvidia.com> In-Reply-To: <1630686919-19495-3-git-send-email-spujar@nvidia.com> From: Rob Herring Date: Mon, 20 Sep 2021 07:57:12 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/3] ASoC: Use schema reference for sound-name-prefix To: Sameer Pujar Cc: Mark Brown , Liam Girdwood , Thierry Reding , Jon Hunter , Stephan Gerhold , Jerome Brunet , Linux-ALSA , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-tegra Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 3, 2021 at 11:36 AM Sameer Pujar wrote: > > Use schema reference for 'sound-name-prefix' property wherever > necessary. > > Signed-off-by: Sameer Pujar > Cc: Jerome Brunet > Cc: Stephan Gerhold > Cc: Rob Herring > Reviewed-by: Jerome Brunet > Reviewed-by: Rob Herring > --- [...] > diff --git a/Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml b/Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml > index ffb8fcf..68e5ad2 100644 > --- a/Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml > +++ b/Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml > @@ -9,6 +9,9 @@ title: NXP/Goodix TFA989X (TFA1) Audio Amplifiers > maintainers: > - Stephan Gerhold > > +allOf: > + - $ref: name-prefix.yaml# > + > properties: > compatible: > enum: > @@ -21,12 +24,6 @@ properties: > '#sound-dai-cells': > const: 0 > > - sound-name-prefix: You can't remove the property. This is now a warning in linux-next: Documentation/devicetree/bindings/sound/nxp,tfa989x.example.dt.yaml: audio-codec@34: 'sound-name-prefix' does not match any of the regexes: 'pinctrl-[0-9]+' From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml Documentation/devicetree/bindings/sound/nxp,tfa989x.example.dt.yaml: audio-codec@36: 'sound-name-prefix' does not match any of the regexes: 'pinctrl-[0-9]+' From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/sound/nxp,tfa989x.yaml Just 'sound-name-prefix: true' is fine > - $ref: /schemas/types.yaml#/definitions/string > - description: > - Used as prefix for sink/source names of the component. Must be a > - unique string among multiple instances of the same component. > - > vddd-supply: > description: regulator phandle for the VDDD power supply. > > diff --git a/Documentation/devicetree/bindings/sound/rt5659.txt b/Documentation/devicetree/bindings/sound/rt5659.txt > index c473df5..013f534 100644 > --- a/Documentation/devicetree/bindings/sound/rt5659.txt > +++ b/Documentation/devicetree/bindings/sound/rt5659.txt > @@ -42,7 +42,7 @@ Optional properties: > - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin. > - realtek,reset-gpios : The GPIO that controls the CODEC's RESET pin. > > -- sound-name-prefix: Please refer to name-prefix.txt > +- sound-name-prefix: Please refer to name-prefix.yaml > > - ports: A Codec may have a single or multiple I2S interfaces. These > interfaces on Codec side can be described under 'ports' or 'port'. > diff --git a/Documentation/devicetree/bindings/sound/simple-audio-mux.yaml b/Documentation/devicetree/bindings/sound/simple-audio-mux.yaml > index 5986d1f..c597d9d 100644 > --- a/Documentation/devicetree/bindings/sound/simple-audio-mux.yaml > +++ b/Documentation/devicetree/bindings/sound/simple-audio-mux.yaml > @@ -13,6 +13,9 @@ description: | > Simple audio multiplexers are driven using gpios, allowing to select which of > their input line is connected to the output line. > > +allOf: > + - $ref: name-prefix.yaml# > + > properties: > compatible: > const: simple-audio-mux > @@ -21,12 +24,6 @@ properties: > description: | > GPIOs used to select the input line. > > - sound-name-prefix: Here too, but I guess we don't have any example to throw a warning?