Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1544720pxu; Thu, 17 Dec 2020 12:31:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuh0SdIJwFt3aeNcsyOJ3sKNgJzYAm7+ZWEBC5oUrU9IQIt99kxTj5EdSA8Z3ugSHEiAvZ X-Received: by 2002:a17:907:4332:: with SMTP id ni2mr790922ejb.422.1608237081928; Thu, 17 Dec 2020 12:31:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608237081; cv=none; d=google.com; s=arc-20160816; b=Sdec7zA1G4jkljHphRBsqBtPwfqJT0ySuvyLHYaGS12q58CD/nk3D9X0OsIukpHzBm lxpqhEVGEr0qoXmTqJeC7sKjXOeLMP7eP1Dx6KvyleAQTYXkoQ2EkJLdP0/lyrmxu5U0 Ked92WxcdhE6zLZzqftoS9wOuSSW2ThpdxVbmFOTtn8FwHK7JlWmNI/enbWK9x+2+WO2 Eej3iL2XoQnT+8S6m5NAD8bxd3VKG9KsHM2ghTikJ9P/Ao2ZJInEAWybJCqF3UCkm9up Eg0EMV2cJz/+P5sqhaF1W1dbG7H3/fZozoa/lwDGCn7ZGCwF7fyy2v8UyTfjZGnQDxo3 llGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:message-id:date :subject:cc:to:from; bh=befDSdcuvDJN3nr2CQS9a+ky9Zu8JNjG4riD267QvLw=; b=NZiWgXq8Dl/KhBm8WSaKILz4mhb4hVn5x2VKuvc4joqEJ0eNK2LXvowrpf4HW1fi+E OXdoNYxiRsU/7fVllKSSSEslPwBUlqDnCH69HfkmX7b/OiUGKlifN3axAHy8rMMEoCAl Kjb2YY3RRurSsbeCyXHJrxzO7T4pT+mZSQrAn/p+NNYoora2yAqwyJyx1NDv4iSOLIZw FYDrApyAJfNQgDygIMEoSr7QtMJXicUan5gP1RuHkVyqi6rE+vonc6Y4FXbNeIsb1mBQ 8E4KyluMCg/KYy2Vf+xAeyvhRT/KJVBeRWOaOkLWKAX8U+roGXqrZoSRcZUjwVsOoqj5 uIew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=mx2u2dSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw26si3212754ejb.537.2020.12.17.12.30.55; Thu, 17 Dec 2020 12:31:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=mx2u2dSc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731559AbgLQU3k (ORCPT + 99 others); Thu, 17 Dec 2020 15:29:40 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:8554 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731497AbgLQU3h (ORCPT ); Thu, 17 Dec 2020 15:29:37 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 17 Dec 2020 12:28:56 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 17 Dec 2020 20:28:51 +0000 Received: from skomatineni-linux.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 17 Dec 2020 20:28:50 +0000 From: Sowjanya Komatineni To: , , , , CC: , , , , , , , Subject: [PATCH v4 0/9] Add Tegra Quad SPI driver Date: Thu, 17 Dec 2020 12:28:38 -0800 Message-ID: <1608236927-28701-1-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1608236936; bh=befDSdcuvDJN3nr2CQS9a+ky9Zu8JNjG4riD267QvLw=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:X-NVConfidentiality: MIME-Version:Content-Type; b=mx2u2dScoaTRbDCMhZ2x7gp/ov1UZyNiXZJa631UijJ4irnMlNeIdykUUcGOBmzGs I3+juyjzfU92B049sGxRr7L+WZuEtK8b4JzB9k5stpDs/Y8S3zyu1qQdzwCOLVrMwx hu6KXh22I9BBkHEzjoGQW/kx3AsWdSWzDGJ5McW4MA+2hfvaeQ4D34E2HiZ8gWJtiS gdPwYzc83dW5SfROIXf4CK0OqyZNHp7TCk+CYu7EXAmvEI4IVQnow3PqmnON+Hz+V/ G3Gq80JKNjvfU5ChBclIOZ6Qr8sf/fYqBx702ibDj/+0QYxBG/1W3uOYBq50Wx46gP GnR7aXKOANBxg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds Tegra210, Tegra186, and Tegra194 Quad SPI driver and enables Quad SPI on Jetson Nano and Jetson Xavier NX. QSPI controller is available on Tegra210, Tegra186 and Tegra194. Tegra186 and Tegra194 has additional feature of combined sequence mode where command, address and data can all be transferred in a single transfer. Combined sequence mode is useful only when using DMA mode transfer. This series does not have combined sequence mode feature as Tegra186/Tegra194 GPCDMA driver is not upstreamed yet. This series includes - dt-binding document - QSPI driver for Tegra210/Tegra186/Tegra194 - Enables QSPI on Jetson Nano and Jetson Xavier NX. Delta between patch versions: [v4]: Updated dummy cycles implementation based on v3 feedback - Added dummy_data bit field int spi_transfer to indicate corresponding transfer is dummy bytes transfer. - Updated Tegra QSPI transfer_one_message to identify dummy transfer and to use HW supported dummy bytes transfer when dummy cycles are with in Tegra QSPI supported max HW dummy cycles otherwise fallsback to transfer dummy bytes from software. - Updated dt-bindings based on v3 feedback. [v3]: v2 has some mixed patches sent out accidentally. v3 sends proper patches with fixes mentioned in v2. [v2]: below v1 feedback - Added SPI_MASTER_USES_HW_DUMMY_CYCLES flag for controllers supporting hardware dummy cycles and skips dummy bytes transfer from software for these controllers. - Updated dt-binding doc with tx/rx tap delay properties. - Added qspi_out clock to dt-binding doc which will be used later with ddr mode support. - All other v1 feedback on some cleanup. Sowjanya Komatineni (9): dt-bindings: clock: tegra: Add clock ID TEGRA210_CLK_QSPI_PM dt-bindings: spi: Add Tegra Quad SPI device tree binding MAINTAINERS: Add Tegra Quad SPI driver section spi: tegra210-quad: Add support for Tegra210 QSPI controller spi: spi-mem: Mark dummy transfers by setting dummy_data bit spi: tegra210-quad: Add support for hardware dummy cycles transfer arm64: tegra: Enable QSPI on Jetson Nano arm64: tegra: Add QSPI nodes on Tegra194 arm64: tegra: Enable QSPI on Jetson Xavier NX .../bindings/spi/nvidia,tegra210-quad.yaml | 117 ++ MAINTAINERS | 8 + .../dts/nvidia/tegra194-p3509-0000+p3668-0000.dts | 12 + arch/arm64/boot/dts/nvidia/tegra194.dtsi | 28 + arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts | 12 + arch/arm64/boot/dts/nvidia/tegra210.dtsi | 5 +- drivers/spi/Kconfig | 9 + drivers/spi/Makefile | 1 + drivers/spi/spi-mem.c | 1 + drivers/spi/spi-tegra210-quad.c | 1421 ++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 2 +- include/linux/spi/spi.h | 2 + 12 files changed, 1615 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml create mode 100644 drivers/spi/spi-tegra210-quad.c -- 2.7.4