Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13900511ybl; Sun, 29 Dec 2019 23:41:58 -0800 (PST) X-Google-Smtp-Source: APXvYqy6CpvC/lTauWbloBa5pDP2Zp2CPkjQWGb/zDMN5M+ehnGC6jchXwlcqwqG6IaSM/HCLLrH X-Received: by 2002:a9d:4796:: with SMTP id b22mr643407otf.353.1577691718395; Sun, 29 Dec 2019 23:41:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577691718; cv=none; d=google.com; s=arc-20160816; b=hU7y+EgGEUEKGGaBOsvyKOcJxKVE8Ft1G/MSBW8Ig59HVN6NOtjFkP66bw0JuEk5GX 591DAythwmF3WOEmIQy23YeYujFh9tgkDCpf0P7EC6wnUQJCTDEQmh56wrILUyi8pJNG 321yJQXidZ5WJmByWk39sh+YBXerJgMCC4SIZY7fRTk8pkHTRRIKpXV0FYQVqkU8ePdk J2hUwEtdcWTUQ6RouHBdFhy+Bb8ZfduPH1uPGbSxfWvmVhBQi1faL5V0Lm+bUz6L4pB0 I1mudAfynCvLAVJ8LaBvbuK1vlGkVubORmoKBiquA7a5OEmcdEEfYUK0htzDGI741juh rdMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=beIZy5RJyITGjWdyVgvXpIiYQiFLbaUnnZ4hD2lrotQ=; b=aTQCwOYPHtjhCpHMM0K9c7Mtg4gbj64CGzF7Nywym4paqgFj5mlSUo5MpjDcJbgPq8 pHMtC62GyU533mnNOd7RlRnMTtYm/yQOfemmpKy1NVlW829SSUzWvIEG0BpO88QysXqU 0IO+A62w0MiZyLLjP4agCAXd3DgU3crJgvMIhwsk1Ihib+ysLsgzZNaifc0w4PoeklxF r1D4H0aWm88bAFeAH83juBknG1jdiFkvkIOiN3U22IWbbMjB22pLwSw+aLhAREaUd1va OtDR0cEiJWEE6nY/r8TT36MwvZgbfcBw6bTz18MXsb8tkVpy1alK7WtL4dbj1pE03Eda bAxQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23si22758778otk.304.2019.12.29.23.41.47; Sun, 29 Dec 2019 23:41:58 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727208AbfL3HlH (ORCPT + 99 others); Mon, 30 Dec 2019 02:41:07 -0500 Received: from mga05.intel.com ([192.55.52.43]:48823 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbfL3HlH (ORCPT ); Mon, 30 Dec 2019 02:41:07 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Dec 2019 23:41:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,374,1571727600"; d="scan'208";a="221072230" Received: from sgsxdev004.isng.intel.com (HELO localhost) ([10.226.88.13]) by orsmga003.jf.intel.com with ESMTP; 29 Dec 2019 23:41:04 -0800 From: "Ramuthevar,Vadivel MuruganX" To: broonie@kernel.org, vigneshr@ti.com, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: robh+dt@kernel.org, dan.carpenter@oracle.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, "Ramuthevar,Vadivel MuruganX" Subject: [PATCH v6 0/2] spi: cadence-quadpsi: Add support for the Cadence QSPI controller Date: Mon, 30 Dec 2019 15:41:00 +0800 Message-Id: <20191230074102.50982-1-vadivel.muruganx.ramuthevar@linux.intel.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the Cadence QSPI controller. This controller is present in the Intel Lightning Mountain(LGM) SoCs, Altera and TI SoCs. This driver has been tested on the Intel LGM SoCs. This driver does not support generic SPI and also the implementation only supports spi-mem interface to replace the existing driver in mtd/spi-nor/cadence-quadspi.c, the existing driver only support SPI-NOR flash memory. Thank you Vignesh for the valuable review comments and guidance, sorry for the delay since waitting for the merge window to rebase and send it now by one-shot. changes from v5: -- kbuild test robot warnings fixed -- Add Reported-By: Dan Carpenter changes from v4: -- kbuild test robot warnings fixed -- Add Reborted-by: tag changes from v3: spi-cadence-quadspi.c -- static to all functions wrt to local to the file. -- Prefix cqspi_ and make the function static -- cmd_ops, data_ops and dummy_ops dropped -- addr_ops kept since it is required for address calculation. -- devm_ used for supported functions , removed legacy API's -- removed "indirect" name from functions -- replaced by master->mode_bits = SPI_RX_QUAD | SPI_TX_DUAL | SPI_RX_DUAL | SPI_RX_OCTAL; as per Vignesh susggestion -- removed free functions since devm_ handles automatically. -- dropped all unused Macros YAML file update: -- cadence,qspi.yaml file name replace by cdns,qspi-nor.yaml -- compatible string updated as per Vignesh suggestion -- for single entry, removed descriptions -- removed optional parameters Build Result: linux$ make DT_SCHEMA_FILES=Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml dt_binding_check CHKDT Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml SCHEMA Documentation/devicetree/bindings/processed-schema.yaml DTC Documentation/devicetree/bindings/spi/cdns,qspi-nor.example.dt.yaml CHECK Documentation/devicetree/bindings/spi/cdns,qspi-nor.example.dt.yaml Ramuthevar Vadivel Murugan (2): dt-bindings: spi: Add schema for Cadence QSPI Controller driver spi: cadence-quadpsi: Add support for the Cadence QSPI controller .../devicetree/bindings/spi/cdns,qspi-nor.yaml | 147 +++ drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/spi-cadence-quadspi.c | 1175 ++++++++++++++++++++ drivers/spi/spi-cadence-quadspi.h | 245 ++++ 5 files changed, 1576 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml create mode 100644 drivers/spi/spi-cadence-quadspi.c create mode 100644 drivers/spi/spi-cadence-quadspi.h base-commit: c52db0e2f5ec0e5e196fe0045621dcb0141bf90f -- 2.11.0