From patchwork Sat Apr 13 02:01:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 1085030 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.b="CPfLLhzE"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44gyg554Hlz9s7T for ; Sat, 13 Apr 2019 12:01:37 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727110AbfDMCBf (ORCPT ); Fri, 12 Apr 2019 22:01:35 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:32792 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbfDMCBf (ORCPT ); Fri, 12 Apr 2019 22:01:35 -0400 Received: by mail-io1-f67.google.com with SMTP id b6so10215893iog.0 for ; Fri, 12 Apr 2019 19:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RTF2E5ylTuzDMJPP0P/IBxfb/0jpKGQmyA7LKmJUhec=; b=CPfLLhzEBXBWgr/TQWDSJy7ko+31cU3Ek5T/80Is4zI/rTjYZotAlXslVc4H3LD7Ki W4I4ynqy/2Fd5rP/QSHnxHvWQptZ1dWsRL0ShjJ+nubGYEnPZ93EbDoGPZrx6ojNsn+n shacIrgwg3PayIz8E6kKgbuKr6BFF7zQ+FkmWjt49mFqO74ka4pv4cl1z6n2/3BDMCVn 5Xac7Exr6lIIf+0WP/fuE+jKozXzxgczS3U7IFfFp0zXn65yVBXNgH88SuSdHjXZe+5e 2CEYE64IxwhiexQBa80riayxH/4ED4mqsplAdBC1UTq0IjBXvqIwjqc1x23p+w+y6pD6 C5tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RTF2E5ylTuzDMJPP0P/IBxfb/0jpKGQmyA7LKmJUhec=; b=lF4ulB3NCyu8ODkfGhnKkvU3id1i9j3eHpokPMkTexPqraaSZ2sJoN7Ji4SOtsjKKT VaMv7L5rVEa/KL/Xr3CS5kB9mq7Va5cbVCJJhbzOjClqW+PORTZHJwvh7qup3A5JGQL8 KKRhh/S5BRJJmTQGkHdMzPPMBbi/reDgjxfMhw0er/JbKilxzAUA1whEQacYfCaPCrIw Q/yxg4Wahps4vPoZXcSNKWLl9kWQdfJrx6v6iK+dwqL/EApJIDRNCGo2sWVsYLTw+Toj 1DEtDXcGw4V6v3b/fhaJpSH1DD0KsP2hTXVbSKLYbNhlcQSKUrgiKZDT2e91rAHPEDKr iBqg== X-Gm-Message-State: APjAAAWn/U7mk7EgtBIhR9gm1OKgorKMpNoYyOYPMp43sAbV+a/9JN6m rxyIpHULkl3w8atiefNCibzieQ== X-Google-Smtp-Source: APXvYqwTAkwyg4xZSTOFVQsVRlFhKJyJ6oArCM3JsgqV3x61CX/H5CpTflhLAkBH0Q285KiMrIagXg== X-Received: by 2002:a5e:c604:: with SMTP id f4mr17399502iok.263.1555120894511; Fri, 12 Apr 2019 19:01:34 -0700 (PDT) Received: from viisi.lan (c-73-95-159-87.hsd1.co.comcast.net. [73.95.159.87]) by smtp.gmail.com with ESMTPSA id v187sm7198473ita.0.2019.04.12.19.01.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 19:01:33 -0700 (PDT) From: Paul Walmsley To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-riscv@lists.infradead.org, gregkh@linuxfoundation.org Cc: Paul Walmsley , Paul Walmsley , devicetree@vger.kernel.org, Rob Herring , Mark Rutland , Palmer Dabbelt Subject: [PATCH v5 1/2] dt-bindings: serial: add documentation for the SiFive UART driver Date: Fri, 12 Apr 2019 19:01:11 -0700 Message-Id: <20190413020111.23400-2-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190413020111.23400-1-paul.walmsley@sifive.com> References: <20190413020111.23400-1-paul.walmsley@sifive.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT binding documentation for the Linux driver for the SiFive asynchronous serial IP block. This revision incorporates changes based on feedback from Rob Herring . Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley 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: Rob Herring --- .../bindings/serial/sifive-serial.txt | 33 +++++++++++++++++++ 1 file changed, 33 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..c86b1e524159 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/sifive-serial.txt @@ -0,0 +1,33 @@ +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>; +};