Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp705035imm; Wed, 20 Jun 2018 05:25:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKgnJ8foaXsdB7AwlQzWDO9aY6O9KlW+hfyM8LmbHeTBzttNqWPEFmt1qQKYomYUsiy1Ota X-Received: by 2002:a63:9402:: with SMTP id m2-v6mr18315239pge.8.1529497547231; Wed, 20 Jun 2018 05:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529497547; cv=none; d=google.com; s=arc-20160816; b=n62AGogM8R3NG1deQ3VAWjyHQUOT40Vu7wLowkf1+Ip0ee++INkoFs+hPab5GeF6zg hRtNfS/YPF2+iwzYNcXNh6Qr/au+DB8s2NPBhqWJA81SFH6WOjrmWJMnLvfIG/qJmp9d kdauMXMYjUe0dn1Tyso/nV+ycsHpwLO7FA8YbJ817IXpDykqp/sl25OO7XH8H5+QKJw6 m+1D1wPIYHSITpq7S97il6V0qZgWNFrNEyd7/XPPBYMNxlS7bp/nyAiZxKpSK0Fk2DO4 jnVNsD5kdNZT3BDVbKtvHJOB1FK+MvRq+se/PwkVl0ak0jihkX1sNcnTfVh9ytU8Sk1q 0mxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=XdYRnBUMVhGisWErprTpFlJCxETtMnNS7tMCFYUV5DU=; b=Twc9YaP3SFzprP6SI1VrgSHAQYbls7o6GMUXP2jTYdfAXi0GlhFtIbY8hOKTBrxbPE /egKMOiHvHzKmxoFyzYBZFh8posX3a2wg38ikxD2KOIQ75COpZ2gd+v2BZi3pWqlxGoD JMGCqOucjL6BbQKbiRsU6qS0T6QbjXLR+/3Tqa+kHdoRh18KhNDql3/1f/4z8/lAfEho Zps771Na+mZPSuFRCPzRDFlA+JScO4XkJH5UrMaBAsWQWeN2PjPvF3012k0KrimNi64M OEkREfG7V0j2UjCb83iNkck7iDncJMGkEtMH9mKcUJQgwlpvVA5gR2hnqR/NdRptS9iA 5FcQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6-v6si1983153pgt.470.2018.06.20.05.25.33; Wed, 20 Jun 2018 05:25:47 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754063AbeFTMVI (ORCPT + 99 others); Wed, 20 Jun 2018 08:21:08 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:8585 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753266AbeFTMVG (ORCPT ); Wed, 20 Jun 2018 08:21:06 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1, AES128-SHA) id ; Wed, 20 Jun 2018 05:21:07 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 20 Jun 2018 05:21:05 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 20 Jun 2018 05:21:05 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 20 Jun 2018 12:21:04 +0000 Received: from HQMAIL106.nvidia.com (172.18.146.12) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 20 Jun 2018 12:21:04 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL106.nvidia.com (172.18.146.12) with Microsoft SMTP Server (TLS) id 15.0.1347.2 via Frontend Transport; Wed, 20 Jun 2018 12:21:04 +0000 Received: from mperttunen-lnx.Nvidia.com (Not Verified[10.21.26.144]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Wed, 20 Jun 2018 05:21:04 -0700 From: Mikko Perttunen To: , , , , , CC: , , , , , Mikko Perttunen Subject: [PATCH v2 0/8] Tegra Combined UART driver Date: Wed, 20 Jun 2018 15:20:34 +0300 Message-ID: <20180620122042.10950-1-mperttunen@nvidia.com> X-Mailer: git-send-email 2.16.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi again - see individual patches for v2 changes. Thanks, Mikko Original message: Hi all, on Tegra194, the primary console UART is the "Tegra Combined UART", or TCU. This is a "virtual UART", where each consumer communicates with a central implementation over mailboxes. The central implementation then multiplexes the streams and arbitrates use of a hardware serial port. This driver implements the consumer portion to allow using the primary console. The series is split into the following parts: * patches 1 and 2 add the device tree bindings for mailbox and tcu itself. * patch 3 adds a blocking transmission option to the mailbox framework. * patches 4 and 5 add support for the "shared mailbox" primitive to the Tegra HSP driver. * patch 6 adds the TCU driver itself * patches 7 and 8 do the necessary device tree changes. The series has been tested on the Tegra194 P2972 board. Mikko Perttunen (8): dt-bindings: tegra186-hsp: Add shared interrupts dt-bindings: serial: Add bindings for nvidia,tegra194-tcu mailbox: Add transmit done by blocking option mailbox: tegra-hsp: Refactor in preparation of mailboxes mailbox: tegra-hsp: Add support for shared mailboxes serial: Add Tegra Combined UART driver arm64: tegra: Add nodes for tcu on Tegra194 arm64: tegra: Mark tcu as primary serial port on Tegra194 P2888 .../bindings/mailbox/nvidia,tegra186-hsp.txt | 3 + .../bindings/serial/nvidia,tegra194-tcu.txt | 35 +++ arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 2 +- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 34 ++- drivers/mailbox/mailbox.c | 30 +- drivers/mailbox/mailbox.h | 1 + drivers/mailbox/tegra-hsp.c | 319 +++++++++++++++++---- drivers/tty/serial/Kconfig | 9 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/tegra-tcu.c | 289 +++++++++++++++++++ include/uapi/linux/serial_core.h | 3 + 11 files changed, 658 insertions(+), 68 deletions(-) create mode 100644 Documentation/devicetree/bindings/serial/nvidia,tegra194-tcu.txt create mode 100644 drivers/tty/serial/tegra-tcu.c -- 2.16.1