From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9748C10DCE for ; Thu, 12 Mar 2020 08:56:58 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 68628206FA for ; Thu, 12 Mar 2020 08:56:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="F+bIeSvq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68628206FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AC94416B1; Thu, 12 Mar 2020 09:56:06 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AC94416B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1584003416; bh=7uLHZCwr2uy8ELI0MtJo8bX0vwz17MKh1tX4ACPw7eY=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=F+bIeSvqhiK3uYqlGk4DsuGzs6Y22IhbdU9DhKVNStSMT6qxJ6pmsJnSO4trf1QxS zqMaOI6QkoxCkvc8xnnwdZW43J0O380zJO+w6F7qQqEnvep2cvIp95XQORG1cygHAd bprQzUA93OUIrnPWFl+iOWV03a30j9Vp06F/yQ24= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1DA57F801D9; Thu, 12 Mar 2020 09:56:06 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9CD0DF8020C; Thu, 12 Mar 2020 09:56:04 +0100 (CET) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 70C73F80086 for ; Thu, 12 Mar 2020 09:56:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 70C73F80086 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 47F8C29642E Subject: Re: [PATCH] ASoC: dt-bindings: google, cros-ec-codec: Fix dtc warnings in example To: Rob Herring , Mark Brown References: <20200311205841.2710-1-robh@kernel.org> From: Enric Balletbo i Serra Message-ID: Date: Thu, 12 Mar 2020 09:55:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200311205841.2710-1-robh@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Liam Girdwood , linux-kernel@vger.kernel.org, Guenter Roeck , Benson Leung , Cheng-Yi Chiang X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hi Rob, On 11/3/20 21:58, Rob Herring wrote: > Extra dtc warnings (roughly what W=1 enables) are now enabled by default > when building the binding examples. These were fixed treewide in > 5.6-rc5, but the newly added google,cros-ec-codec schema adds some new > warnings: > > Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:17.28-21.11: > Warning (unit_address_vs_reg): /example-0/reserved_mem: node has a reg or ranges property, but no unit name > Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:22.19-32.11: > Warning (unit_address_vs_reg): /example-0/cros-ec@0: node has a unit name, but no reg property > Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:26.37-31.15: > Warning (unit_address_vs_reg): /example-0/cros-ec@0/ec-codec: node has a reg or ranges property, but no unit name > > Fixing the above, then results in: > > Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:26.13-23: > Warning (reg_format): /example-0/cros-ec@0:reg: property has invalid length (4 bytes) (#address-cells == 1, #size-cells == 1) > Documentation/devicetree/bindings/sound/google,cros-ec-codec.example.dts:27.37-32.15: > Warning (unit_address_vs_reg): /example-0/cros-ec@0/ec-codec: node has a reg or ranges property, but no unit name > > Fixes: eadd54c75f1e ("dt-bindings: Convert the binding file google, cros-ec-codec.txt to yaml format.") > Cc: Cheng-Yi Chiang > Cc: Enric Balletbo i Serra > Cc: Guenter Roeck > Cc: Liam Girdwood > Cc: Mark Brown > Cc: Benson Leung > Cc: alsa-devel@alsa-project.org > Signed-off-by: Rob Herring Just a minor nit, but the patch looks good to me, so: Reviewed-by: Enric Balletbo i Serra > --- > .../bindings/sound/google,cros-ec-codec.yaml | 27 +++++++++++-------- > 1 file changed, 16 insertions(+), 11 deletions(-) > > diff --git a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml > index 94a85d0cbf43..c84e656afb0a 100644 > --- a/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml > +++ b/Documentation/devicetree/bindings/sound/google,cros-ec-codec.yaml > @@ -44,19 +44,24 @@ additionalProperties: false > > examples: > - | > - reserved_mem: reserved_mem { > + reserved_mem: reserved-mem@52800000 { > compatible = "shared-dma-pool"; > - reg = <0 0x52800000 0 0x100000>; > + reg = <0x52800000 0x100000>; > no-map; > }; > - cros-ec@0 { > - compatible = "google,cros-ec-spi"; > - #address-cells = <2>; > - #size-cells = <1>; > - cros_ec_codec: ec-codec { > - compatible = "google,cros-ec-codec"; > - #sound-dai-cells = <1>; > - reg = <0x0 0x10500000 0x80000>; > - memory-region = <&reserved_mem>; > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + cros-ec@0 { > + compatible = "google,cros-ec-spi"; > + #address-cells = <2>; > + #size-cells = <1>; > + reg = <0>; > + cros_ec_codec: ec-codec@10500000 { nit: shouldn't this be just codec@105500000 to match the class? However I am not sure codec is a class itself. > + compatible = "google,cros-ec-codec"; > + #sound-dai-cells = <1>; > + reg = <0x0 0x10500000 0x80000>; > + memory-region = <&reserved_mem>; > + }; > }; > }; >