Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp483663imn; Wed, 27 Jul 2022 11:28:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vrUDecQsR7fMutXjGYoVzG23MeoHPZUcdYIqvjVmcBxjPvRi9S/ndfhJIBv0Ea4WTZVVVg X-Received: by 2002:a17:907:9619:b0:72b:4761:be19 with SMTP id gb25-20020a170907961900b0072b4761be19mr19876071ejc.20.1658946503995; Wed, 27 Jul 2022 11:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658946503; cv=none; d=google.com; s=arc-20160816; b=r7HLf/OAiCgtL7QxltuA9i/+Oby3Ru5GHhw6J2csuNZmRdE9zLS3qxmY9QCzhCKlG7 JA4qRm5/zZgU0AKbcp5DzuAr6gF7kH8R5QO+iYOsRi1Ezn1+ALjV8xWr+DnfJDGC97xZ 4Q8i4cFWf6nVI8kVbo3yyTHeYgaJiwkj+7ap7CvISm04boALM2xOGmBqNaCcrQvrId5Y VPvE68wM06Ceq5Iv1eEzVhyi7NXlGLazQCATB0jXb1mK2oBgxFyUbC/J0Ji/KPM+4WPs lEKSionYBb0GLOkT/ekBVWnWsw6fRK9wh/xIdi+2j043AKSND2yAgDTvfMtchK4M+x0z cTUQ== 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=XF/7WgfzXf1xTwYhNGQSX4EkrqVjEchKO6U2Qkrd1CM=; b=Ohd2xRR16lyNxrMxbVbSm6F2DIV7PkZE45udJ9rAH1yzsCuXSt7mQlq9u4DSY869Lh NK16MZLNFA8MXGSQUD1fo17JRZqhqzCfnrRGeMzgFYmJEGEmYx5M3dy328SJyLFbbhVV cBmiQfJ2lXa7s1htZVYzUB7XrpB4PX3Ub8D3OoaHwX4ovo5P5A3lMkigirS4lr4jTvHP fp4jYhpPTO5uheM55sHRhXK8rc3mJ+9XbL1qc1nRsYv7FV/0ibmTQK1SHF998bcjKHvE rUCuGp9ck9I1oEWTnXHfFv6dwrije/hFtOJxFbNhg/ti3lj/F1E2y1jDPIoXopKw4cND G57A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b="M4WH/9w/"; 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 dn1-20020a05640222e100b00435b2a66c73si5614993edb.191.2022.07.27.11.27.59; Wed, 27 Jul 2022 11:28:23 -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="M4WH/9w/"; 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 S242232AbiG0R3B (ORCPT + 99 others); Wed, 27 Jul 2022 13:29:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234679AbiG0R1h (ORCPT ); Wed, 27 Jul 2022 13:27:37 -0400 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71C67F51C; Wed, 27 Jul 2022 09:47: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 26RFwgfv026513; Wed, 27 Jul 2022 16:46:41 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=XF/7WgfzXf1xTwYhNGQSX4EkrqVjEchKO6U2Qkrd1CM=; b=M4WH/9w/HyncW/1JOWjti8jkvFWm/rcJEObo4i3JWR6zD2VW3ZcJzsVGPH9OTZQxzkVH LDF7Zn5FriTk8+lOWPXITye4MgYhmdVvll3rZvoyuyRqGY0C3IvPiY6XS/ETkSlly7gi 9k1y9GGuBE1sI/4jtn0oOR1JGSVP763yd8AkhEb88ZnWuye6khsP4h7QeItywTSo7Ulr Dqee6/3cqetei5n9WQDsgDo62h1gxvcPtkZsS86/V90zV3NBpuGbV6gKrsIrXqfK2u4j OI2MkAk5BJLWVcDbeEzidaNbgbWuulqmaaQh7mnFbtJ0s6rHAKQj8vxGVyi0NSy6WYXz JA== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3hk475amtx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 27 Jul 2022 16:46:41 +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 02663D2CF; Wed, 27 Jul 2022 16:46:39 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTP id 4CE77807B88; Wed, 27 Jul 2022 16:46:38 +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 v5 3/5] ARM: dts: hpe: Add spi driver node Date: Wed, 27 Jul 2022 11:47:34 -0500 Message-Id: <20220727164736.48619-4-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220727164736.48619-1-nick.hawkins@hpe.com> References: <20220727164736.48619-1-nick.hawkins@hpe.com> X-Proofpoint-ORIG-GUID: 2Mq3k4waDyCUaTzc3lbZeqcDdlsWLlH4 X-Proofpoint-GUID: 2Mq3k4waDyCUaTzc3lbZeqcDdlsWLlH4 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-27_06,2022-07-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 adultscore=0 malwarescore=0 mlxlogscore=455 impostorscore=0 mlxscore=0 phishscore=0 bulkscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207270070 X-Spam-Status: No, score=-3.4 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 Add support for the SPI flash interface on the GXP SoC. Signed-off-by: Nick Hawkins --- v5: *No change v4: *No change v3: *No change v2: *No change --- 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