Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp849880imi; Fri, 22 Jul 2022 10:49:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sm99roh3PMryepv94frmtvx5KhrQJTZgLmG09/SaOdQASHHmkTTU0wdhXowKZJ85NgNUKW X-Received: by 2002:a17:90a:e68c:b0:1f2:124d:1143 with SMTP id s12-20020a17090ae68c00b001f2124d1143mr18401163pjy.22.1658512192458; Fri, 22 Jul 2022 10:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658512192; cv=none; d=google.com; s=arc-20160816; b=L8+8Ko4kAKmacPgYp+JDwvbcc9YDE027zUeaTJpcdbXe9j2k+G5GXxiERxr5tkUD96 yHYQ+wcQk/Atr5HHKJ3HESIm2ZqCQ6HfcZohtWH9DwLRt646b1rLFXftNaKDESUWhnTJ gPlWqi3QUNilllATqSbcCMNkq0gG0JhpfetJcYar965vhZmyq6p9LgY8stiNnr0PWwcN wE7mSErbNtbRZMpB7rAfKmhX2E4CHK0SjEOgzZOAMgpKEy3+Dpy47c7yu4ggYJfBf8ag 2/MtEbHDk0P70Zg55PtarF8Mo+8zzo20lhqlnMJB6noFyXOKmdzAWn5kC8sgVVMZ0oIL aJoQ== 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=ZULrVnnOC0DVXHYOjrHUxmU8YMzbwQ6dyWIjAFLxq1s=; b=fTJqbUH1JV1Uv9f4Lc7K8MInjS3NuDIvCmX5wBw8fjGB/i+QMxzrIfaw8Lt/bjlOJN QkYM82EE0jZ6bZHB8LmDQpUXtePJWVOCtwpnzO9bptVOq29IBm8d+joi/gFP0vODtcic 5qRvQpkiT1rmnS2TCq+oPcK8n5MMeLhAu844Yvy0hStzFGr/KvKFjJNWw/6HQhKJPiH0 kDBNY4nALFDBpuCFF4Vlui3hL3A5QirPX+VTo7V4tFy25d+xDODeN7ioidFFBoYfO07o ex5xPG+9RuV2ssFxiV1AYlqYqayLkvJ4QZinPuTjZ+tLTcK910c7lrBphuhjBIOxwSyy uLAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=joX0KKHq; 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 z4-20020a6553c4000000b004129c83c31esi6652973pgr.313.2022.07.22.10.49.37; Fri, 22 Jul 2022 10:49:52 -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=joX0KKHq; 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 S236125AbiGVRWz (ORCPT + 99 others); Fri, 22 Jul 2022 13:22:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236102AbiGVRWy (ORCPT ); Fri, 22 Jul 2022 13:22:54 -0400 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C11E965D64; Fri, 22 Jul 2022 10:22:51 -0700 (PDT) Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26MDZrYX002188; Fri, 22 Jul 2022 17:22:28 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=ZULrVnnOC0DVXHYOjrHUxmU8YMzbwQ6dyWIjAFLxq1s=; b=joX0KKHqTnaztNa4InlEo34cEf2x+sEyN93Fgozs38bXImWyC9racaNuDp6mKgs/rw4R tP8ggfp+jemY7pEhtqN+G23noNHLA1owvH8RfuDq3tcR66pjdRiOZWk+HZwF2ioFzy45 TBM+hrVlVeTGn1goz2s2Rl8Jpo29diedTcUI2AGFWMwn3Pio1HJjA1iZO7NKwyrG3uwA zkg7/ov7Y0B8QxsLUpaf3NpvFnFhoJ1lCsG7SNQG7WlRfqDarSN6BVx+vuDSbWIEeuQB HYVR/ZH/7rnb7pcQ1fob67ZTWihfy4iW4Y1K5E7jHpv0fYLlouPaH+Gz6yVpk3dvBxUj /w== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3hfvwqhteh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Jul 2022 17:22:27 +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 00EF8147A0; Fri, 22 Jul 2022 17:22:26 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id 7502C802B8E; Fri, 22 Jul 2022 17:22:26 +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 v2 3/5] ARM: dts: hpe: Add spi driver node Date: Fri, 22 Jul 2022 12:23:33 -0500 Message-Id: <20220722172335.33404-4-nick.hawkins@hpe.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220722172335.33404-1-nick.hawkins@hpe.com> References: <20220722172335.33404-1-nick.hawkins@hpe.com> X-Proofpoint-ORIG-GUID: Ve6y4LliJKctwdbhMNO7CEdd3ePk4-kx X-Proofpoint-GUID: Ve6y4LliJKctwdbhMNO7CEdd3ePk4-kx 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 phishscore=0 impostorscore=0 clxscore=1015 mlxscore=0 mlxlogscore=453 suspectscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207220073 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 --- 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