Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5620946yba; Thu, 11 Apr 2019 02:02:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8xVQ8wDidZnyovxj3YjYpIE+srhfkpGgCEOC1/q5n6jhKMM7p1eE7xLVLoKJ7LB+5rKiH X-Received: by 2002:a63:e818:: with SMTP id s24mr45649498pgh.190.1554973332962; Thu, 11 Apr 2019 02:02:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554973332; cv=none; d=google.com; s=arc-20160816; b=A74YkIGzqIF2vjRHfA+E4iKy1ev4aWo3ncCSBOTQGbFTkwz9sd3cWnaSlO0cg83Bfy 4bEh5PFmBiOii9LsC2ikVSbOj5ENvzSYM6NxBj/SJL463vK/D1rNP9cVk7Nhu757aDYf pZHfW/HBEeAAzMuaebNxvpNOlmYS4T4iyTc5En2zzCxmR3f1WBph2szaoDfe3sx8h0G5 bpOEVmzC1biWpqDUz171DuVHySyabejqJfXubSkvvEYcBvvHygcv5EkvBxZDV8pB7EGL oKwg3rsiA+HX5PXpi5589LDqtWQoCbvHSeDlLfxGarUrHsl+qlvZ07zPI7X5xYRrU6tP Nzuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RTF2E5ylTuzDMJPP0P/IBxfb/0jpKGQmyA7LKmJUhec=; b=Ch/ibgClBZawUZnuNBjifO2Gs06qDNxVgrF289/ZkqU2ghu/TnYDcjnOlN/nC73Ety vkT6yVcMJu77+/xA4AQAnZ2hvlsUIsOm6zYwl2NFszZhyjhOuccSAZijs8T7Y5baOhqR IxcYJEsZ/DGFCDW1r+BTWvD0KQCBK6LdeCRBbnzME/SEG5eWYebFIv44pDLWvkV+2xGc XO4TttUH4j+GuZnD+//jSJOLrQn6BPfX6i5cVRJCkM8rQxoVDsPQghAAHDe9nOD6TvYA SPQaHDH4gOgcb6yZm9AJhvE1sQJjMRa0+m+QvC9BssLA+QHUx061Fr0ak4bYBtXZrHar S1Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=YjzrK8ED; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 92si24559625plw.138.2019.04.11.02.01.57; Thu, 11 Apr 2019 02:02:12 -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=@sifive.com header.s=google header.b=YjzrK8ED; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726965AbfDKJBG (ORCPT + 99 others); Thu, 11 Apr 2019 05:01:06 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39389 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726923AbfDKJBE (ORCPT ); Thu, 11 Apr 2019 05:01:04 -0400 Received: by mail-pl1-f194.google.com with SMTP id a96so3099773pla.6 for ; Thu, 11 Apr 2019 02:01:04 -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=YjzrK8EDpinqDyuf+0WcBG1czU3cBjLySNPlPbFj8F7zwCaovVSQ0D45HHeNZSejDT hKiE/E/5rvXNVUNFnjqA6ru/i/uFCk/8KbPzGLzXjEfr+n1zFljh1aHzCa2TQzXx59ES S0lf9CWNKLzObegKAw1apyctW1Ez4t6wEufimawPjVtvOOGDt62rTFdqY4jH4CWNm7YX z3KPkdBso4jH+OtB0/rj2zcSUaAI4KPKEXmeSp89QBHLa/sd1ug1gTwaSWPy/wYb2av4 rsfy3E0Fzt5pxSNWLR6OL0nJYyYlcVOZr/9gJyKNNSh38NqApJttIvc6Oj9Rr6Y15v3y Xomg== 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=VuMyxUIrgb5jNITKLYdeuMTRey9XxF/7RijoSuAYJh1+MzLN+nq1/JDNT9fhhA5UPr XL3UwRJC+uZZq0fbsg/6AG75Zz0zMECL2c6vU6J5Ire60/ofQxsJONDWMgwPwO+Ln99u K3EHn8Ogj5cmhiEXqBOTc412UozO64QtKRblUfhG3A4D/UtjqZDzjh1EFHVYcpr2cO+I H1B1oi1QiijjTvbe41RNCLscnjF0FPOayNfx6HtvSww73CQOtgpmrtyG+avG8SdpYMhf zqfdqLqKa6m6o59I4O4OOYPu0xtnAvdAYLyOlFB4Xu0ljVi3B8XcvgsCusxgCBVMX8PZ q3Hg== X-Gm-Message-State: APjAAAWtPYSwgWOwgO/71hT1NzpKLGEaYZkWRGj9HU1jeLvJELOzqFVQ aOZqK2mSgwQDnApsOWHZkbWpT83LUqs= X-Received: by 2002:a17:902:b484:: with SMTP id y4mr48779055plr.88.1554973262483; Thu, 11 Apr 2019 02:01:02 -0700 (PDT) Received: from viisi.sifive.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id m2sm64317272pgr.74.2019.04.11.02.01.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 02:01:01 -0700 (PDT) From: Paul Walmsley To: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, gregkh@linuxfoundation.org Cc: Paul Walmsley , Paul Walmsley , devicetree@vger.kernel.org, Rob Herring , Mark Rutland , Palmer Dabbelt Subject: [PATCH v4 1/2] dt-bindings: serial: add documentation for the SiFive UART driver Date: Thu, 11 Apr 2019 02:00:28 -0700 Message-Id: <20190411090027.8670-2-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190411090027.8670-1-paul.walmsley@sifive.com> References: <20190411090027.8670-1-paul.walmsley@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- .../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>; +}; -- 2.20.1