Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp581496imn; Thu, 28 Jul 2022 09:31:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR7WEXyM+gD2Owg79+zMVMf8UO9LOBYA47/oe699TDvtgx6pcn29KPhA8pNExE+IUlSc58bd X-Received: by 2002:a17:90a:d70f:b0:1f3:290b:c8f6 with SMTP id y15-20020a17090ad70f00b001f3290bc8f6mr217484pju.190.1659025867904; Thu, 28 Jul 2022 09:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659025867; cv=none; d=google.com; s=arc-20160816; b=v+AaKkZ1NdklwjreEc7SmByW77c8uzLbCgK8uPG/UW8NJ9Ksli/HOfuEdEjJ9XZ9HD QPJpk11qeWtTDEAMa+hDn1OUammlROKRkVSdnyeKFZSXx6qgLH8BLWIBNy6FqjmVZOYy HoQR8gf5f2wN9lX4zqwA/TYVeOxdQNujvjKZPqZRFICqCZ82VkimCPzUjYR1PUG1//gH U13vCfZslU/lasbTszzTuNX7bqoxHWS1K48ixpEmHzyTXsTdacz2PL3V+/EIhNrHwP3Q oz4qYZ8pbBEfhaLJB4d7kd15RqfcagEsETqmR1UYdT73WY0Ag1SvjPXLTYKBhWo8cokp XdEQ== 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=drKCEPOrAhsLQJHh5ftj+RXsOecSe6wCwKgJTmwvUoY=; b=Frst8xjtsEkOXITwPT/4g8cAFT1R1eeXKseYbezT/uPYpOP3QQBY4DVrGfW336M9cc 0rDzOCPGOdlwkgsjSiRoeB/LBjdVZ5MtSjkGsDxIx2YaUf2cxz46uaHH3daiSjPu6V7S OB1G2i+ndPOg5BsqRebGx81N+E44CHh6m2Q32K7p7BYECfwVyBb71Sh/CSvXNjsF85NE t1iN2SJRYmpbWQA4Jb3rlfp2RN9rk3YFhnR28ybpxGgoK12CUfbW08AEDCp68t/CHpFW d3T1zYEzTDENoPQURJJai3UQYHT+DH9YFNS1UoUWnjD+twhqgec+nTrDPJFJy9a+Mg6F Kxtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b="nf1/Cx2N"; 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 m11-20020a170902bb8b00b0016db43e520esi1315932pls.190.2022.07.28.09.30.51; Thu, 28 Jul 2022 09:31:07 -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="nf1/Cx2N"; 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 S233180AbiG1QPF (ORCPT + 99 others); Thu, 28 Jul 2022 12:15:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231580AbiG1QOc (ORCPT ); Thu, 28 Jul 2022 12:14:32 -0400 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F97D6E8B4; Thu, 28 Jul 2022 09:14:17 -0700 (PDT) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26SG2Xmn014939; Thu, 28 Jul 2022 16:13:53 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=drKCEPOrAhsLQJHh5ftj+RXsOecSe6wCwKgJTmwvUoY=; b=nf1/Cx2NJnR9Mxt744YHM9bDXls14DxfQ85ro/i7yO2lYxz366mrc2iHNBXGXLx9q8lG Bh6dD2lAgnPb2kLdHhbqcTdnwhvB1FhQ0N8c+YI0T57vzPXxOUrrisEdsxxyADhc6U+8 9j4xwM0eZajRu1XYssLrIoxHCCVNnKHUC+6eeCdfNSngp2qfoOcLtKVeKJGm3P4Riz10 /jyij/yEsYovSTm2D3zm4BAHweDCNmxT5Fl9TwXCHLYx9KtXiIrCSRSeGNdLqanRDt9U slGDATSAgp0gZqNMVxyo2sEObtGtkYTMnv6qYumDOZksC1ZYYrzIw/u3YrG+Hx6xppD7 Yw== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3hkunfsfhe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 28 Jul 2022 16:13:52 +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 p1lg14878.it.hpe.com (Postfix) with ESMTPS id AD8FDD2D2; Thu, 28 Jul 2022 16:13:51 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id ACBEE80805B; Thu, 28 Jul 2022 16:13:50 +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 Subject: [PATCH v6 0/5] Add SPI Driver to HPE GXP Architecture Date: Thu, 28 Jul 2022 11:14:54 -0500 Message-Id: <20220728161459.7738-1-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-GUID: ssDt2ASnFmnauocth-KRX5ehMeRxS2Rl X-Proofpoint-ORIG-GUID: ssDt2ASnFmnauocth-KRX5ehMeRxS2Rl 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-28_06,2022-07-28_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=484 mlxscore=0 adultscore=0 suspectscore=0 clxscore=1015 spamscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 bulkscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207280073 X-Spam-Status: No, score=-3.3 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 v6: *Removed spaces between tags on commit descriptions Changes since v5: *Fixed indentation in Kconfig file 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 -- 2.17.1