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: 12169417 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=ham 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 DCD73C433C1 for ; Mon, 29 Mar 2021 02:00:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AD55761927 for ; Mon, 29 Mar 2021 02:00:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbhC2CAL (ORCPT ); Sun, 28 Mar 2021 22:00:11 -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 S230308AbhC2B7t (ORCPT ); Sun, 28 Mar 2021 21:59:49 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E864BC0613B5 for ; Sun, 28 Mar 2021 18:59:48 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id v3so8460101pgq.2 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=hmbBOdwuN3l5t2UuS8uljGQzwLJRQWfOeKigLbaHzELpqyB6EbpX+q4w0dKH5WWgzM c2jisHi4N6Ap+P0dG8GvB4hvaXsbANOdMxpZKDFh43h28RXfjr5C860iT+118WDOuwcr 42Ki2vTBRnxjESHzae6mXh1AstSqam3MqHoAMv0ISOcHPw27Z5hVPIOqJVWMFYu9vH/U oXgy7ZI2dAab0uzDfqyAre3NXpZuDPbOiK4kdYGbe8QR5JaeA5RG67wzOigymj1a4uhx Tab480xxUi435nZzYm+JVjwJ8aJOq6/uVGUNtTVXsvnpKBnAIdjrA+vGydjDcxO/PWEd PxIw== X-Gm-Message-State: AOAM5335WL0Gygx9AQw7WanjMIeYc2vABDThRLymoe40QtYlb2FPuCz9 //6eQbo/ZxA35GqfdEIqO3MfYg== 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-spi@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 */ } };