Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp286297ybh; Thu, 12 Mar 2020 01:57:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuXj1d+qzYujTtn9/10E7l6VJ1pF46dcaOHqFWBUVtzxainr3Aai+2GhoWmOtNIKuFB5YDM X-Received: by 2002:a05:6830:1081:: with SMTP id y1mr5244735oto.367.1584003456043; Thu, 12 Mar 2020 01:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584003456; cv=none; d=google.com; s=arc-20160816; b=GwT/vQs6SHtvIeJs6iawTPt6ts/g3odfEllO+Mn07ESAu/nlM0/D7MO+BdBKbBQuhK jQcTasbQTS4c4xBNltrDK9F75y0KX45A/HxBYPJjgSBlwpgu/nKSvYhGRjN7ChWI55V1 MBymsFbi+dheFBGHvQATs4cP60ypUBhYV1steCN1+7v2Wtq9zPhcTWEe3KVl9pzjuOix gKM+uYppytGP29HKUJ6fQoAEjMJLll8vHV0TasBkLEKsUOkvJsfBwwwhVWKivLukzeaI fmDPcvUuI0CbN+Etpvm26sraWzGXbNVhvwZs6z3ZZbBVgNroRZ37ni5M2gVVCoQj5naR ZTSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=4mcXlGBFlkHDn2h+ZRvLxML71wCzWLT71MVA3SMmgM8=; b=STtNJ4xnPdxaYoK8cB+cxtJcbWnOZhX2Q74vOepHcnJpE5iMAnNIBj87LC2s6jdE90 Be1HOr/6fNJcQ4EOY8WYVzmN0gPfa46sBcjLfFWCC6itjRogleEf09gQBzsxXN18xmyf 9M1H/G75+oGu0uy66yaOYOjtGEJghGup7DgkVyZGwo5Gh/PPubkD/xs7lXpZN33JFd01 vLU4rToLSDs1EIgqt3k/mKogQLBvIsKAhFOdn0RwSBT+fk4KmBES9ZsdCvh8nJU7MSHm ua/3h9tGi0PETgOPzt0qcGSLaklu7bK6huanUQe7b8Ro5/tNPjw1R4CH8TYnmoMQ3ttc 2lig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y29si1207094ote.208.2020.03.12.01.57.24; Thu, 12 Mar 2020 01:57:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726567AbgCLIz7 (ORCPT + 99 others); Thu, 12 Mar 2020 04:55:59 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39716 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbgCLIz7 (ORCPT ); Thu, 12 Mar 2020 04:55:59 -0400 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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Cheng-Yi Chiang , Guenter Roeck , Liam Girdwood , Benson Leung , alsa-devel@alsa-project.org 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; > + }; > }; > }; >