From patchwork Wed Oct 12 14:06:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13005089 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B70FFC43219 for ; Wed, 12 Oct 2022 14:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K4ah88OfLf28M5eu0IGh2Gf4pTJCG/gnjQsEWyORf4E=; b=Nx8iSF/0UlROMV UfNyCnPTpSqVwsjSzpn0RcKUP7GYNU+3ZErMa4qbLcbS0GcFtQd6m+sDfQh6oDXzj1dvpYSm+EizH Lbs/X4Zrx3IFAdCC5vPwyodZakP6ZxRFkRDeU6dBVJ3VUUN6tCJ0hucI5LXRPaReQXLGd5kutz6PD EBzAyz3OCmgnaNfQNbGD5gGLa6ygwHJd1J3zNJhW2MY1g2hprfHVVvu0Gb1S8h7ol8/WAS/KFc8sA HMl9BpQ9pk9jfLw0CXZAzDHeuEzz2czIpa9eIyzbzVV4BtaKeonlU4HHyV0y8aQNtloxzF0c+4LAy WFspzCLRVK1kHdeTjfLA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oicOI-008JuE-KH; Wed, 12 Oct 2022 14:07:22 +0000 Received: from laurent.telenet-ops.be ([2a02:1800:110:4::f00:19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oicO0-008Jpo-KX for linux-arm-kernel@lists.infradead.org; Wed, 12 Oct 2022 14:07:06 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:3da6:62e6:8ab0:ff90]) by laurent.telenet-ops.be with bizsmtp id X26u2800F32x5mf0126ump; Wed, 12 Oct 2022 16:06:55 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1oicNq-001OZP-0d; Wed, 12 Oct 2022 16:06:54 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1oicNp-00C38K-LP; Wed, 12 Oct 2022 16:06:53 +0200 From: Geert Uytterhoeven To: Magnus Damm Cc: Yoshihiro Shimoda , Wolfram Sang , linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Hai Pham , Geert Uytterhoeven Subject: [PATCH 2/2] arm64: dts: renesas: white-hawk-cpu: Add QSPI FLASH support Date: Wed, 12 Oct 2022 16:06:51 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221012_070704_841609_E2BEB3A3 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Hai Pham Describe the QSPI FLASH on the White Hawk CPU board. Signed-off-by: Hai Pham Signed-off-by: Geert Uytterhoeven --- .../dts/renesas/r8a779g0-white-hawk-cpu.dtsi | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi index b306e5a10794dfb5..bb4dd08781ca275d 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk-cpu.dtsi @@ -232,12 +232,45 @@ mmc_pins: mmc { power-source = <1800>; }; + qspi0_pins: qspi0 { + groups = "qspi0_ctrl", "qspi0_data4"; + function = "qspi0"; + }; + scif_clk_pins: scif_clk { groups = "scif_clk"; function = "scif_clk"; }; }; +&rpc { + pinctrl-0 = <&qspi0_pins>; + pinctrl-names = "default"; + + status = "okay"; + + flash@0 { + compatible = "spansion,s25fs512s", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <40000000>; + spi-rx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + boot@0 { + reg = <0x0 0x1200000>; + read-only; + }; + user@1200000 { + reg = <0x1200000 0x2e00000>; + }; + }; + }; +}; + &scif_clk { clock-frequency = <24000000>; };