From patchwork Mon Mar 29 01:59:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Larson X-Patchwork-Id: 411087 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2627C433EC for ; Mon, 29 Mar 2021 02:00:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AE92561927 for ; Mon, 29 Mar 2021 02:00:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbhC2CAM (ORCPT ); Sun, 28 Mar 2021 22:00:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbhC2B7t (ORCPT ); Sun, 28 Mar 2021 21:59:49 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7ECFC061764 for ; Sun, 28 Mar 2021 18:59:48 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id s11so2810840pfm.1 for ; Sun, 28 Mar 2021 18:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jzL4wAf/JEuHNxXJJeldkC8oZAN75IBXktG7WKUVTJQ=; b=QVO2DpN/ZNhiGgaDrXRsnZKtIhmWo2iLsYmbfxzyYywy5M50THoO4Wy+K87savMaNo 8Q5h3StgJ39CA2acLnFqIJPSXf9Wn7yHiPRMdJ4L9z3IocsGK6SslBkrwcd/Q62eocWf a1WjkVeSsQeWJ/YYg5B2x7wktJkkgjJsSj53Tw9ccnBaVjAOL64ulxktJnQ6s0XumhLM 6+2q+D7Qw1d00TdVPjzgPcRIw73tFq+idUQkw72ElBQn+HzsJ0Ju9+ikgG++hynhJo8z mGocgnPKGngb+siUHMlTwvQeeU7xAcAYxpQS4NPduTydvxXHPpqr6myuJU8c9RtZEsIB Uqxg== 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:in-reply-to :references; bh=jzL4wAf/JEuHNxXJJeldkC8oZAN75IBXktG7WKUVTJQ=; b=LV3m5gzWNbcsPNDUGYwc2HlssuaSjLhy++pMiuHFT/zsLPudKOgGBLrPFtjcNRD7vl FQxSz4K+i3LhqoBWfI4iINrHev9krtr8h4ZvLStdrToV8/eY6Z5+jIC2Jyxm8+Gwaonb h13KcbcFzu6UvG11HkQpaskcMSFtg4qL0moGQxcZBVGEu9JejELOUGPcAggX+REFa9g7 ykkYhkk1AsRUQWJ3oY26+KPa7wlVaNHVQQngWzsEZMj/1q2X7XUju8phu9FZAKsT6yC1 ieNkxKDSa2HGYqE0336N3EG7OM7KIh0s/bZ9bgYcPE6/x37QayIFn7kRemrCMgdfXaWA /wwg== X-Gm-Message-State: AOAM530Uy2xu1b6N72XU9rYerpbt3CZ3b3s/jhk69CeGz+QslCGbLEFl KwApAwbWeD276N8GJf918mUA8g== X-Google-Smtp-Source: ABdhPJxWn+mrLsvMwHqEoEq/Dz3B6oSSzwrNyCrjMBbbLg3zgg93fDeGEt9/bqgjfnIU4E7wnhNFPw== X-Received: by 2002:a63:c02:: with SMTP id b2mr22045085pgl.79.1616983188412; Sun, 28 Mar 2021 18:59:48 -0700 (PDT) Received: from platform-dev1.pensando.io ([12.226.153.42]) by smtp.gmail.com with ESMTPSA id w37sm14728027pgl.13.2021.03.28.18.59.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Mar 2021 18:59:48 -0700 (PDT) From: Brad Larson To: linux-arm-kernel@lists.infradead.org Cc: arnd@arndb.de, linus.walleij@linaro.org, bgolaszewski@baylibre.com, broonie@kernel.org, fancer.lancer@gmail.com, adrian.hunter@intel.com, ulf.hansson@linaro.org, olof@lixom.net, brad@pensando.io, linux-gpio@vger.kernel.org, linux-spi@vger.kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/13] spi: cadence-quadspi: Add QSPI support for Pensando Elba SoC Date: Sun, 28 Mar 2021 18:59:27 -0700 Message-Id: <20210329015938.20316-3-brad@pensando.io> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210329015938.20316-1-brad@pensando.io> References: <20210329015938.20316-1-brad@pensando.io> Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Add QSPI controller support for Pensando Elba SoC Signed-off-by: Brad Larson --- drivers/spi/spi-cadence-quadspi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c index 52ddb3255d88..4aacb0b2dbc7 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -1353,6 +1353,7 @@ static int cqspi_request_mmap_dma(struct cqspi_st *cqspi) cqspi->rx_chan = dma_request_chan_by_mask(&mask); if (IS_ERR(cqspi->rx_chan)) { int ret = PTR_ERR(cqspi->rx_chan); + cqspi->rx_chan = NULL; return dev_err_probe(&cqspi->pdev->dev, ret, "No Rx DMA available\n"); } @@ -1633,6 +1634,10 @@ static const struct cqspi_driver_platdata intel_lgm_qspi = { .quirks = CQSPI_DISABLE_DAC_MODE, }; +static const struct cqspi_driver_platdata pen_cdns_qspi = { + .quirks = CQSPI_NEEDS_WR_DELAY | CQSPI_DISABLE_DAC_MODE, +}; + static const struct of_device_id cqspi_dt_ids[] = { { .compatible = "cdns,qspi-nor", @@ -1650,6 +1655,10 @@ static const struct of_device_id cqspi_dt_ids[] = { .compatible = "intel,lgm-qspi", .data = &intel_lgm_qspi, }, + { + .compatible = "pensando,cdns-qspi", + .data = &pen_cdns_qspi, + }, { /* end of table */ } };