From patchwork Mon Mar 29 01:59:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Larson X-Patchwork-Id: 12169419 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=-11.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,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 8166CC433E2 for ; Mon, 29 Mar 2021 02:00:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5A5F361951 for ; Mon, 29 Mar 2021 02:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231224AbhC2CAK (ORCPT ); Sun, 28 Mar 2021 22:00:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230271AbhC2B7q (ORCPT ); Sun, 28 Mar 2021 21:59:46 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 052CCC061756 for ; Sun, 28 Mar 2021 18:59:45 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id t140so1100535pgb.13 for ; Sun, 28 Mar 2021 18:59:45 -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; bh=AfF0syJPa3AZ/E4+2g/B+WMyDbSM6G2J2QkIgg8nw3Q=; b=T01xgGlZn2BIwUsonZP5ixX/9LH8VPlr+gd5BDTNg0VMSdRtjDBE0JOwLw7igeBhko wo/cM4iJlRvGHPcYYFLkDpM2mTG0+87twKvt7f7L68H+yRD62jlWQz0ZNgNyYtYWSSQr BA8svNiCo0uY2Rnz8GKeTY24Ilt2icIb75h6AWPSvtD5nh+C1a/Uy8P5iYAXxog5e0KL tdFUjRHfkIOF/IKP/A2P7xA4LBTWPZJC+8jOTUdtHvslE8R7lkQIGDMoucaQ5+rp5VzT rbbzXdgF2AGjr3VCtT/3mxA6eyoDtcTs0u4Yk0mELcDT2BHKiCFn9ESQX+pUeUGUkti7 ssFA== 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; bh=AfF0syJPa3AZ/E4+2g/B+WMyDbSM6G2J2QkIgg8nw3Q=; b=e/k0ApncIMU/TGCWidmXp1F0WC12+DFeQ60WM+wSFKDBCZhj15PPOLC5NEH7aAEL+/ rF3HMyV4ujtIUlen6EvRtH7My97EyReux/naVV/kFmTis0a9+IUVKV+wi13dIKWtfdvL 7+X1jy2R6NQA0BUWMCsQ8oR7+wZJRuZgs9n2jaSVyGAWxt0HwIoa1bv8xY5x5eMcMYh/ fm50YeKaaHMNUQTRMxw763/sbCOywMUovHNmb8YzLK/YfyD+4f8gc2gq1z/UX7gYkkYR I3P2UseKWnEXVSyGC5ToD4GSytFAnDqkQW3IMK9viuSr/VK2nUWi+AiKV8ZS4a4FQdTx WNqg== X-Gm-Message-State: AOAM532Szdk4o1+tKWwpoOi78SZpX/XDGVfaFM1uymxxJw9H5pCrZTaO tSO2k90aFRL3r+UvMBRV6Flqwg== X-Google-Smtp-Source: ABdhPJwqvHlLi+PBJ/1vUPZIesu3HIRE3E2tVo/qHkMLNjVAZtT91oBjuqfdT4SzwP9uUl+pbfBhBA== X-Received: by 2002:a62:cfc1:0:b029:200:1eed:462 with SMTP id b184-20020a62cfc10000b02902001eed0462mr23229810pfg.55.1616983185403; Sun, 28 Mar 2021 18:59:45 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Mar 2021 18:59:45 -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 00/13] Support Pensando Elba SoC Date: Sun, 28 Mar 2021 18:59:25 -0700 Message-Id: <20210329015938.20316-1-brad@pensando.io> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org This series enables support for Pensando Elba SoC based platforms. The Elba SoC has the following features: - Sixteen ARM64 A72 cores - Dual DDR 4/5 memory controllers - 32 lanes of PCIe Gen3/4 to the Host - Network interfaces: Dual 200GE, Quad 100GE, 50GE, 25GE, 10GE and also a single 1GE management port. - Storage/crypto offloads and 144 programmable P4 cores. - QSPI and EMMC for SoC storage - Two SPI interfaces for peripheral management - I2C bus for platform management See below for an overview of changes since v1. == Patch overview == - 01 Fix typo, return code value and log message. - 03 Remove else clause, intrinsic DW chip-select is never used. - 08-11 Split out dts and bindings to sub-patches - 10 Converted existing cadence-quadspi.txt to YAML schema - 13 New driver should use Brad Larson (13): gpio: Add Elba SoC gpio driver for spi cs control spi: cadence-quadspi: Add QSPI support for Pensando Elba SoC spi: dw: Add support for Pensando Elba SoC SPI spidev: Add Pensando CPLD compatible mmc: sdhci-cadence: Add Pensando Elba SoC support arm64: Add config for Pensando SoC platforms arm64: dts: Add Pensando Elba SoC support dt-bindings: Add pensando vendor prefix dt-bindings: mmc: Add Pensando Elba SoC binding dt-bindings: spi: cadence-qspi: Add support for Pensando Elba SoC dt-bindings: gpio: Add Pensando Elba SoC support MAINTAINERS: Add entry for PENSANDO gpio: Use linux/gpio/driver.h .../bindings/gpio/pensando,elba-spics.yaml | 50 +++ .../devicetree/bindings/mmc/cdns,sdhci.yaml | 1 + .../bindings/spi/cadence-quadspi.txt | 68 ---- .../bindings/spi/cadence-quadspi.yaml | 153 +++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 9 + arch/arm64/Kconfig.platforms | 5 + arch/arm64/boot/dts/Makefile | 1 + arch/arm64/boot/dts/pensando/Makefile | 6 + arch/arm64/boot/dts/pensando/elba-16core.dtsi | 170 ++++++++++ .../boot/dts/pensando/elba-asic-common.dtsi | 112 +++++++ arch/arm64/boot/dts/pensando/elba-asic.dts | 7 + .../boot/dts/pensando/elba-flash-parts.dtsi | 78 +++++ arch/arm64/boot/dts/pensando/elba.dtsi | 310 ++++++++++++++++++ drivers/gpio/Kconfig | 6 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-elba-spics.c | 113 +++++++ drivers/mmc/host/Kconfig | 15 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-cadence-elba.c | 137 ++++++++ drivers/mmc/host/sdhci-cadence.c | 81 +++-- drivers/mmc/host/sdhci-cadence.h | 68 ++++ drivers/spi/spi-cadence-quadspi.c | 9 + drivers/spi/spi-dw-mmio.c | 28 +- drivers/spi/spidev.c | 1 + 25 files changed, 1321 insertions(+), 111 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/pensando,elba-spics.yaml delete mode 100644 Documentation/devicetree/bindings/spi/cadence-quadspi.txt create mode 100644 Documentation/devicetree/bindings/spi/cadence-quadspi.yaml create mode 100644 arch/arm64/boot/dts/pensando/Makefile create mode 100644 arch/arm64/boot/dts/pensando/elba-16core.dtsi create mode 100644 arch/arm64/boot/dts/pensando/elba-asic-common.dtsi create mode 100644 arch/arm64/boot/dts/pensando/elba-asic.dts create mode 100644 arch/arm64/boot/dts/pensando/elba-flash-parts.dtsi create mode 100644 arch/arm64/boot/dts/pensando/elba.dtsi create mode 100644 drivers/gpio/gpio-elba-spics.c create mode 100644 drivers/mmc/host/sdhci-cadence-elba.c create mode 100644 drivers/mmc/host/sdhci-cadence.h