From patchwork Wed Mar 31 09:16:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 412839 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp326105jai; Wed, 31 Mar 2021 02:17:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUrjdnb9EcP1CIzqXDxz8g/TBpAu8tcYL/aI7n6VuCfirktT3/T1YpCmJRbwuA8jS16oK2 X-Received: by 2002:aa7:cb97:: with SMTP id r23mr2464445edt.106.1617182264358; Wed, 31 Mar 2021 02:17:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617182264; cv=none; d=google.com; s=arc-20160816; b=xj4sR0uCsz8ELK6AQ7HVBTCTI+UVJoEFUvJhvF17gyt57ySn+sTbQ8bT8ysoENMdMX BPPsh9jMltc351wSebiEmldarVTbPI5AUC+H6ASgMvi1gTsyhJLWxKyFrDZ0/DxrY4VL zgT1JpHWCTiAdISimO44Rk5A20RhJvys2rmAuSas9LDiyAebDdJkEiIqgOTVx0vJSzKT dwpzup5iBhGbVuvHW02tOEYOEY6N3b645opGv+wJvcEWcrfA4aeuczwnp3W9FgFRk5RT V+gytcxo902H4DOrClH6jiheTrbA2KjPPtqeiEVLFeJmFU/G6RNtVP73Tu6qN9vTML4A Ztsg== 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; bh=quxY18kIoknEXpLAiycQOHqakEW+6PwPo2Pyr2subLg=; b=tmp38U2IzQokut+nAx/Zv2EQojroliD/2fs4INKtBZOKpsT6NCaxJUSB6Jsw7nyXTT z28QIgMq92HJwVlp/YqV7OBhfxTYYAZJT6e20bZztL4nnNf8ZYEVPejebMA4xIo/d6ex UfJ4Ur7vAFK8A3iyWTg2a0FiIbfDfDhTkcbLVngradIXpniBG/G9w73OIQJjQsjBGmXq by5Xul9As7qgCSpXZl55Z41iAo42I3YNTRuQVi7lf2v+/iwFesLxHvrqKyW8OwNgLjgu QMXq0LaOP139Q/UpgXRxiWX73kS5TCv8urrY1HL2ojxU+oBqCaseR0SUNdXDLIuvM3uy Tgfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si1148990ejy.55.2021.03.31.02.17.44; Wed, 31 Mar 2021 02:17:44 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234559AbhCaJRP (ORCPT + 6 others); Wed, 31 Mar 2021 05:17:15 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14974 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234593AbhCaJQi (ORCPT ); Wed, 31 Mar 2021 05:16:38 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F9LHB5cHdzyNLl; Wed, 31 Mar 2021 17:14:30 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.179.202) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Wed, 31 Mar 2021 17:16:26 +0800 From: Zhen Lei To: Liam Girdwood , Mark Brown , "Rob Herring" , alsa-devel , devicetree , linux-kernel CC: Zhen Lei , Kuninori Morimoto Subject: [PATCH v2 2/2] ASoC: dt-bindings: renesas, rsnd: Clear warning 'ports' does not match any of the regexes Date: Wed, 31 Mar 2021 17:16:16 +0800 Message-ID: <20210331091616.2306-3-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210331091616.2306-1-thunder.leizhen@huawei.com> References: <20210331091616.2306-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.179.202] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Currently, if there are more than two ports, or if there is only one port but other properties(such as "#address-cells") is required, these ports are placed under the "ports" node. So add the schema of property "ports". Otherwise, warnings similar to the following will be reported: arch/arm64/boot/dts/renesas/r8a774a1-beacon-rzg2m-kit.dt.yaml: \ sound@ec500000: 'ports' does not match any of the regexes: \ '^rcar_sound,ctu$', '^rcar_sound,dai$', '^rcar_sound,dvc$', ... Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/sound/renesas,rsnd.yaml | 5 +++++ 1 file changed, 5 insertions(+) -- 1.8.3 diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml index 384191ee497f534..a42992fa687d3f3 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml @@ -115,6 +115,11 @@ properties: $ref: audio-graph-port.yaml# unevaluatedProperties: false + ports: + patternProperties: + '^port@[0-9]': + $ref: "#/properties/port" + # use patternProperties to avoid naming "xxx,yyy" issue patternProperties: "^rcar_sound,dvc$":