Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp82844ima; Sat, 20 Oct 2018 03:13:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV60xFr3CJKiEQzE2DgS1vjNFjll6NynqlHD1PNQb127kaI4x5C7dNB5q1Adj8dYDW7BTzhGQ X-Received: by 2002:a65:4845:: with SMTP id i5-v6mr13278164pgs.399.1540030439005; Sat, 20 Oct 2018 03:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540030438; cv=none; d=google.com; s=arc-20160816; b=j+hjSH5/Y1NrftG72mU+lj1gdqKljffXCOf4PK8x5K1BJddZKp+EBQWm+uHonkY0m5 wbqt3AqMzqFyb6geNwK7/RphLBXn0jLVVEfu2vkwBvRniavIOkgE4bJ10EN3I8PXz6WL VlDGWR9SfJyqcUA2HuIy3FrEWpouwVTzsx6BM/1M+lDJAQ4QBFDqnVo2Z3avVOAK+TkK 2CN6hNMSuPWkP/cPUOzu3fAghKZUdw1mtT6iu7ESAXrBiKyxl3cFUtFmXx01FiZSdvg0 DZnqxPSEyro+7nYFBiibDwRkvgS8g8p2mpQTHRRbFAMrnvF2JK2avgthS6r95yat2uJ8 UHgw== 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=wASbXyBYFMcRIkQoK4CDFHurMQnCI3R8vyfKJiCMxpo=; b=W2JISaTHpGufWg8Ocd/QtcuL52e9n4I8WYz4Srvh53huuOCsOt/2c7gGyF6SmGoIdj YbKgLbl6JG0WKMxo9+uEX/IL0ruD+8eHmRKtu9wR11ZjDzD6XhH27e2HfsMYkx5TShXI 8z9kFZSAeRFvvLklu2ti+JUGZ9jQNNnBw+utCeMq1gPwdNYaADjmu+d6u1opR0MhXkK7 ZUZFsYKVFHev7zFp281Z+lqPdK7zGbUfL0g7D4VvaMHRwX4W9rX93En2wGLYN0IWQYaL kk5CMbKX1r/5IsMlui3daSSsuit6/XJKeoCfFoBw9TqgLBoblrXhXimAFmoyfc3XFJDO CP/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="UQ/ifgKT"; 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 f9-v6si29017716plm.126.2018.10.20.03.13.12; Sat, 20 Oct 2018 03:13: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=@sifive.com header.s=google header.b="UQ/ifgKT"; 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 S1727423AbeJTSWN (ORCPT + 99 others); Sat, 20 Oct 2018 14:22:13 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45626 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727393AbeJTSWN (ORCPT ); Sat, 20 Oct 2018 14:22:13 -0400 Received: by mail-wr1-f68.google.com with SMTP id f17-v6so8107126wrs.12 for ; Sat, 20 Oct 2018 03:12:18 -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=wASbXyBYFMcRIkQoK4CDFHurMQnCI3R8vyfKJiCMxpo=; b=UQ/ifgKTmwDizP/mPww3MG4vreiMpQ8AIMKtieTEAr/e5NNsOKHszM+NRRM5OWqRsR qd7ENY4cc1KqZyzybNUHmPRaqI6hA4icH9yhk/XO/ZBZfrz6kYQx9AeN67iH+tBwv+FU V0RC56nui14BWbtNn9eSkTrSwa54zWoy1tp6eRuJzqVI59aqjD/I6MaLS8bPm9LHklNb skVlnVaiuJ1Oprg0CLRSONC3L12mEW3lgYXtpwuxPX+grGwr2ieMHUVwhx2wbVa9g+Ao vDpf340Npqsz22uc4wCjnpaa2VXxa05BQcbbC5DP5C0sUQg5fjAOPqw/un60bBBRGGwc h83g== 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=wASbXyBYFMcRIkQoK4CDFHurMQnCI3R8vyfKJiCMxpo=; b=E7lI662cN+sxJlCuhpaVsT32frCsJ+C5BeFXd9qeWddUfgd2UFlZO9J82KJY6pyerU aJwasqOR/O3amCC2IWD9ZNpNb8REo+7QvXx33DwWkxL2fQ9TciicYBLPEdMVs8yH9c5L H+WqzGbKzRiuU0U6CdYEijOqFpuSn2JLWn0nCa5+gATChAlQ0NSlZeZmY7ZdIqjgjsXx ULSSriF2i+UBw7QUTG1vVmQ499m1/uLhdxXNR59dZNTfnRINNMLMH6K4Wxqp7U4DXUwS rftqBk/Z75g52D+tHFy6MOu8NbCX/Wh3dzDFdZZsbTZzEvSXu9zmtbWdspqLQf4UWoGo 0tbA== X-Gm-Message-State: ABuFfohuF+qP80VjiIr33kwL8QfHdC+O70M0HTQyxwP7KGR6ohz2vLYk HQmUUzUDmetj15/u3ELUY+AEwQ== X-Received: by 2002:a05:6000:1284:: with SMTP id f4mr16331584wrx.140.1540030337812; Sat, 20 Oct 2018 03:12:17 -0700 (PDT) Received: from viisi.sifive.com ([37.152.39.96]) by smtp.gmail.com with ESMTPSA id 2-v6sm23773438wro.96.2018.10.20.03.12.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Oct 2018 03:12:17 -0700 (PDT) From: Paul Walmsley To: linux-serial@vger.kernel.org Cc: Paul Walmsley , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Rob Herring , Mark Rutland , Palmer Dabbelt , Paul Walmsley Subject: [PATCH v3 1/2] dt-bindings: serial: add documentation for the SiFive UART driver Date: Sat, 20 Oct 2018 03:10:46 -0700 Message-Id: <20181020101045.15991-2-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181020101045.15991-1-paul.walmsley@sifive.com> References: <20181020101045.15991-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. 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 --- v3: update description and example for compatible strings, per discussion with 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..a426b18ba049 --- /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-uart0" 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 RTL 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-uart0", "sifive,uart0"; + interrupt-parent = <&plic0>; + interrupts = <80>; + reg = <0x0 0x10010000 0x0 0x1000>; + clocks = <&prci PRCI_CLK_TLCLK>; +}; -- 2.19.1