Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-23.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B10B8C4320E for ; Mon, 30 Aug 2021 22:41:47 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CBF9660FD8 for ; Mon, 30 Aug 2021 22:41:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CBF9660FD8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D774D833D0; Tue, 31 Aug 2021 00:41:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630363305; bh=/whriylCg34rCDiZn3IQ84vKOaA7jFaTEHdaxKmqjvg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=gC3qJccEx5v7LVje5j2E0vJAGQTIBcuvHI23MqAoZAQdLnE4fSGLdn9u8iszoisbR /I0H86ADpCp8N6WONmx7DICY1lNovgJ8tKSgzxaUREoErZZj9AGm5d8eX1pNXlhiXc HRpBcQfBw+7lO8Y7rRPFSvU2nr+dh/ge1HpuKldw1kcvkN60IH87a4X5mLiZx6Il5w TTf1XJ9BH6ZIBbjPoPG+T6oP6bLy5yTxCnti6j3SYU8lnYYo/PBrSSUETjfRC9jOWo TZEXN/PYocUIRtkFAI9xA2xKx1DcK7dRhPct+xwC+CBHzKz1ueNtKOH6KpxOmnKbvX sbsHkUrFBqf0A== Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 76501833C8; Tue, 31 Aug 2021 00:41:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1630363298; bh=/whriylCg34rCDiZn3IQ84vKOaA7jFaTEHdaxKmqjvg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=aHQDmbXG7jP6Gep9SLF3T+qqdjHPiZ/X23vD4FJvsY3aKE2GPlwdAa4agf7KQ7+t6 BLB+rULtSIvBIyI2TQhQ6rbM71pud9nxadPv0GIuwutLF3qWu3T4IcBQfd514O3elY hX2k7V2vqvFkTR9MLtYuBezMfZHWyrcCIa2JwmHByQ3jQoxaX3vqDKUx2pzeU7hP8B 8Unt4t4O3zx11ZXJlAh5UkCz72gqZwDXV5l3ZYfNqTPWfjZcsfJQL23cy5fsiq440K 5c2s57zrgPOLZ0pfERh+dZVlDSVnW0qhQKmfBde3uN+oTKNvWz0CnqfTM0bBvWqh6p iIBOxxgGu8WrA== Subject: Re: [PATCH V3] ARM: rmobile: beacon-renesom: Enable QSPI NOR Flash To: Adam Ford Cc: U-Boot Mailing List , Biju Bas References: <20210824160527.65245-1-aford173@gmail.com> <5b14b890-8474-dba0-880e-5c3c052fb636@denx.de> From: Marek Vasut Message-ID: <5af44ff5-353a-3aa6-5e90-9a9256db0830@denx.de> Date: Tue, 31 Aug 2021 00:41:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 8/30/21 10:57 PM, Adam Ford wrote: > On Tue, Aug 24, 2021 at 1:04 PM Marek Vasut wrote: >> >> On 8/24/21 6:05 PM, Adam Ford wrote: >>> There is a QSPI NOR flash part on the board. Because this chip isn't >>> yet supported in Linux, but it is supported in U-Boot, and the >>> face that the RPC_SPI compatible names are different in U-Boot and >>> Linux, the device tree updates are confined to -u-boot.dtsi files. >>> >>> In order to use the QSPI, TF-A must leave RPC unlocked by compiling >>> TF-A with RZG_RPC_HYPERFLASH_LOCKED=0. >>> >>> Signed-off-by: Adam Ford >>> Reviewed-by: Biju Bas >>> --- >>> V3: Rebase, and combine into som.dsti file >>> V2: Add note to commit message about TF-A >>> No functional changes >>> >>> diff --git a/arch/arm/dts/beacon-renesom-som.dtsi b/arch/arm/dts/beacon-renesom-som.dtsi >>> index 9565495b49..d30bab3c8b 100644 >>> --- a/arch/arm/dts/beacon-renesom-som.dtsi >>> +++ b/arch/arm/dts/beacon-renesom-som.dtsi >>> @@ -7,6 +7,10 @@ >>> #include >>> >>> / { >>> + aliases { >>> + spi0 = &rpc; >>> + }; >>> + >>> memory@48000000 { >>> device_type = "memory"; >>> /* first 128MB is reserved for secure area. */ >>> @@ -275,6 +279,25 @@ >>> }; >>> }; >>> >>> +&rpc { >>> + compatible = "renesas,rcar-gen3-rpc"; >>> + num-cs = <1>; >>> + spi-max-frequency = <40000000>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + status = "okay"; >>> + >>> + flash0: spi-flash@0 { >>> + #address-cells = <1>; >>> + #size-cells = <1>; >>> + reg = <0>; >>> + compatible = "spi-flash", "jedec,spi-nor"; >>> + spi-max-frequency = <40000000>; >>> + spi-tx-bus-width = <1>; >>> + spi-rx-bus-width = <1>; >>> + }; >>> +}; >>> + >>> &scif_clk { >>> clock-frequency = <14745600>; >>> }; >>> diff --git a/configs/r8a774a1_beacon_defconfig b/configs/r8a774a1_beacon_defconfig >>> index 23c423060d..7ba4ac05f5 100644 >>> --- a/configs/r8a774a1_beacon_defconfig >>> +++ b/configs/r8a774a1_beacon_defconfig >>> @@ -18,7 +18,9 @@ CONFIG_CMD_BOOTZ=y >>> CONFIG_CMD_GPIO=y >>> CONFIG_CMD_I2C=y >>> CONFIG_CMD_MMC=y >>> +CONFIG_CMD_MTD=y >>> CONFIG_CMD_PART=y >>> +CONFIG_CMD_SPI=y >>> CONFIG_CMD_USB=y >>> CONFIG_CMD_DHCP=y >>> CONFIG_CMD_MII=y >>> @@ -47,6 +49,10 @@ CONFIG_MMC_IO_VOLTAGE=y >>> CONFIG_MMC_UHS_SUPPORT=y >>> CONFIG_MMC_HS200_SUPPORT=y >>> CONFIG_RENESAS_SDHI=y >>> +CONFIG_MTD=y >>> +CONFIG_DM_MTD=y >>> +CONFIG_DM_SPI_FLASH=y >>> +CONFIG_SPI_FLASH_WINBOND=y >> >> Applied, but see my comment regarding all those duplicate config options >> under [PATCH 1/2] ARM: rmobile: beacon-renesom: Enable USB and ethernet >> ref clocks > > what repo do you use? i am not sure where to look. i want to add more > stuff, but i want to make sure i have the proper starting point. git://source.denx.de/u-boot-sh.git master