Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2060463ybe; Tue, 3 Sep 2019 07:26:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIcKEC1tLsWx4dd8KzJqFEVgey18G91jSXtnFf/aNCpiBw/nuklkefSroNi6Rja/gcXfkr X-Received: by 2002:a63:30c6:: with SMTP id w189mr29500397pgw.398.1567520804365; Tue, 03 Sep 2019 07:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567520804; cv=none; d=google.com; s=arc-20160816; b=fhTTW64kJtOGjkmVkd0YV9jic/RsPF6dztjQ4G7vytQo5JqQ1mR1L0EIY+JLyWDiz6 kOMNTn3L2IqyDrbWkKGVHSFfLmnyIounxnQGNiHvGD0FcQFZEkzGwtN/R50KewbGKacU zIDvIaP+2/KkfvWxVeacJJC7WtomvEeaQh0m4QGSXdZ2C2+R54UG+92Ovldf1fkzTw0W ovrqnikunH200y4i8fULaIW7+EwekW4ubjYKPVRRX6z3wTFqLImYpq6mTOmIyFdUn4xx kSxcx5kSMB54XDud/9O3MORK3Xc3ekWZ5sEy0dGUIh7QP03Sd4RYJvf6jWG5rDJ74W3M KSGA== 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=hv/qo23EAseVAU9huHeNt4bvLBR4wEzjBkIsHxljgt4=; b=LlIJLwqjoFKtfW8d4QiGPQsxuLuIIc/T16oKG+wXiJyTSi/250wHbMKtAGjjVfJ3Ue EEU5Mh8s89jgJTGz6t4asDOtdQFI8H1I9dtzHIe+C8Cb1w8ogx0id02jcMIcxZanp95T U69rkSRGcGa8sF4aO0nnC9Uy5qdOT6chLSp3EDknc8+IKcIHdcdF08Hw/qyIXQ+14BEt igdUwhhYZMpokI1WILzgL98mYMxgJrYs7y6/tYAZNUp1QElGmEU/MermJYxgNO+Iq4ZV w6IRp0GUsVvJbjl8dl1gfdFot888nndt4iLoTmMJT2tWJVwVz8nXMmkNc8r3NXreuBEx 4+vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B2R+gSM9; 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 f59si14813776plf.220.2019.09.03.07.26.28; Tue, 03 Sep 2019 07:26:44 -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=B2R+gSM9; 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 S1729452AbfICOY1 (ORCPT + 99 others); Tue, 3 Sep 2019 10:24:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:59174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728571AbfICOY0 (ORCPT ); Tue, 3 Sep 2019 10:24:26 -0400 Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 3E73E23711; Tue, 3 Sep 2019 14:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567520665; bh=8p5CNP6BskSbrJouAkp8CPkNDKbbnxS4GqAgIpkH6xI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=B2R+gSM9rCpwwImgfy85EdsLDtBELWH16KyE5jnVu6rMk/fnE90aUQem6v2XWvhGf k187E2P7dJzAQq21/bxqLFjTfcDwxI4s0zB0DI1KjPrC3bTJke79uRme6/hIbw95Qo Jr37leZG9ug9RjQwyWe1JTR6as0m6fgK8FKGiZcg= Received: by mail-qt1-f171.google.com with SMTP id t12so20107545qtp.9; Tue, 03 Sep 2019 07:24:25 -0700 (PDT) X-Gm-Message-State: APjAAAXpaUAGUjWpVW0gIbhTWp3YPdGRKivCs7xig8QkINW9tmclfvT0 w6RGbqk3WxiPMck4Y4AGLXnAqvLsSAjkftqI+Q== X-Received: by 2002:a05:6214:1042:: with SMTP id l2mr4516540qvr.39.1567520664326; Tue, 03 Sep 2019 07:24:24 -0700 (PDT) MIME-Version: 1.0 References: <1567321765-3738-1-git-send-email-pragnesh.patel@sifive.com> <5d6d1b81.1c69fb81.7eabb.cabd@mx.google.com> In-Reply-To: From: Rob Herring Date: Tue, 3 Sep 2019 15:24:12 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: serial: Convert riscv,sifive-serial to json-schema To: Pragnesh Patel Cc: Palmer Dabbelt , Paul Walmsley , Greg Kroah-Hartman , Mark Rutland , Albert Ou , "open list:SERIAL DRIVERS" , devicetree@vger.kernel.org, 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 Tue, Sep 3, 2019 at 7:52 AM Pragnesh Patel wrote: > > On Mon, Sep 2, 2019 at 7:09 PM Rob Herring wrote: > > > > On Sun, Sep 01, 2019 at 12:39:21PM +0530, Pragnesh Patel wrote: > > > Convert the riscv,sifive-serial binding to DT schema using json-schema. > > > > > > Signed-off-by: Pragnesh Patel > > > --- > > > .../devicetree/bindings/serial/sifive-serial.txt | 33 ------------ > > > .../devicetree/bindings/serial/sifive-serial.yaml | 62 ++++++++++++++++++++++ > > > 2 files changed, 62 insertions(+), 33 deletions(-) > > > delete mode 100644 Documentation/devicetree/bindings/serial/sifive-serial.txt > > > create mode 100644 Documentation/devicetree/bindings/serial/sifive-serial.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/serial/sifive-serial.txt b/Documentation/devicetree/bindings/serial/sifive-serial.txt > > > deleted file mode 100644 > > > index c86b1e5..0000000 > > > --- a/Documentation/devicetree/bindings/serial/sifive-serial.txt > > > +++ /dev/null > > > @@ -1,33 +0,0 @@ > > > -SiFive asynchronous serial interface (UART) > > > - > > > -Required properties: > > > - > > > -- compatible: should be something similar to > > > - "sifive,-uart" for the UART as integrated > > > - on a particular chip, and "sifive,uart" for the > > > - general UART IP block programming model. Supported > > > - compatible strings as of the date of this writing are: > > > - "sifive,fu540-c000-uart" for the SiFive UART v0 as > > > - integrated onto the SiFive FU540 chip, or "sifive,uart0" > > > - for the SiFive UART v0 IP block with no chip integration > > > - tweaks (if any) > > > -- reg: address and length of the register space > > > -- interrupts: Should contain the UART interrupt identifier > > > -- clocks: Should contain a clock identifier for the UART's parent clock > > > - > > > - > > > -UART HDL that corresponds to the IP block version numbers can be found > > > -here: > > > - > > > -https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/uart > > > - > > > - > > > -Example: > > > - > > > -uart0: serial@10010000 { > > > - compatible = "sifive,fu540-c000-uart", "sifive,uart0"; > > > - interrupt-parent = <&plic0>; > > > - interrupts = <80>; > > > - reg = <0x0 0x10010000 0x0 0x1000>; > > > - clocks = <&prci PRCI_CLK_TLCLK>; > > > -}; > > > diff --git a/Documentation/devicetree/bindings/serial/sifive-serial.yaml b/Documentation/devicetree/bindings/serial/sifive-serial.yaml > > > new file mode 100644 > > > index 0000000..56fa935 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/serial/sifive-serial.yaml > > > @@ -0,0 +1,62 @@ > > > +# SPDX-License-Identifier: GPL-2.0 > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/serial/sifive-serial.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: SiFive asynchronous serial interface (UART) > > > + > > > +maintainers: > > > + - Pragnesh Patel > > > + - Paul Walmsley > > > + - Palmer Dabbelt > > > + > > > +allOf: > > > + - $ref: /schemas/serial.yaml# > > > + > > > +properties: > > > + compatible: > > > + enum: > > > + - sifive,fu540-c000-uart > > > + - sifive,uart0 > > > > This is wrong and should have warned if you tested this on 5.3. > > > > items: > > - const: sifive,fu540-c000-uart > > - const: sifive,uart0 > > > > Thanks for the correction, i will update this in v2 patch. > > I haven't got any warnings due to my patch. > For your reference, following is the list of warnings when i did "make > dtbs_check" (kernel version - 5.3.0-rc7) Thanks for the confirmation. I've now fixed it to correctly catch that. Update your dtschema to the latest. Rob