Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3615314imm; Fri, 19 Oct 2018 13:46:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5ekZTZ+ICTavM/QQ4uYdKUzCBhqd/G3CbkM0njxmXzszj6V5RAPYOKnfqFTQwp/UvbVAcGK X-Received: by 2002:a17:902:b412:: with SMTP id x18-v6mr1260108plr.13.1539982018808; Fri, 19 Oct 2018 13:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539982018; cv=none; d=google.com; s=arc-20160816; b=Ui63/uMGSeQOAAEkXXNAalZ80PiTjizSGJartueD8X9j4Z1c6pB30QWK7v6ziQQB6G Zhci32WI1GRgr6Yw6WqVrtiN0gOzXg/WMbsOmiaV8jnUOM9oU7SalAISyDo6ZkjgH6fN 9s7nn1fHrWUi+LhRgeEAL0M0GBDhvhBrtwWNJt/SitjfJU2WOYQgecjX5BN1mulU4aaE 69pJbqx6encZJ6DrHYn4Cuc2fjUdd3AdByrzVMTWWvT8ZVO91ry3rrhh2hyC7WiwLKxC 7G0S67H/kxy84s9P+J+kTRFW+uAwZ5cEQaTnYQZfH15oTMpIT6y8xanz3PTz0fjp2028 eNGg== 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=WhffH5NaeMSgeDXOYAoM8uHHrgQbHGX+NBVR0KjbTUc=; b=jYiTKh6a2VbXtuEM/NpRGmoxwNdS5mg4WHfB0V1O1t3kiam+zZM143HsIJCBDgIPcF 6KIwpLGLzqk5gftJjJMwEdDs81sT00KbGo38A2lNbf6JR74JkeghJaypSoWZ3Irif6g8 iDUP8eo8IWpBtdehpdFO83G6nMYA7NBd18gyMSlSCFC3fjrG7LdDftQVuqySP7gf2eKO KuqY6boLPV4o1nRAJrqGe1wr9X3oUFTAsRzXjVYDnH8mjCc1/dCFit23Hv8LeobrnDdE T18+cX23FEnvMNCmf8bUqoogmx2H8Vb0YlLo8jyG3OgH7DowziOmyJmUoi4DISXwM9Pz SnDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WuWMGrna; 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 o6-v6si20008199pls.80.2018.10.19.13.46.43; Fri, 19 Oct 2018 13:46:58 -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=WuWMGrna; 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 S1727243AbeJTExw (ORCPT + 99 others); Sat, 20 Oct 2018 00:53:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:53990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbeJTExw (ORCPT ); Sat, 20 Oct 2018 00:53:52 -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 6C79621476; Fri, 19 Oct 2018 20:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539981969; bh=KtDel/ZHHd/BUBoAB/LL1/KWAd74w36v51PrmtIIIkQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WuWMGrnamerbaMAFKKjF3L3lr7D8zYx2dPs/2wGFeFiJYGnGTjLA1WOZGvUDVDNUo JPawMAhj8HLSBakxdn+u9v69VV7Q8N/bloz+On5928sNtzTcbOl18dqWzRWH0DQ8RT F1rQgY4WRDZnfO6w12R/OZSpVVe0V4SSWYI1XTgs= Received: by mail-qt1-f171.google.com with SMTP id j46-v6so39853483qtc.9; Fri, 19 Oct 2018 13:46:09 -0700 (PDT) X-Gm-Message-State: ABuFfogpk2ijc2GljJQvpEX62ZvqpGWcWRxEd89SOZJDEOOKlRSo3Q/I WX0lSWjJzlkb/CyJguVzBoPznYEZVtWYdeNJ8g== X-Received: by 2002:ac8:2d33:: with SMTP id n48-v6mr33372959qta.38.1539981968661; Fri, 19 Oct 2018 13:46:08 -0700 (PDT) MIME-Version: 1.0 References: <20181019184827.12351-1-paul.walmsley@sifive.com> <20181019184827.12351-2-paul.walmsley@sifive.com> In-Reply-To: <20181019184827.12351-2-paul.walmsley@sifive.com> From: Rob Herring Date: Fri, 19 Oct 2018 15:45:57 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: serial: add documentation for the SiFive UART driver To: Paul Walmsley Cc: "open list:SERIAL DRIVERS" , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , Mark Rutland , Palmer Dabbelt , Paul Walmsley 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 Fri, Oct 19, 2018 at 1:48 PM Paul Walmsley wrote: > > Add DT binding documentation for the Linux driver for the SiFive > asynchronous serial IP block. Nothing too exotic. > > Cc: linux-serial@vger.kernel.org > Cc: devicetree@vger.kernel.org > Cc: linux-riscv@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Cc: Greg Kroah-Hartman > Cc: Rob Herring > Cc: Mark Rutland > Cc: Palmer Dabbelt > Reviewed-by: Palmer Dabbelt > Signed-off-by: Paul Walmsley > Signed-off-by: Paul Walmsley > --- > .../bindings/serial/sifive-serial.txt | 21 +++++++++++++++++++ > 1 file changed, 21 insertions(+) > create mode 100644 Documentation/devicetree/bindings/serial/sifive-serial.txt > > diff --git a/Documentation/devicetree/bindings/serial/sifive-serial.txt b/Documentation/devicetree/bindings/serial/sifive-serial.txt > new file mode 100644 > index 000000000000..8982338512f5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/sifive-serial.txt > @@ -0,0 +1,21 @@ > +SiFive asynchronous serial interface (UART) > + > +Required properties: > + > +- compatible: should be "sifive,fu540-c000-uart0" or "sifive,uart0" I assume once again, the last '0' is a version? As I mentioned for the intc and now the pwm block bindings, if you are going to do version numbers please document the versioning scheme. Palmer mentioned the compatible string is part of the IP block repository? Where does the number come from? What's the next version? Major vs. minor versions? ECO fixes? Is the version s/w readable? How do you ensure it gets updated? All that should be addressed. Otherwise, don't do version numbers because we have no visibility to what they mean. > +- reg: address and length of the register space > +- interrupt-parent: should contain a phandle pointing to the SoC interrupt > + controller device node that the UART interrupts are connected to Don't need to document interrupt-parent here. > +- interrupts: Should contain the UART interrupt identifier > +- clocks: Should contain a clock identifier for the UART's parent clock > + > + > +Example: > + > +uart0: serial@10010000 { > + compatible = "sifive,uart0"; > + interrupt-parent = <&plic0>; > + interrupts = <80>; > + reg = <0x0 0x10010000 0x0 0x1000>; > + clocks = <&prci PRCI_CLK_TLCLK>; > +}; > -- > 2.19.1 >