Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5620733yba; Thu, 11 Apr 2019 02:01:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6kaDunDPalss505jnrSt/ENcXHWjSRYyvhGrHZxgitnZgVwG+KQ+JZ4gQ0wSqXph3JMyy X-Received: by 2002:aa7:9392:: with SMTP id t18mr48871996pfe.45.1554973316134; Thu, 11 Apr 2019 02:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554973316; cv=none; d=google.com; s=arc-20160816; b=aDzAhN65GrmQ5WkWR3TM+enOjc2h8GLJ0yBzxXi3z2knIV8n5j7nWOcfYnZeT/v+Gs QMzVNYwbgJo06uGxqdzqy7k6FVQp+NXZ4D66nmi1Qk+0EvyFRGyfuvs90IFShdTLdRbi R8odL6Id2M38MyMbnQPG8c4WFMbclErmW+Yd5sn4P0hGFJayaG6nJUDMQtp5SOwewcVm E/eYJauYfXeYvU6X1MVo5uCBnp1mFlG78r19Ry6eQLeCt5Uns81oVBWNSd6YrUJ4MqJj 87EcTVIwfB+1yoHhptwn1hfzl92dUdlpffi3rP3YaawZqMEkU98MayFhVPrFPm83NEI7 dA5A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=frJX+t0qve0rvf3r8LM28APcFZPyTl1bsa5j7cIVrPw=; b=YXiOCqcVGTC4JGAwAYWsHp/3ZZHCZEljxLL1s6bHuKf5sRgVw1Oc08Ta5QU8Lvr9Kb aMZ/DJs2eZ4Ka+ILRcx99XRZFQJL3eOc3F/KLjTnZl0f3BIbS0oLrL3qfGHAchu//2h8 tVaIsHwnSzYB1TYga1wAt/uAYBHfCd/tdQ8YHATXJa8dSHoyU9T598SfQEfLHzAroSmz 4q2js0DDJ4FVvhqhBD7WD4tHxN4NGLTjn3eOXHb0CEfvEJCmwmG4EGa6ecWT8S0jI67H EfS2yj6ksEyn4NOQze1HtatJWyGIHM84SKHRexVfuuPmepY3/kdQNGdE59by/YHBpN6H eFhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b="V/AOBYRD"; 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 g20si35513324pfg.207.2019.04.11.02.01.40; Thu, 11 Apr 2019 02:01: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; dkim=pass header.i=@sifive.com header.s=google header.b="V/AOBYRD"; 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 S1726739AbfDKJAn (ORCPT + 99 others); Thu, 11 Apr 2019 05:00:43 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36809 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbfDKJAn (ORCPT ); Thu, 11 Apr 2019 05:00:43 -0400 Received: by mail-pg1-f194.google.com with SMTP id 85so3215317pgc.3 for ; Thu, 11 Apr 2019 02:00:43 -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:mime-version :content-transfer-encoding; bh=frJX+t0qve0rvf3r8LM28APcFZPyTl1bsa5j7cIVrPw=; b=V/AOBYRDlQbzjRGJCoP0AO747lJxK1E0b6yBordaP73mSpH13q3xrnrhAo7zANOhKq /kc9soi71g+8qig/5AewWyq8bnGL+nWI8OMm6oV3nv/CAVOp4y2Ysr+jaifggz6iYR4X u1s/NkK2pvi4yorUXuQcc6i4Vo8NLsAcopOSZSSO9VU4m9kLz5zHlDO65iBEs8LZNo+E GJ9l6L4XHo6zJtu2ouKu3dxI+ZrveejgVIBT5tFmYRzrbwmCTYZ78HDWdwi0kgdWlIfK 4WRYq/O4GXKfNAr9Qz9AAA6meGFpnzsxVDisACP6wMAWtoGmlCQ9kJkx1oKaxcuKh/fD twHg== 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:mime-version :content-transfer-encoding; bh=frJX+t0qve0rvf3r8LM28APcFZPyTl1bsa5j7cIVrPw=; b=JRtMF0APaFKNTjLUrxf4ftZef1ck9wybZuiEpL/RrJHNJZkrkWeqCJBH3fno+5oaQg nrO83Ws7oZ8ZeAVsL5tJpzZl7sy1uXt2GgWAi92+m0zMS7w7GxNoMMlCzTMNXcEk1dY6 Rmo3SEVaHcDNit9EVqaZzj5I0FN4C2c08+frrWG3xyu0hbSB4YwVaZDJMUVN+leP8SmB hVf/+lWcaTf0F6gTBhDiSNg94zX4IhD0K0850GKtbdblQ/1ygwY8H6Oaxaui2VFnUOtx JqznZbxyGeJczj8VHKX4d6PC+th5pIsGsR2W/xFZ4WyvrC3sbM/+QoUu202ulCgHuGKu izMw== X-Gm-Message-State: APjAAAV6lalTSiREyI09vbzePx2ygUQzWuD3T/3rdDgYbm29h9hx8kSS L76XT+wOp6OVAbA99RDrqOzd+u61gjw= X-Received: by 2002:a62:70c6:: with SMTP id l189mr49304294pfc.139.1554973242222; Thu, 11 Apr 2019 02:00:42 -0700 (PDT) Received: from viisi.sifive.com ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id m2sm64317272pgr.74.2019.04.11.02.00.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 02:00:41 -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 Subject: [PATCH v4 0/2] tty: serial: add DT bindings and serial driver for the SiFive FU540 UART Date: Thu, 11 Apr 2019 02:00:26 -0700 Message-Id: <20190411090027.8670-1-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.20.1 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 This series adds a serial driver, with console support, for the UART IP block present on the SiFive FU540 SoC. The programming model is straightforward, but unique. Boot-tested on a SiFive FU540 HiFive-U board, using BBL and the open-source FSBL (with appropriate patches to the DT data). This fourth version incorporates a few more comments from the lists. The patches in this series can also be found, with the PRCI patches, DT patches, and DT prerequisite patch, at: https://github.com/sifive/riscv-linux/tree/dev/paulw/serial-v5.1-rc4 - Paul Paul Walmsley (2): dt-bindings: serial: add documentation for the SiFive UART driver tty: serial: add driver for the SiFive UART .../bindings/serial/sifive-serial.txt | 33 + drivers/tty/serial/Kconfig | 24 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/sifive.c | 1067 +++++++++++++++++ include/uapi/linux/serial_core.h | 3 + 5 files changed, 1128 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/sifive-serial.txt create mode 100644 drivers/tty/serial/sifive.c -- 2.20.1