From patchwork Tue Mar 30 03:06:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 411676 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4109509jai; Mon, 29 Mar 2021 20:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0k5upIsHGiG8+BPTqoRFfjTaYsGWnWlvxfO+wGxgD/SvtcdEWegJtFaID4g9wvn+M/VOL X-Received: by 2002:a17:906:78d:: with SMTP id l13mr31791199ejc.97.1617073673429; Mon, 29 Mar 2021 20:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617073673; cv=none; d=google.com; s=arc-20160816; b=JqphQGqYa+YsZlbUjQJFRTrpjE05uVqLEPPOYYyTbJ2JFD6syJwzdyOgynd5E7Pf3o BGfs9lUfgvWETmOpbUc+VVt6Pxfs1rPmE2KjUDFDK3GC6QdQ8+wUihEq15O9737t/g4p JkI60b6Vp6XTSc4XDPTcfYFRH88nCJzSLWD+BXzc4l9o6s19rmjFOQd94X1Kri5O65Cn h7d9rEpS8AmKDs/3ybYxEnSP758vF6vYX5PKzh8vLqc0SfI/jH8HGgO+F7Qiel+fW76N Nr8+e+Ag5lPVu0145W+fbd2m9zL2X6oEM2gYMnFnLG76brvC+hagBVRacKaUK7U4refP Yu4A== 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=jJ8iQgvypFfhwI5e11C138JsthwIIJ85kvQ3nteVmOI=; b=VAPlPcn3O30Y1e02kQ4KWQKYMiUOiaqFtsQ1SsDJiXGyIjxOhfUvYIkUCIH+dBbap0 Ez8AHBjc6LotgiwXRoJcyHBOsuIdrNmSRRXnO7AinrPOM32M/6AnVJA9e6unnP/CwH8w qEY99vTE/eI/9m+uhAdhHWnoGDTOScRdpIsKb9AjDHoi1knC0oTWKVN6rBdoQJf6e2GB Ffko8USQYUUDj3HgfgEgDoUoalB36F95gj4XZM8AlID47/B1MO+c8OzpnxFZu25a7E3V nvufkfi2HEi8YLMuGfUickoGpzaS2+fTZ3KlGS2FHUIsOvOSWukcofMeXCie34TLQwEm m93Q== 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 p5si15317674edt.116.2021.03.29.20.07.53; Mon, 29 Mar 2021 20:07:53 -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 S231139AbhC3DHU (ORCPT + 6 others); Mon, 29 Mar 2021 23:07:20 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14953 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbhC3DGu (ORCPT ); Mon, 29 Mar 2021 23:06:50 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F8Z6z5BWvzyNB3; Tue, 30 Mar 2021 11:04:43 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.179.202) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Tue, 30 Mar 2021 11:06:40 +0800 From: Zhen Lei To: Liam Girdwood , Mark Brown , "Rob Herring" , alsa-devel , devicetree , linux-kernel CC: Zhen Lei , Kuninori Morimoto Subject: [PATCH 1/2] ASoC: dt-bindings: renesas, rsnd: Clear warning 'dais' is a required property Date: Tue, 30 Mar 2021 11:06:30 +0800 Message-ID: <20210330030631.2253-2-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210330030631.2253-1-thunder.leizhen@huawei.com> References: <20210330030631.2253-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 When I do dt_binding_check, below warning is reported: Documentation/devicetree/bindings/sound/renesas,rsnd.example.dt.yaml: \ sound@ec500000: 'dais' is a required property I looked at all the dts files in the "arch/arm64/boot/dts/renesas/" directory, I found that all nodes that contain the "dais" property have compatible string: "audio-graph-card". So I can be sure that the "$ref: audio-graph.yaml#" should be corrected to "$ref: audio-graph-card.yaml#". In addition, not all nodes have compatible string "audio-graph-card", so the "$ref: audio-graph-card.yaml#" should be described as "anyOf". To ensure the validation of "anyOf" always passes, group it with the "if" statement, because the result of the "if" statement is always not empty. Signed-off-by: Zhen Lei --- Documentation/devicetree/bindings/sound/renesas,rsnd.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 1.8.3 diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml index 2e1046513603ed0..487aeabd1f0e65b 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml @@ -256,8 +256,10 @@ required: - "#sound-dai-cells" allOf: - - $ref: audio-graph.yaml# - $ref: audio-graph-port.yaml# + +anyOf: + - $ref: audio-graph-card.yaml# - if: properties: compatible: From patchwork Tue Mar 30 03:06:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 411675 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4109505jai; Mon, 29 Mar 2021 20:07:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfr0onM4FE1xm8yy8LLGO2TCVAJbAZx2NqS/Sqd/jzd4M5Dnm/CHLs/Vx3NpMnSH870nBT X-Received: by 2002:a17:906:d8c6:: with SMTP id re6mr30331803ejb.311.1617073673020; Mon, 29 Mar 2021 20:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617073673; cv=none; d=google.com; s=arc-20160816; b=kZfI0uOO2VIIrO533WJEaDmouVebqrVnc1Qc/kHhJoKipWs40MCjM2JXKrPK0rMlZS aPNooTQLeK0LU0rriifQV2s3QYVSo4K1eDKHichICDJVGWF2EZwKpBW0e/LyrIFnD7Oo YZOIO6tvkO8ALwZ0/YYxO5F5yhMaTNW9Mlk7vAfK/orSx2N9HX4BbxxLheHmd2IqfyRA RsHkgOtxG/X9zVe/Oh+bI5fjTJ7YOKEAHfYi2xV5ZaoSrmv4CBPEBj8gsr3XQFIeGrjh 03pulG5IFUMbvs2+FhHvQMLYS1IqPBxULjdL++1o437x9dNZThOgDgQL6sSHnXxkPqoL r3qA== 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=K/Fl0R1XypjxMgVCxFZwnLSn8A/NfEx4LL+eP1qYR4Y=; b=UUzlCWGqPDMGQSWedIuufsb1TPJ2YFjcV7g78uyidWeOydLsP2G07DHDMlwM8as3Q1 Nnz3i7fwptAkmgCrvxoRSvva/S/GwgfhkMRznZlBN6C+Amv2YXQheonE+U7H1q9ob9Rl SKmW7BlaD7qUmE76Cfcb8TQvNIaKuhJFYl4BYLqoYB/e8wzkruA/ku9xpujeN67+jPtO RJOie2ge28gEV3++rnEaI4VeC3CBZiERp/hHpxylGY6TZEr/80kA+IEHDWWtCEm94Uu/ SEbg1cE9H+0YWjR0Me1GuIIPVDFeLBFYXq4GhX2TDHzdfa6iebHr8HPjVCVfEbfE8sx7 TDCg== 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 p5si15317674edt.116.2021.03.29.20.07.52; Mon, 29 Mar 2021 20:07:53 -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 S231150AbhC3DHV (ORCPT + 6 others); Mon, 29 Mar 2021 23:07:21 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14952 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbhC3DGu (ORCPT ); Mon, 29 Mar 2021 23:06:50 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F8Z6z5klQzyNF0; Tue, 30 Mar 2021 11:04:43 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.179.202) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Tue, 30 Mar 2021 11:06:41 +0800 From: Zhen Lei To: Liam Girdwood , Mark Brown , "Rob Herring" , alsa-devel , devicetree , linux-kernel CC: Zhen Lei , Kuninori Morimoto Subject: [PATCH 2/2] ASoC: dt-bindings: renesas, rsnd: Clear warning 'ports' does not match any of the regexes Date: Tue, 30 Mar 2021 11:06:31 +0800 Message-ID: <20210330030631.2253-3-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20210330030631.2253-1-thunder.leizhen@huawei.com> References: <20210330030631.2253-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, the property "ports" is always present. So mark it as true, and let audio-graph-card.yaml to check it. 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 | 1 + 1 file changed, 1 insertion(+) -- 1.8.3 diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml index 487aeabd1f0e65b..d3c2899843aee58 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml @@ -112,6 +112,7 @@ properties: - pattern: '^clk_(a|b|c|i)$' port: true + ports: true # use patternProperties to avoid naming "xxx,yyy" issue patternProperties: