Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1220138ybd; Wed, 26 Jun 2019 13:28:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDhCWFUyOrr+bEEou4RQ5qGVNnvoUCyPAoKNmLqup3ck8yO9hoMk4yDxEYF6gxsiEHT83f X-Received: by 2002:a17:90a:dc86:: with SMTP id j6mr1063675pjv.141.1561580917467; Wed, 26 Jun 2019 13:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561580917; cv=none; d=google.com; s=arc-20160816; b=IoFwMWLgj3IB0YZxK8bTy+vkJ3B95ikbgASmGYUqXFCX0HQkP66xf7H3Zf4m6ifkZJ LtJ45VIw8Lp0GiNtwoTjC4kC84NqBsGdIzohkuqThPSdgUfonZdSqsh48cHqloPTl5TJ uN7RLcGT1Lm7bR4tuNyME2umeIRhtcA3XgzA/+0+eG3cxMoGUDMhcg8U9Y4Y6ZW/h+Rn EsbZhkQzn70vU2ThIf2S1je7zuKsgoOtL0E/ecsNWEgOmoeVH1DUCa0YSiONxv1liH45 Lj2FFPoe8lx2UE/iHaNnXHk2ZWC0IuuH1Cnph0vvKQL39gIZDJ310Xqa6jrJbH5+32n4 Na6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=LgZeRxC6RQ5LdUYNQeMc+ciFdAiQ/Cfk+AzdfLEuWwo=; b=g+S2GKAG2zk/iBw6oWAQKjrEDM6Ef2alymnnPamX5Xbhwm72T7oRfhvZ4MbuNLyFgH J01Q5FkWLbUTCMGjiayIzwy4daSB21yoGCYRyBslcNATFIGuAeJr/TBYbj6gvYE9OEIb yJvxzWZmlvraehKjwCMDZVQ7SUeiwSS/r6kONE6Obzvpi+d4MVPqQi88zm3M1+9ENcTu 3QXtpDbamN9aAg2+Y9M+bv8pvjVHgSPU+6S7PFQr0aY4z0bU1NalJqPqqKZIYq0F7S7M odWe7weQPbIIuKXEq4SliNC3Y8k0T6+M685Czuy9D31Pt75OTeX7e6tyVFS1AygfpHVh hcWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=OXD8lcND; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si40461pgs.34.2019.06.26.13.28.20; Wed, 26 Jun 2019 13:28:37 -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; dkim=pass header.i=@sifive.com header.s=google header.b=OXD8lcND; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbfFZU1y (ORCPT + 99 others); Wed, 26 Jun 2019 16:27:54 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:45560 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfFZU1y (ORCPT ); Wed, 26 Jun 2019 16:27:54 -0400 Received: by mail-io1-f68.google.com with SMTP id e3so7918513ioc.12 for ; Wed, 26 Jun 2019 13:27:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=LgZeRxC6RQ5LdUYNQeMc+ciFdAiQ/Cfk+AzdfLEuWwo=; b=OXD8lcNDuVCQF0Os+37dJnhbEhLTPkAGYKnH2K/rTQrBwx0dYPUkpleQC7RAMj5qH6 6Dvz4/TPGz9pp5LOtdWnDvwImdz3fv9wNsqK+8NfJ+K1Okp0MVweKvPjncv+11qG35Dm BXRbMdJxBUt/hIHhj1grg3+gaw7k29crfND37pkXQU0IPETEtomREiM2IA+VVYv4VWFY APcbKHDu2R72a9mxEZbn/0tUBP2BL9dZ2R0eHgDCK6tO7Ib6/eHON231w1wYainB/xg9 xE/LV3MMhKT7qxgfmFSLdVrbWz6A98kF5ZXDqnlZdKlO7+iVTJh3VnjWjnr9hGWe39Fd 8YNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=LgZeRxC6RQ5LdUYNQeMc+ciFdAiQ/Cfk+AzdfLEuWwo=; b=aISd5M+z7di2le7RV09Z+GvJsPFyrF8nBWsTm6BrgcG6vE/12pRxQC4F3uQ3U2644/ wQU2oUXOdxm/tmgxsJTnQ8ZV44rwO5DbXCdCGrJ0L0ma8jNQPPOBzIFh9l2mndGMil8L sSwdWkZ5A9Ipt8z2vAzjeJvR4JUZCuvuB3k9aTSDpBrIPq0Hje7uxs1WILH7qo6vJgH9 QeVQEgIV3P+6jAayB0llYB3Qisyfx+UIQ6tZSw6eUj8SHtHjaBgljffMsHjOuBFHlKnp 6qlu3wht9iio/2ZharA16j3iqr2IHb3piNbaeRCWcTxiAox1tbYEx0+7UbAugSy1Kd9b dcaw== X-Gm-Message-State: APjAAAU/9rL6z7ZszyCoGIo1274i1f/DXgy3N+SY7cjoFRpP/Vdiyndu srjbl53mweGg3H78JCY49apdEibh4jM= X-Received: by 2002:a02:ce92:: with SMTP id y18mr7192147jaq.40.1561580873575; Wed, 26 Jun 2019 13:27:53 -0700 (PDT) Received: from localhost (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id h19sm16188iol.65.2019.06.26.13.27.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 13:27:52 -0700 (PDT) Date: Wed, 26 Jun 2019 13:27:51 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Rob Herring cc: linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] dt-bindings: riscv: resolve 'make dt_binding_check' warnings In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 26 Jun 2019, Rob Herring wrote: > On Wed, Jun 26, 2019 at 9:30 AM Paul Walmsley wrote: > > > > Rob pointed out that one of the examples in the RISC-V 'cpus' YAML schema > > results in warnings from 'make dt_binding_check'. Fix these. > > > > While here, make the whitespace in the second example consistent with the > > first example. > > > > Signed-off-by: Paul Walmsley > > Cc: Rob Herring > > --- > > .../devicetree/bindings/riscv/cpus.yaml | 26 ++++++++++--------- > > 1 file changed, 14 insertions(+), 12 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml > > index 27f02ec4bb45..f97a4ecd7b91 100644 > > --- a/Documentation/devicetree/bindings/riscv/cpus.yaml > > +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml > > @@ -152,17 +152,19 @@ examples: > > - | > > // Example 2: Spike ISA Simulator with 1 Hart > > cpus { > > - cpu@0 { > > - device_type = "cpu"; > > - reg = <0>; > > - compatible = "riscv"; > > - riscv,isa = "rv64imafdc"; > > - mmu-type = "riscv,sv48"; > > - interrupt-controller { > > - #interrupt-cells = <1>; > > - interrupt-controller; > > - compatible = "riscv,cpu-intc"; > > - }; > > - }; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + cpu@0 { > > This only works because you removed 'cpus' and therefore none of this > schema is applied. I'm not following you - could you point out where "cpus" was removed? > > + device_type = "cpu"; > > + reg = <0>; > > + compatible = "riscv"; > > According to the schema, this is wrong. It should have 2 strings. Or > the schema needs to allow this case, but 'riscv' is too vague to be > very useful. OK, I'll come up with something for Spike. > Also, I noticed that there's still a riscv/cpus.txt. That should be > removed and replaced with this file. Looks like the hart description > at least should be copied over (into top-level 'description'). OK, will do that when I hear back from you. - Paul