Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1405374pxu; Sat, 12 Dec 2020 11:40:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS9K7ppwbekmQnpOpImFqGpSE9rtf9jpATEZvMXOdNh9lLz9uLoQfnGo2rgnLw5pDco/ig X-Received: by 2002:a17:906:d81:: with SMTP id m1mr5075463eji.550.1607802044767; Sat, 12 Dec 2020 11:40:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607802044; cv=none; d=google.com; s=arc-20160816; b=ctCMzYqDLycUPGFvIj5Ic0crPa85c6Fnsk4KjKZBgfsWtgDA+fCx7ZrDL84j1i8MQi RghJr7PzInbc2cYCbxdTsLIKAWGvAo6Wb+H2wfMwVLnpUNVw/361W2vJOGaLdvTBuai2 XbQ7JE6mRPcEbCIQddOoLsWwlgnvlcfppQjWoP+YN/xnCCunqhqN4qTEHRqumXnfKTvW ZOAJUZ7PI+w5VCE4UUcIH2ceutlNHG/4IxxLR0bW+BiE5Cgqc0jIzn8iv9SkA93P6RUX 1O+ckt2cgltmrcTLY3P/enDSyhsxDWgfKVhdttJAFcPa2J51ZRBMH+Zs3TGhfv0rlRzS 63Sw== 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=qxWgn0xGVTwA1ZG1YQ30zYnjg689u8RpYxCpROZ+R+0=; b=w0L5l/PKra1KCUCwzH3LGleZin/PAD9FTcwEq8IWcCEEhB8HUtFamzG+8xbUOof054 0K+T9MQsxJRoJLwSATj465kenMfKokQZvwozsGUOs8m+BPXZuPpmNjY8lRpAkFDR5uLU EMPfZDFgtbCuxWd1rHpHMkjQdibFRYfryk3kDqGuxDQkBAsCtYK4/cmuFvBTF2VqLnAI Ob99WGahVlMijJHT+wAhVQSsqxaab0zkjyKO+tTxnsds1+zi12fMl7PWcYJomBu3TTIW Iq2w8/ZR95HK41HXwASKP4/AwxfC9DD0iW5oxCo6f6ya6w7KxxaKoPTjl/RgFWZVXiLm 4ZJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=DzJXy5GT; 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 h6si7801778edv.237.2020.12.12.11.40.21; Sat, 12 Dec 2020 11:40:44 -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=DzJXy5GT; 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 S2404529AbgLKRCe (ORCPT + 99 others); Fri, 11 Dec 2020 12:02:34 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:3604 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390497AbgLKRC0 (ORCPT ); Fri, 11 Dec 2020 12:02:26 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 11 Dec 2020 09:01:31 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 11 Dec 2020 17:01:31 +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; Fri, 11 Dec 2020 17:01:30 +0000 From: Sowjanya Komatineni To: , , , , CC: , , , , Subject: [PATCH v2 0/9] Add Tegra Quad SPI driver Date: Fri, 11 Dec 2020 09:01:17 -0800 Message-ID: <1607706088-1437-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=1607706091; bh=qxWgn0xGVTwA1ZG1YQ30zYnjg689u8RpYxCpROZ+R+0=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:X-NVConfidentiality: MIME-Version:Content-Type; b=DzJXy5GTZt7zMgehvkY5MPH/QneJQWHHlTT/atv7RA1IX8iXrh6dY3Azq4RksnNZx oQCPvuUfh8uAogXml4OASNyJjwZR6OUsUcZcELtZ+08xYnlyfBbyF7feD4HonrgKCw HNzOxpE+OydLsI6+q+ngYcYwZntcXm2+Cn2FK2vsEnz4dWPxvHIdilfWOsRfBXbozl Ted8o6OHuHnrgOSSdGO0wIlS1700WaTSaDODEsv57ucrhwwOmwbkjycl0n7BSsdxjZ rsaBZps6C32ayvTztkK5I282cTuO1MWAfZ+6DrKGjnusthOJ+ucHwJjVPJ2YPzs66F ZQrgy8jMv+jQQ== 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 with 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: [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: Allow masters to transfer dummy cycles directly by hardware spi: tegra210-quad: Add support for hardware dummy cycles 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 | 130 ++ MAINTAINERS | 8 + .../dts/nvidia/tegra194-p3509-0000+p3668-0000.dts | 12 + arch/arm64/boot/dts/nvidia/tegra194.dtsi | 24 + 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 | 18 +- drivers/spi/spi-tegra210-quad.c | 1407 ++++++++++++++++++++ include/dt-bindings/clock/tegra210-car.h | 2 +- include/linux/spi/spi.h | 8 + 12 files changed, 1626 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/nvidia,tegra210-quad.yaml create mode 100644 drivers/spi/spi-tegra210-quad.c -- 2.7.4