Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5829900imw; Wed, 20 Jul 2022 13:28:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7H0R9eas+SfgZD/wosoKPqrJNBn3eO3Ivd2tcJLm//cnNBAfm1aVNmudWMbFeRDkgiaJe X-Received: by 2002:a05:6a00:b8b:b0:51c:2487:57b5 with SMTP id g11-20020a056a000b8b00b0051c248757b5mr40256015pfj.56.1658348888413; Wed, 20 Jul 2022 13:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658348888; cv=none; d=google.com; s=arc-20160816; b=nHV+ijNwVCzQYCJiZ5oviLKIi0p3xNSbxF3nkLTeS3iOkX292LrkoEfE4a9HKaKRVv y/yh0VdpjbDhlwnUa6EJnkOnFSEhEg1gsM7JFax2Aew1ZQVgkCf4sbjxPFdFxDRvmj02 TPxEj4lIo9OwQ6ZliKVx03hxaTrkuTxAy8j2BV+RFOsEC1pFabTvP0ceFy5iYkqz0opX HlZSph6QV2pr3V+0T8pFrcT8YNOd3bZpoCOt+gsGKSRpJz2ydSVft2EDEnrwiGsS/o0J +OiQOuRS0Wmmg1/E+Q3uCwRpohHchP/ofo2/LpM9Ah+10O1KTZP7E83KHDW+MMZZazl5 HSiQ== 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=tBXv1RN/QxUEA3fvWqFQRswjLYubC9wBxdrrvuT2QNs=; b=eUBU2C+HeO6iulpk030YkUrgXqmWH8cUJ3ZFUEUakOr/JSBbhekRWEIuebUvKFaLeg hqubCWUNEVcuO6K6dbNK79wUju8JMmxBmRZL7VQzsQtYYcwrfRtJZVceX9cNqhKsiBl+ qvBfEqCuKqDO8rxPY8M4zIrIXIECCTAS8o37v5EQODexxJYcKQM7hkW+IhoMVexc9z5B TegLB+G2E0UjqjWjC4hzPh8+Q8OV0XimV78ULXipsJZSAloP8LO0oFkIS95+se7TqOM6 8INe7fB2I1ph1dwZVPaKg4Ukk60yjEtSXM8dcbR1oOsOENNLSYz+SuDXl0huK/jo0+wy 1WBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=dVcce2w2; 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 a13-20020a170902eccd00b00163ebcaa03fsi26392481plh.312.2022.07.20.13.27.51; Wed, 20 Jul 2022 13:28:08 -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=dVcce2w2; 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 S230361AbiGTULb (ORCPT + 99 others); Wed, 20 Jul 2022 16:11:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbiGTULR (ORCPT ); Wed, 20 Jul 2022 16:11:17 -0400 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D643138D; Wed, 20 Jul 2022 13:11:15 -0700 (PDT) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26KJq9ri001534; Wed, 20 Jul 2022 20:10:49 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=tBXv1RN/QxUEA3fvWqFQRswjLYubC9wBxdrrvuT2QNs=; b=dVcce2w28B9/gLrmpvtHfdkEDFnSK7C8l8R5dLacOIZHX/1JZd2D9FLdY4vfckAoU1X3 rtdMn2x9jBEX7W93XZFULTQIlDQS5ajHLdtfrgaJsgRY758NwWRnlVNsZCMlA4si25qX zvMAdoCU6c832e56N1czngBTStiyV9I9AywqapJI6Sw46MR4tKsuCGvFzvTQK+Mpdddp Mqgbgox1wJj4qNrmasMquMOe3kU7HxKXeAGOhACib1/TlHnd7wP3wYWaNIQuesMbdekU fOT+F4/EUWQMfEhxvg5GyYfS+kHr04H68GMBo0E3AoBPX4vwO8coXxnZ8eRIwT4hqWDD 2A== Received: from p1lg14879.it.hpe.com (p1lg14879.it.hpe.com [16.230.97.200]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3hen90sn0f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Jul 2022 20:10:49 +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 p1lg14879.it.hpe.com (Postfix) with ESMTPS id E96BDD2CF; Wed, 20 Jul 2022 20:10:47 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 82B5780906E; Wed, 20 Jul 2022 20:10:46 +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 v1 0/5] Add SPI Driver to HPE GXP Architecture Date: Wed, 20 Jul 2022 15:11:53 -0500 Message-Id: <20220720201158.78068-1-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 X-Proofpoint-GUID: ofamtHPacx6DKFeTSXTLVx9qnGQtnxcE X-Proofpoint-ORIG-GUID: ofamtHPacx6DKFeTSXTLVx9qnGQtnxcE 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-20_12,2022-07-20_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 spamscore=0 mlxlogscore=688 clxscore=1011 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 impostorscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207200081 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 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 | 355 ++++++++++++++++++ 8 files changed, 500 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