Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1022772imi; Fri, 22 Jul 2022 15:18:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vjnZ4vjAHVOoNacU0Wb3352vs9aHgdD4Jrc/prF4JPSSmusnnXNWYesfjyWFisg5JRnZjm X-Received: by 2002:aa7:dd4b:0:b0:43a:d508:7cb9 with SMTP id o11-20020aa7dd4b000000b0043ad5087cb9mr1886424edw.218.1658528302869; Fri, 22 Jul 2022 15:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658528302; cv=none; d=google.com; s=arc-20160816; b=twzBSnU0YByGtLVURzUebA9fBzchDur/hSQzOzp42du9bN5TcUdfF4miIiYid56Glv XAGvCRlUPy5X5ZAwfYx+Gj1xFLd5p8aK6OEicVCInP8lcQt10QZ/ZD1/hTikkLYrETfl ejgaPOppOFA37nD5KjSEhRA6RlZQB5ng+sHDqeMMIsLJdG6xW6lIqKdsKEucjbY3ThFg Fdb+Fyu3NpGfAGOYAmJOHhfg+lvNrIKgIEEjhmzdgVyLyNBumMb8vCmtwMrcPj+2cS5Y 8DjCTb2rBHSXh5zBqwZRiky2yqHqXSssDTjycFg6KyRsunmKszjVCZ2wKqqY8LprgeaN R9VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=XyhImU/s8jTS0MAtGnuJgfSv2I3LX1GjvUcuw7eaKzM=; b=jEXl2bCXc8QBRcnAn8aJCBiYqs9cFYr3PYLSxnJG60x2Ls50QQCC7PohaujBBmG3lw s1JVJCItleU0fCz9jOTGDjffG6+/775i/jV6EDR2RnODnKyqGIz1EUJpdmekWhmZsXR1 5YX9HtagaxTaOUiy/iIxicxSkhiUrNzKQnaET4meXFf9MYECNCrhMXOPVGNs/zX3o5aP hpCIRToNCTyMi97nICRc4f0e0ptNpPafQJA9fmYROMrUFs8ngyTY/6oIwW0UNS6h1M9v RdPp8OXH9HVg+bCDwSHFpvh1f6Mtc4qoF4MboZ8TI3xwiQ69kKAhXAPTuBjJ11pdyeei rr/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=FoGVqkq5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn6-20020a17090794c600b0072af3bdf59esi1426640ejc.3.2022.07.22.15.17.57; Fri, 22 Jul 2022 15:18:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=FoGVqkq5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236333AbiGVVs3 (ORCPT + 99 others); Fri, 22 Jul 2022 17:48:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231878AbiGVVsZ (ORCPT ); Fri, 22 Jul 2022 17:48:25 -0400 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4C1089AA1; Fri, 22 Jul 2022 14:48:24 -0700 (PDT) Received: from pps.filterd (m0148664.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26MKrESd011979; Fri, 22 Jul 2022 21:48:07 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=XyhImU/s8jTS0MAtGnuJgfSv2I3LX1GjvUcuw7eaKzM=; b=FoGVqkq541/fg1I5PaSuO/Rsp3Ne0DHLcb0DTLgEN1iTSdmE/yLgbGqvgc9kzhcbXXG6 Qz3WOZI8BpwTr2qya8lfdFF1xpsd5OfR5s1te3Zas5fBapNXT9uA9QDSm/0/kKoTQzVU 98XTYvxjEZ4TmMAzFRF2vfPDj6DXXxA3OVKt/bvxqx8WcgHwkghStkRcek3PnzQy104V 4b1Jfm/RMpCdef/8e5jEe7iS6PnfIXJc/asWR1nYFOvryfjRMqxZ5IAMB5/IKHha7DC5 7ZlgTHVb0HEd/F9/1dY+hGMs2WmPR6w5pq3c41RhpK7SK3rRu30Q8ewOpsNqjjklr6j2 hg== Received: from p1lg14880.it.hpe.com (p1lg14880.it.hpe.com [16.230.97.201]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3hfyqc9t95-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Jul 2022 21:48:07 +0000 Received: from p1lg14886.dc01.its.hpecorp.net (unknown [10.119.18.237]) (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 5C456800187; Fri, 22 Jul 2022 21:48:06 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 463038032AD; Fri, 22 Jul 2022 21:48:05 +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 v3 0/5] Add SPI Driver to HPE GXP Architecture Date: Fri, 22 Jul 2022 16:49:15 -0500 Message-Id: <20220722214920.40485-1-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-ORIG-GUID: hQ5rnSRM9hxvywIVPFSSPwuS6UK6U-Yz X-Proofpoint-GUID: hQ5rnSRM9hxvywIVPFSSPwuS6UK6U-Yz 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-22_06,2022-07-21_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 bulkscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 mlxlogscore=435 spamscore=0 mlxscore=0 suspectscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207220089 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nick Hawkins 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 unecessary 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 -- 2.17.1