Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp613277ybe; Mon, 2 Sep 2019 06:42:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzUTJ3grSj+4uZ47o066fff9hqvl1V4gm9Kfd/TP9wnHexCuNIZbeWCvRQVf1oAlzB4W19 X-Received: by 2002:a62:7684:: with SMTP id r126mr2965374pfc.26.1567431776710; Mon, 02 Sep 2019 06:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567431776; cv=none; d=google.com; s=arc-20160816; b=s5+vKkbhsTfQ9W1S0jLdvq5EH2i+1mvlRJKVpqmaDyHAh1nHFMvbsiMycsfyPimJMW jV1/knyF9UHeeclNRY2ATDql4cUYK1tNZGZ7PAB/jjP1vh5LCxbCH4AYEW2YHYYeGUwU ABMBrthhnS0f4GL1Cr2YCFTmP3CC8JDJ/cWKnNu94rN6FtIvM0SFhLZTXsxPhOt1ZlHE LyoGG2ptgKsbflvkUUaCX5zI/cLLtkVQtuE8hY5JjKW4mGdwmVjW9m4xKjzSKef8yj23 RQb+If0tRZ8/HZySOvfCGG/hO3AF3Rk4ZAfJ40BjhKFYTvZND1pJFrKrl5Dkh4oJVqgw OkYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:subject:cc:to:from:date:message-id; bh=Ngzz2+0c/jv3SRVMmnFYIH53w6JSEj4AGmcVRCCY2d0=; b=njUbMP2TaTEgXmZm5ZBxnMmgRn2Tx1QOuF21UamGAyraux6/U/DT6KfutUwD+bUjea uCj6OG8LLDw/ZcnlNrZlLxJNEkzCVTKh0Te7fD+WN5h6Dp/t6VKR+w6LHhrx3fxx8RvU ESqkR0AMLrYtG+6QkoZ48/9g4Pb3TNqwHfq5vJFVpFJKMTIeEXB+FDwtkDcr4TlZBhPe WJgQ4WepBhnzLsYhnA2KtEDAWMDJmDY0Rvw1iqPl6Jj1PROYsv0BgOle+Op74Sna46LE Ea0f8hVC/pNI4kzJV2rVCSeBXVBdkm/5c3+rBIPDH9Mu9D0w55uPC6Qn7m96dxh7bk4U 47fQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k67si11408769pgc.26.2019.09.02.06.42.41; Mon, 02 Sep 2019 06:42:56 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731417AbfIBNjh (ORCPT + 99 others); Mon, 2 Sep 2019 09:39:37 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36487 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731259AbfIBNjQ (ORCPT ); Mon, 2 Sep 2019 09:39:16 -0400 Received: by mail-wm1-f67.google.com with SMTP id p13so14704185wmh.1; Mon, 02 Sep 2019 06:39:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to; bh=Ngzz2+0c/jv3SRVMmnFYIH53w6JSEj4AGmcVRCCY2d0=; b=dMvvqHaOWij3qBN2cUYpxdPKSywFhinZVrHUXB8MiGsd/SaZstCyjcrm9E5jthc6ge LNR+G63jaqu+TR8EFaRLs4uLiOw6Itz4lKIY0imHDX2kI9Avp7vi7kOlNJQryWXnCmNb fFSBXor0hJ57eIsz60izjx0Mmq8CU/pMEawwm6QxWZZMdqssLdW7tMedL3bRiIU+nHa6 uhrRl7OfVA3vcemt5agF089J6QOVBx//x8TYBNeGdEmJmY9z0GrY5Wu13qZY+sahrNGk 1RcFbjBweukSOY8Z+sz+wQN9Cke/S4Yt07mRvoL3Ut1UhjaJE/Z+wUrnKNZdT+Z/dNqL E4kw== X-Gm-Message-State: APjAAAV/oh0wmBqR8PUKqUPdNN3NUU0q8+iRknnouvQ69AifYcjPdM3o J+w/hq3cU+xO3eOpruF+hA== X-Received: by 2002:a7b:cb51:: with SMTP id v17mr34925999wmj.118.1567431553507; Mon, 02 Sep 2019 06:39:13 -0700 (PDT) Received: from localhost ([212.187.182.166]) by smtp.gmail.com with ESMTPSA id z21sm2865531wmf.30.2019.09.02.06.39.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 06:39:13 -0700 (PDT) Message-ID: <5d6d1b81.1c69fb81.7eabb.cabd@mx.google.com> Date: Mon, 02 Sep 2019 14:39:12 +0100 From: Rob Herring To: Pragnesh Patel Cc: palmer@sifive.com, paul.walmsley@sifive.com, Greg Kroah-Hartman , Mark Rutland , Albert Ou , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: serial: Convert riscv,sifive-serial to json-schema References: <1567321765-3738-1-git-send-email-pragnesh.patel@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1567321765-3738-1-git-send-email-pragnesh.patel@sifive.com> X-Mutt-References: <1567321765-3738-1-git-send-email-pragnesh.patel@sifive.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > + > + description: > + 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. > + > + 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 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + > +additionalProperties: false > + > +examples: > + - | > + #include > + serial@10010000 { > + compatible = "sifive,fu540-c000-uart", "sifive,uart0"; > + interrupt-parent = <&plic0>; > + interrupts = <80>; > + reg = <0x0 0x10010000 0x0 0x1000>; > + clocks = <&prci PRCI_CLK_TLCLK>; > + }; > + > +... > -- > 2.7.4 >