Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3510600imm; Fri, 19 Oct 2018 11:49:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV62NQLJ5dNvIXratYjjUUoxxkU9xGhH73hpf6eylwgsKF1JA9cQLqmZE1lJy0+biPqxpkrJG X-Received: by 2002:a17:902:a50e:: with SMTP id s14-v6mr35180350plq.78.1539974972185; Fri, 19 Oct 2018 11:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539974972; cv=none; d=google.com; s=arc-20160816; b=UyvvCF3lBEkrdBPO3fHsaBmqyiOKnJQPFu/Gw63ViBj2QhY5Jk2Qb8Gpqa/Hof7ZKU 5js0zRalb5JKluNktGD/4TVCCEmhzxTHrgOWUV2MUFQUV4lXltQT7pRgxqEq/wTK/Mv+ c+ktlHM2L4kTtTNSY35L53YHGIfrAtT3moNVvSMIQi5WH5eHCQFJc0YUij75SgfEaXOa H0/NBg/kdiq4cubSKGTAZm4kN9RpLlckzaTQdLbtBSZAsDOUM1pkGnZf/NkAJy/7ZrWH u+dFzRG8AmdzMhYPSkgIAMF9Q362gLoCSvjohRwjIuFuO0/fSKvLDPp7DTanWOfOeXJc Na6g== 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=cOR2IJIowt4OkXEi+YRhZzCYyNynhKMj+YhQKSHNISY=; b=FEt1+89X8YDinsdUDWfNIqfbVs7YPrP8fgv9jtd0Ts9hygeX7c3e69z9YR3ZnZF0A1 4SH27HKUDDR7+UPJDCI39Vcp7N4zHBLsdXTEd8uLzgLpxy5pl/RfGv9aQUNIfX1bppqo qeTCfMt70YJsy1y4VUTyiVw3La/SCSP4H0gVQim7LW/ecpAhYmEjT4DfXFh5GCsVzL3b Fgftil+cwm43J9tnDoeoDGTuWaOhlGfr6+bOB+9KYvMcEwLz06dErjRIGKx3wzoueBi+ BU9oZuqyRun1tr6DAs7Noy0nDXIPZYAjknf4ylRGwAhFhw07/CNQmhsOl3uma1iWiEgp PSFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=b05AGQAI; 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 6-v6si24507343plb.230.2018.10.19.11.49.14; Fri, 19 Oct 2018 11:49:32 -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=b05AGQAI; 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 S1727882AbeJTC4D (ORCPT + 99 others); Fri, 19 Oct 2018 22:56:03 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:34670 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727410AbeJTC4D (ORCPT ); Fri, 19 Oct 2018 22:56:03 -0400 Received: by mail-it1-f193.google.com with SMTP id l127-v6so4875792ith.1 for ; Fri, 19 Oct 2018 11:48:44 -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=cOR2IJIowt4OkXEi+YRhZzCYyNynhKMj+YhQKSHNISY=; b=b05AGQAIPo7lxePa3iJZHr567v2l0b1Ldjzm9JRACleC3LvzBJ0xWPmsgxRnryqdBt YeTO1tYInccCiJaaufah4L8Ved1wewZUMd0DQ81EqJuvq5A/fdjJC+Sbs73X2aULDE89 PUZVsd1a/XQNYvxkjkaYk+Iq19TgsRJWUO2Vzyu7eBcd0ZMe8vo/IHylolKsWc6V0xVO 2tag9wlOooNX0JQcRYvl+v7PCuctHV37IvmZAsa0nlhFRWEiZ7cjS43PiqXCSPXbAST3 0ahwt44fYM9F0VvKyYxgyqfEJQE+pIWSzeXlPp0tet8m2A+Z3bkBQrm9rmfPQZbM5mfn QWYQ== 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=cOR2IJIowt4OkXEi+YRhZzCYyNynhKMj+YhQKSHNISY=; b=hZjv0uvq3+Of89kFGF+IVX7OvDrbnqkrv+9CgODIxH13dBQzXCM9HY6z3LgJIYBvLT YZSJMe1Q46gkmXSmcvY0D2VPcUiOyRPoTvvEZYTe0IS346hT9mBqnrBSPk8oDyjuNb8I 0GatTkKCS8pYvNndGWXo+PXCZcfqEdxkZMNCHnhoJtB2Y2+cyP1Hz3J8J8p6wOUj/LT7 s5PjF8uB4ltjgDF84kc1lMgesmx6RmSO8Jksl3OsLLD/sbFSb6hZQC+q1lx1J90p1RMa ECJB3zmzcuwWnIYZl/O4jFqCrZNzz+wg6GXk7d7KCouXRN4GadzEdvt/sYa4Ezvb0Pp0 HODw== X-Gm-Message-State: ABuFfoiFnyum0tqIKc4qPRHfOm0rdyR+3vXSEMoSzBmiJxYiBqCCiVVP 7NREXSRn7Panb103uKZeml5MIQ== X-Received: by 2002:a24:f884:: with SMTP id a126-v6mr4051948ith.113.1539974924382; Fri, 19 Oct 2018 11:48:44 -0700 (PDT) Received: from viisi.dia.dnvr ([67.133.97.101]) by smtp.gmail.com with ESMTPSA id f9-v6sm7528873iok.25.2018.10.19.11.48.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Oct 2018 11:48:43 -0700 (PDT) From: Paul Walmsley To: linux-serial@vger.kernel.org Cc: Paul Walmsley , Greg Kroah-Hartman , Jiri Slaby , Palmer Dabbelt , Wesley Terpstra , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 0/2] tty: serial: add DT bindings and serial driver for the SiFive FU540 UART Date: Fri, 19 Oct 2018 11:48:26 -0700 Message-Id: <20181019184827.12351-1-paul.walmsley@sifive.com> X-Mailer: git-send-email 2.19.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 (with appropriate patches to the DT data). The patches in this series can also be found at: https://github.com/sifive/riscv-linux/tree/dev/paulw/serial-v4.19-rc7 This second version fixes a few problems identified by the 0-day build system, mostly focused around remnants relating to CONFIG_CONSOLE_POLL, and a missing spin_unlock() in the ISR. 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 | 21 + 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, 1116 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/sifive-serial.txt create mode 100644 drivers/tty/serial/sifive.c Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Palmer Dabbelt Cc: Wesley Terpstra Cc: linux-serial@vger.kernel.org Cc: linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org -- 2.19.1