Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5819667imw; Wed, 20 Jul 2022 13:13:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v4sOEc7H4f0FFRoqBI7b0MZXR+MF1HaS2NJKJ44NfLX75XA5HgEke6YcyfX94bBhJACOSh X-Received: by 2002:a65:4b83:0:b0:41a:7b78:280b with SMTP id t3-20020a654b83000000b0041a7b78280bmr947428pgq.485.1658348035026; Wed, 20 Jul 2022 13:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658348035; cv=none; d=google.com; s=arc-20160816; b=ep7aVnvmjgW3WFUkgwPHeY9+wT+BcESU09cucMF3m8ngCzuFIo9A3GsdMCD+WiGGUU imeTdxqLWCV3iNXMRV5zcZFdL3+GwuxHo3I82uDNLT9NNMr/nTAeAsH1yYqZjKgmyIZ9 L4HbgXtyhgeG0DjP6bzSLjd9J6Fu1e3wuwcBKgcGJBMc7TugDwQVgAiTj7TylebJOJ51 uEPCsfFnK1+PSS4QA/jwa1HgB5EbNmeRK3bxep3269RydcgTHdCWTyqtJ4BOQDH/zr4L Al6NkWXGvGZlkrAtCXeIzXKYSZU9azTOKMEZ3+P2VyvrGLEp30mhQDOOIhUSsQDHtV1A EcUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=HtfXmkSXnTA3tk329gHoIH3xXpSJPt6EqIgawHGvgtc=; b=QbfZQeldArtFRU5gy30SjfwZDNJLfD4LjHb9umYUK799hf3l6rOpJ69hKkErrXG9q1 DDMRQbo4gYhZjQeFWtDaETRcZqVMB7INBxj+NA7AmeZIX5QPAxVXq32jt11XZuJcjpSW si2E7nEaYjZmaL3KMq+DUA2NIDlnJQaNWdxjplyHG27OCF3ws9vRIH4egDx7shkjeXww 5epejGrWzfbAINwM2BmqDzpUbOLO6fUkJ83SrTe+zZnFd0bJMOsfkATSkc8Kgj7OAlOi Gab2GZvFcbQKgARH7Zgy0ZDlTLgcs633YPrtYghfYKwIYO1raRFWHdLateplL4ddZmcj e+AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b="bDsjiKk/"; 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 l63-20020a638842000000b00415d3a444e4si24375428pgd.404.2022.07.20.13.13.39; Wed, 20 Jul 2022 13:13:55 -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="bDsjiKk/"; 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 S230242AbiGTULZ (ORCPT + 99 others); Wed, 20 Jul 2022 16:11:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbiGTULQ (ORCPT ); Wed, 20 Jul 2022 16:11:16 -0400 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83D6645F49; Wed, 20 Jul 2022 13:11:15 -0700 (PDT) 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 26KEOaN2009477; Wed, 20 Jul 2022 20:10:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=pps0720; bh=HtfXmkSXnTA3tk329gHoIH3xXpSJPt6EqIgawHGvgtc=; b=bDsjiKk/ZdJxcAO0tad5a1f+/L4hIInxOcH+l8Nnl4fG0ACwjoUivRmf8jDTpEG+CZ27 jKsJ/FclGpbOTzprZFRd1mLTzga6gkg1Z4fo+5SWoQruIubmp4r3aW73SWrXCyOJaC91 zXFBqPlrn1g0IgSuMVeT449hM9/XljVicjlZ+YVNn3BRDnEY1HlqzDyE/8K1vhfCgGhP Ew/Pj6U9SnJc8UOpdBH9M0Upye84vUdiOtB3q2IdM6Qf7ZP5g4geGJrYxuTf3AeozLAx xws3GQflcD92nBOkLhBTt5HX4dE9ZzoWb/VowfHaTtgl3Ksj32vVAbG/Gq8OFePSjCLd hA== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3hekefauej-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Jul 2022 20:10:50 +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 p1lg14878.it.hpe.com (Postfix) with ESMTPS id 97B4ED2C1; Wed, 20 Jul 2022 20:10:49 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 0DB0C808C08; Wed, 20 Jul 2022 20:10:49 +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 3/5] ARM: dts: hpe: Add spi driver node Date: Wed, 20 Jul 2022 15:11:56 -0500 Message-Id: <20220720201158.78068-4-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220720201158.78068-1-nick.hawkins@hpe.com> References: <20220720201158.78068-1-nick.hawkins@hpe.com> X-Proofpoint-GUID: ZnIKcY7zt56x7RjQCtZNbh5-AII5xSNb X-Proofpoint-ORIG-GUID: ZnIKcY7zt56x7RjQCtZNbh5-AII5xSNb 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 malwarescore=0 phishscore=0 mlxlogscore=443 priorityscore=1501 lowpriorityscore=0 mlxscore=0 adultscore=0 suspectscore=0 bulkscore=0 spamscore=0 clxscore=1015 impostorscore=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, 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 Add support for the SPI flash interface on the GXP SoC. Signed-off-by: Nick Hawkins --- arch/arm/boot/dts/hpe-bmc-dl360gen10.dts | 58 ++++++++++++++++++++++++ arch/arm/boot/dts/hpe-gxp.dtsi | 21 ++++++++- 2 files changed, 78 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/hpe-bmc-dl360gen10.dts b/arch/arm/boot/dts/hpe-bmc-dl360gen10.dts index 3a7382ce40ef..d49dcef95c5c 100644 --- a/arch/arm/boot/dts/hpe-bmc-dl360gen10.dts +++ b/arch/arm/boot/dts/hpe-bmc-dl360gen10.dts @@ -24,3 +24,61 @@ reg = <0x40000000 0x20000000>; }; }; + +&spifi { + status = "okay"; + flash@0 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + u-boot@0 { + label = "u-boot"; + reg = <0x0 0x60000>; + }; + + u-boot-env@60000 { + label = "u-boot-env"; + reg = <0x60000 0x20000>; + }; + + kernel@80000 { + label = "kernel"; + reg = <0x80000 0x4c0000>; + }; + + rofs@540000 { + label = "rofs"; + reg = <0x540000 0x1740000>; + }; + + rwfs@1c80000 { + label = "rwfs"; + reg = <0x1c80000 0x250000>; + }; + + section@1ed0000{ + label = "section"; + reg = <0x1ed0000 0x130000>; + }; + }; + }; + flash@1 { + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + host-prime@0 { + label = "host-prime"; + reg = <0x0 0x02000000>; + }; + + host-second@2000000 { + label = "host-second"; + reg = <0x02000000 0x02000000>; + }; + }; + }; +}; diff --git a/arch/arm/boot/dts/hpe-gxp.dtsi b/arch/arm/boot/dts/hpe-gxp.dtsi index cf735b3c4f35..f28349bdeee1 100644 --- a/arch/arm/boot/dts/hpe-gxp.dtsi +++ b/arch/arm/boot/dts/hpe-gxp.dtsi @@ -56,9 +56,28 @@ compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x0 0xc0000000 0x30000000>; + ranges = <0x0 0xc0000000 0x40000000>; dma-ranges; + spifi: spi@200 { + compatible = "hpe,gxp-spifi"; + reg = <0x200 0x80>, <0xc000 0x100>, <0x38000000 0x8000000>; + interrupts = <20>; + interrupt-parent = <&vic0>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + flash@0 { + reg = <0>; + compatible = "jedec,spi-nor"; + }; + + flash@1 { + reg = <1>; + compatible = "jedec,spi-nor"; + }; + }; + vic0: interrupt-controller@eff0000 { compatible = "arm,pl192-vic"; reg = <0xeff0000 0x1000>; -- 2.17.1