Message ID | 20220725201322.41810-1-nick.hawkins@hpe.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE022CCA48A for <linux-arm-kernel@archiver.kernel.org>; Mon, 25 Jul 2022 20:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ug/N+s1cSx/ylxveDy9NUGr9d/N1oqkH9cRDSQ66nS4=; b=HszxekU0RB09cE HyhYbkdk72jhyXdgOK7l109RfoB6hC7VNlUl1NxjEgMd6ixQAp0mMA9pNMDZzdS0HBs2T7WB433g1 dxTpae+I2xKruowGuFzuqXtO/gYPPlQqf+kZh6vdBzYj+VerQTjvRyagnxzTahdym0Lt35KoLafZA bnPHKKHzxDzTYUpMZu1Bj664gSUvxCbBxIKRXtwdhrsjrc9jku4tfkk6lIjAJInzwoMJ30Zps0LSP PR7+v9jeXvt5dCEd5o4/WZVGy6PlKFkBIVhOHD4yZVui3y3ug5XU9t3fdY83nUwlP430FvS7rTnx4 ay/e/K8AsLqn8dYyCJwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oG4Rt-001j8F-Jf; Mon, 25 Jul 2022 20:13:05 +0000 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oG4RR-001iQ9-Q7 for linux-arm-kernel@lists.infradead.org; Mon, 25 Jul 2022 20:12:40 +0000 Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26PJ227L024284; Mon, 25 Jul 2022 20:12:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id; s=pps0720; bh=b8nDNy/MlViLEuNpBEpRnqKp5eyKzSKaaZRfltlXsLs=; b=ZvCs8bBHLUbrOQuH/oGaKCeD2lF4L3rVxT/wEzySl7MsWQ4pM0VY1kiEtnZ8Jh76jAiT yNFvApVPT2iRluFJItEORRC+dF1oAxOpWK8nq68L0W4jK4j4z6N6+pxiF94ulY7+K6zS +U/jy3Z6wW4FF3O2HUCpDNFglH31/k0G6ov07ideWTr6H4IkhSOCKq/qCsnknqqGnYnC BL9Z7DMunO82arNr/DlC6/NQctoBjUKI40KqoMMWBc3fEQfxFLnbG0RoLVxuSykqnleL q18/vxN1IL7h8zPmbWV6RECy80d49B/n21hsjfgRa5DuXqOef1vvDxzydKT/EiDPZC/O Gg== Received: from p1lg14880.it.hpe.com (p1lg14880.it.hpe.com [16.230.97.201]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3hhy8dsekm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Jul 2022 20:12:20 +0000 Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14880.it.hpe.com (Postfix) with ESMTPS id 0AF358001AE; Mon, 25 Jul 2022 20:12:19 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 786F58041EF; Mon, 25 Jul 2022 20:12:18 +0000 (UTC) From: nick.hawkins@hpe.com To: nick.hawkins@hpe.com Cc: broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, verdun@hpe.com, linux@armlinux.org.uk, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, arnd@arndb.de, joel@jms.id.au Subject: [PATCH v4 0/5] Add SPI Driver to HPE GXP Architecture Date: Mon, 25 Jul 2022 15:13:17 -0500 Message-Id: <20220725201322.41810-1-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-ORIG-GUID: 7lf9Va_UEhUEAjP8PhwcGOvi74VEoL24 X-Proofpoint-GUID: 7lf9Va_UEhUEAjP8PhwcGOvi74VEoL24 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-25_12,2022-07-25_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 phishscore=0 mlxscore=0 adultscore=0 spamscore=0 impostorscore=0 clxscore=1015 suspectscore=0 malwarescore=0 mlxlogscore=425 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207250082 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220725_131237_887411_DE7D068A X-CRM114-Status: GOOD ( 19.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add SPI Driver to HPE GXP Architecture
|
expand
|
From: Nick Hawkins <nick.hawkins@hpe.com> Changes since v4: *Removed unnecessary quotes in hpe,gxp-spifi.yaml Changes since v3: *Fixed indentations in hpe,gxp-spifi.yaml Changes since v2: *Changed the CONFIG_SPI_GXP from y to m in defconfig *Removed extra space around < > for reg in hpe,gxp-spifi.yaml *Changed interrupt-parrent to interrupt-parent in hpe,gxp-spifi.yaml *Removed repeated include file in spi-gxp.c *Removed unnecessary initialization of ret variable in spi-gxp.c *Removed conditional variable checks where failure is not possible in spi-gxp.c *Removed unnecessary variable cs in spi-gxp.c *Removed blank gxp-spifi-remove function in spi-gxp.c *Fixed error messages so they are not repetitive The GXP supports 3 separate SPI interfaces to accommodate the system flash, core flash, and other functions. The SPI engine supports variable clock frequency, selectable 3-byte or 4-byte addressing and a configurable x1, x2, and x4 command/address/data modes. The memory buffer for reading and writing ranges between 256 bytes and 8KB. This driver supports access to the core flash and bios part. Nick Hawkins (5): spi: spi-gxp: Add support for HPE GXP SoCs spi: dt-bindings: add documentation for hpe,gxp-spifi ARM: dts: hpe: Add spi driver node ARM: configs: multi_v7_defconfig: Enable HPE GXP SPI driver MAINTAINERS: add spi support to GXP .../bindings/spi/hpe,gxp-spifi.yaml | 56 +++ MAINTAINERS | 2 + arch/arm/boot/dts/hpe-bmc-dl360gen10.dts | 58 ++++ arch/arm/boot/dts/hpe-gxp.dtsi | 21 +- arch/arm/configs/multi_v7_defconfig | 1 + drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/spi-gxp.c | 325 ++++++++++++++++++ 8 files changed, 470 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/spi/hpe,gxp-spifi.yaml create mode 100644 drivers/spi/spi-gxp.c