Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1082398ybd; Wed, 26 Jun 2019 10:53:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGiuJYcxaeWI8qHehM/SJgjPwQp2/Y629xdcM0FSKb8PGc2TCpSC0yJP18/eddRh/VwElu X-Received: by 2002:a17:90a:ac14:: with SMTP id o20mr360747pjq.114.1561571590477; Wed, 26 Jun 2019 10:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561571590; cv=none; d=google.com; s=arc-20160816; b=oR3SvPaUigAiRFsRRzrbgFnzJyu54uMMJ7RWs5gQyEuvlTC6HOUYm6O1hpW+NhUf1S 8rzvJMaOO49lHJfue2zXdXsSXLvochY5rvFM4zL6KttIEuiawB2KumsFN9GjEz5ixZJ6 j20XC+O6Q0W8cIAWpXidKc0x9VHyVjqlOEuZBXoO6i4hlnuya1A+pwtQh1hEib5AM0fp 083GFx8PF960M8b5UA0E2LoUFNKd4MVNJ7obSkevO3+hLbgQD2GqTscGRsWsCpAhmnjQ 6blCazr6QCITAfEY5rYImlqoZalFDPoQAWjxI2RMJbxNt0L21AIzNxzq0LcrUHabY8xz SUnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=zMMOBwt7xx7EFbVScOPGB2rlJa2xcWcxM2Fo2fSjMwM=; b=h1WMKibtVPehQI1/uC7m6iM//zYc2OAQ0LwU+u+SuhTrmLpYHVxY7ZZmt2hS1NZNet ZPwnga7C/IWGtzpz96MVjf9VmBdAG8doNxTx+7+Yu2QBKNeNUkv+kR+nIt3nGlu7KIYf iMEuH6xzWV/ofYekYdXmma/CDloohHdUDQcaDzOaEqLsPeITKpHkmqAzNEnfAoLuLLn9 X+tnZrK/0ndkBWk197U9VQYvFu9HYgvBF73IUwDIihqf15AnEHX/4T6PSfQE+4OjkmsM 8t+k0TISW2wiOAtJ/rqyGJYDqv7GQjJ0BZopGMQQxjKDjQCpHxZvdy3IbE1X8ac08uAz H3xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iTGLj9aH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si16071653pgw.246.2019.06.26.10.52.54; Wed, 26 Jun 2019 10:53:10 -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=@kernel.org header.s=default header.b=iTGLj9aH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726463AbfFZRw3 (ORCPT + 99 others); Wed, 26 Jun 2019 13:52:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:45764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726289AbfFZRw3 (ORCPT ); Wed, 26 Jun 2019 13:52:29 -0400 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DEAB8208E3 for ; Wed, 26 Jun 2019 17:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561571548; bh=S4bu6cwTK6G6hRMIv9GnhZMiK0UIi3WZJaspSurZK8c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iTGLj9aHRqtXaoP5kL+6QCzw5thEdaa1+j11XVbxBG4Xkir9g9ETqPKwLPjOnFrtb dPSzi7QPpH3sx0BlkgIrs0kdLYCzA9MHJSn3bbfpR1/yrVvWvuPjkt1W2a/6P4cA5q 4NerJND/1KUOAE4bg7+g2SrLx6VU0Q1YF/aUlksU= Received: by mail-qk1-f172.google.com with SMTP id a27so2419386qkk.5 for ; Wed, 26 Jun 2019 10:52:27 -0700 (PDT) X-Gm-Message-State: APjAAAXjE/ja0EnJ7LL7NYU8sb+eMYo1h2FuUrfMtHIZOC6GOeWPfAFi X7AUzIYepbjWljYleHeiunmWqigZQX4HhVoM8A== X-Received: by 2002:ae9:ebd1:: with SMTP id b200mr5212035qkg.152.1561571547170; Wed, 26 Jun 2019 10:52:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rob Herring Date: Wed, 26 Jun 2019 11:52:15 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: riscv: resolve 'make dt_binding_check' warnings To: Paul Walmsley Cc: linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + 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. 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'). > + riscv,isa = "rv64imafdc"; > + mmu-type = "riscv,sv48"; > + interrupt-controller { > + #interrupt-cells = <1>; > + interrupt-controller; > + compatible = "riscv,cpu-intc"; > + }; > + }; > }; > ... > -- > 2.20.1 >