Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp21806rwj; Fri, 28 Oct 2022 21:48:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4nGqIxQ4j872hnrL5wtfLlPXyilXrN1+zY867WhgdpWEm8deZ3WVFYnCuxBIg1WqxygSCv X-Received: by 2002:a17:907:2cf0:b0:7aa:21b1:9b4f with SMTP id hz16-20020a1709072cf000b007aa21b19b4fmr2474736ejc.752.1667018908996; Fri, 28 Oct 2022 21:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667018908; cv=none; d=google.com; s=arc-20160816; b=p+KhTPTtWZhyfXgzM4NE2/5904YwtGgHXH3hdhCIajNFW2OvXmp99Wfr1eWrSST4fz LLlDUCiUOhJkduzP6AwgF0iJBXjm9iRkFSnsgZmLEyE2yavHOVVabvl3jBKr1FKAi/7A zZELFrwM/BZnScDfk/LxjHWDPXiDI1DM71juGwg2m6TCmEsEbmXlfvOPlZe5yCJ/eYEr BzLWxNOQrNKqzqtgveC9z8R6Si/u6Mup+qhJiMVZqQhGYKPu8IbxsdZMRLbi0ise+z8O HLiySKp4Y6NHtHjh3mT+fD54B5mmc9POrk6mGwIXRd6HPgljp3vKu7Ba/8pRoQBplCNT mZpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fs1HL95YS/zxvn1FZLEUw7rLRkbS+/hBXNjUyfy7zMs=; b=L6skBYZFB+/dK8TeAqr8gYXyZ/TWY5wvQ09lqRqlpmIVKAUC+sJ7+Gc/Mr3ktfU2Lt tU/LcZiEyr1G3+XBD5bpWl3H0hxr6uWE9GtaysvLbo15xRuigh8PxoqCkjSoZif3fGLz q/5m+D/T8HCKZ213wPNqviq7AFdUB4hiK+Hxx2JZsGjvtrYtzpFAkZ/BHmA0QuBbYbi/ o8UwjsdqR07nXeNPCGQJ9bRbwTOGK1FkzejB8+cXO76413VtBoDYXDbPQ2mUngGCsPZh 4p1XyCDAv1wdsyJdCjrWXmRS7c32Z0OGnUvwzMfqVfeZ//Z3OKDG/rcaj05sn0G0I0t1 ERew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZZFyE7fo; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb17-20020a1709071c9100b0078def5c29e3si823268ejc.596.2022.10.28.21.48.04; Fri, 28 Oct 2022 21:48:28 -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=@kernel.org header.s=k20201202 header.b=ZZFyE7fo; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229520AbiJ2E0g (ORCPT + 99 others); Sat, 29 Oct 2022 00:26:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiJ2E0e (ORCPT ); Sat, 29 Oct 2022 00:26:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 382A697ED8; Fri, 28 Oct 2022 21:26:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C3CE560A0B; Sat, 29 Oct 2022 04:26:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FB1BC433D7; Sat, 29 Oct 2022 04:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667017592; bh=0X6sbdtU1ASk+HWNzupcd82PSckOfahyy4rWtTLlMTA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZZFyE7fo8/A4yTP6dAVseuo/g2ECeyLmtJzni7kzmj659Fpo0TVcvjohM3Oo4o7Ts vClw8d4lyxWsOCs0CktVWLEXvyTQPyMg+45BLUAwoKJp9yewS6FfX17zM0GdcbzOTo Wsao+2Ug+uiJl9engsjFBhQRdqH7OI67uq+lfG02TRMmDlQNvXFN76PMN4Wok1aSc6 uKZXtJ0Af3n9GJytWqINpjmItPYfJHn4ql0DJ+LM9XVLLAb5Rh3TGfmnhjQY8NJa3t VOg50fpWbd3rkF1+3hO24ZpqapsdgdMMTBtf2gfVGydErqmz9zFFVIKj15llA7fKKU s7773fa0QkVPQ== Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-13bd2aea61bso8513239fac.0; Fri, 28 Oct 2022 21:26:32 -0700 (PDT) X-Gm-Message-State: ACrzQf2Yv+hYaEGcQuBYb6bfis3yPMaNInV2y/CgcyOawgVtOR3krrRF u1l/eROBZuHHqoCypqt5HzqWLts/wooFCsjgvow= X-Received: by 2002:a05:6870:5803:b0:12c:c3e0:99dc with SMTP id r3-20020a056870580300b0012cc3e099dcmr10207277oap.19.1667017591346; Fri, 28 Oct 2022 21:26:31 -0700 (PDT) MIME-Version: 1.0 References: <20221028165921.94487-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221028165921.94487-6-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20221028165921.94487-6-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Guo Ren Date: Sat, 29 Oct 2022 12:26:19 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 5/7] riscv: dts: renesas: Add minimal DTS for Renesas RZ/Five SMARC EVK To: Prabhakar Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Conor Dooley , Anup Patel , Atish Patra , Heinrich Schuchardt , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Biju Das , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 This should combine with the previous one, which makes the patch complete. On Sat, Oct 29, 2022 at 12:59 AM Prabhakar wrote: > > From: Lad Prabhakar > > Enable the minimal blocks required for booting the Renesas RZ/Five > SMARC EVK with initramfs. > > Below are the blocks which are enabled: > - CPG > - CPU0 > - DDR (memory regions) > - PINCTRL > - PLIC > - SCIF0 > > As we are reusing the RZ/G2UL SoC base DTSI [0], RZ/G2UL SMARC SoM [1] and > carrier [2] board DTSIs which enables almost all the blocks supported > by the RZ/G2UL SMARC EVK and whereas on RZ/Five SoC we will be gradually > enabling the blocks hence the aliases for ETH/I2C are deleted and rest > of the IP blocks are marked as disabled/deleted. > > [0] arch/arm64/boot/dts/renesas/r9a07g043.dtsi > [1] arch/arm64/boot/dts/renesas/rzg2ul-smarc-som.dtsi > [2] arch/arm64/boot/dts/renesas/rzg2ul-smarc.dtsi > > Signed-off-by: Lad Prabhakar > --- > v4 -> v5 > * Reworked completely (sort of new patch) > > v3 -> v4 > * Dropped deleting place holder nodes > * Updated SW1 settings comment > * Update commit message > > v2 -> v3 > * Dropped RB tags from Conor and Geert > * Now re-using the SoM and carrier board DTS/I from RZ/G2UL > > v1 -> v2 > * New patch > --- > arch/riscv/boot/dts/Makefile | 1 + > arch/riscv/boot/dts/renesas/Makefile | 2 + > .../boot/dts/renesas/r9a07g043f01-smarc.dts | 27 ++++++ > .../boot/dts/renesas/rzfive-smarc-som.dtsi | 58 ++++++++++++ > arch/riscv/boot/dts/renesas/rzfive-smarc.dtsi | 91 +++++++++++++++++++ > 5 files changed, 179 insertions(+) > create mode 100644 arch/riscv/boot/dts/renesas/Makefile > create mode 100644 arch/riscv/boot/dts/renesas/r9a07g043f01-smarc.dts > create mode 100644 arch/riscv/boot/dts/renesas/rzfive-smarc-som.dtsi > create mode 100644 arch/riscv/boot/dts/renesas/rzfive-smarc.dtsi > > diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile > index ff174996cdfd..b0ff5fbabb0c 100644 > --- a/arch/riscv/boot/dts/Makefile > +++ b/arch/riscv/boot/dts/Makefile > @@ -3,5 +3,6 @@ subdir-y += sifive > subdir-y += starfive > subdir-$(CONFIG_SOC_CANAAN_K210_DTB_BUILTIN) += canaan > subdir-y += microchip > +subdir-y += renesas > > obj-$(CONFIG_BUILTIN_DTB) := $(addsuffix /, $(subdir-y)) > diff --git a/arch/riscv/boot/dts/renesas/Makefile b/arch/riscv/boot/dts/renesas/Makefile > new file mode 100644 > index 000000000000..2d3f5751a649 > --- /dev/null > +++ b/arch/riscv/boot/dts/renesas/Makefile > @@ -0,0 +1,2 @@ > +# SPDX-License-Identifier: GPL-2.0 > +dtb-$(CONFIG_ARCH_R9A07G043) += r9a07g043f01-smarc.dtb > diff --git a/arch/riscv/boot/dts/renesas/r9a07g043f01-smarc.dts b/arch/riscv/boot/dts/renesas/r9a07g043f01-smarc.dts > new file mode 100644 > index 000000000000..2aa8515451d3 > --- /dev/null > +++ b/arch/riscv/boot/dts/renesas/r9a07g043f01-smarc.dts > @@ -0,0 +1,27 @@ > +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +/* > + * Device Tree Source for the RZ/Five SMARC EVK > + * > + * Copyright (C) 2022 Renesas Electronics Corp. > + */ > + > +/dts-v1/; > + > +/* > + * DIP-Switch SW1 setting > + * 1 : High; 0: Low > + * SW1-2 : SW_SD0_DEV_SEL (0: uSD; 1: eMMC) > + * SW1-3 : SW_ET0_EN_N (0: ETHER0; 1: CAN0, CAN1, SSI1, RSPI1) > + * Please change below macros according to SW1 setting on the SoM > + */ > +#define SW_SW0_DEV_SEL 1 > +#define SW_ET0_EN_N 1 > + > +#include "r9a07g043f.dtsi" > +#include "rzfive-smarc-som.dtsi" > +#include "rzfive-smarc.dtsi" > + > +/ { > + model = "Renesas SMARC EVK based on r9a07g043f01"; > + compatible = "renesas,smarc-evk", "renesas,r9a07g043f01", "renesas,r9a07g043"; > +}; > diff --git a/arch/riscv/boot/dts/renesas/rzfive-smarc-som.dtsi b/arch/riscv/boot/dts/renesas/rzfive-smarc-som.dtsi > new file mode 100644 > index 000000000000..45a182fa3b4b > --- /dev/null > +++ b/arch/riscv/boot/dts/renesas/rzfive-smarc-som.dtsi > @@ -0,0 +1,58 @@ > +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +/* > + * Device Tree Source for the RZ/Five SMARC EVK SOM > + * > + * Copyright (C) 2022 Renesas Electronics Corp. > + */ > + > +#include > + > +/ { > + aliases { > + /delete-property/ ethernet0; > + /delete-property/ ethernet1; > + }; > + > + chosen { > + bootargs = "ignore_loglevel"; > + }; > + > + /delete-node/opp-table-0; > + /delete-node/thermal-zones; > +}; > + > +&adc { > + status = "disabled"; > +}; > + > +&dmac { > + status = "disabled"; > +}; > + > +ð0 { > + status = "disabled"; > +}; > + > +ð1 { > + status = "disabled"; > +}; > + > +&ostm1 { > + status = "disabled"; > +}; > + > +&ostm2 { > + status = "disabled"; > +}; > + > +&sdhi0 { > + status = "disabled"; > +}; > + > +&tsu { > + status = "disabled"; > +}; > + > +&wdt0 { > + status = "disabled"; > +}; > diff --git a/arch/riscv/boot/dts/renesas/rzfive-smarc.dtsi b/arch/riscv/boot/dts/renesas/rzfive-smarc.dtsi > new file mode 100644 > index 000000000000..e64f0e5f8e30 > --- /dev/null > +++ b/arch/riscv/boot/dts/renesas/rzfive-smarc.dtsi > @@ -0,0 +1,91 @@ > +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +/* > + * Device Tree Source for the RZ/Five SMARC EVK carrier board > + * > + * Copyright (C) 2022 Renesas Electronics Corp. > + */ > + > +#include > + > +/ { > + aliases { > + /delete-property/ i2c0; > + /delete-property/ i2c1; > + }; > +}; > + > +&canfd { > + status = "disabled"; > + > + channel0 { > + status = "disabled"; > + }; > + > + channel1 { > + status = "disabled"; > + }; > +}; > + > +&ehci0 { > + status = "disabled"; > +}; > + > +&ehci1 { > + status = "disabled"; > +}; > + > +&hsusb { > + status = "disabled"; > +}; > + > +&i2c0 { > + status = "disabled"; > +}; > + > +&i2c1 { > + status = "disabled"; > +}; > + > +&ohci0 { > + status = "disabled"; > +}; > + > +&ohci1 { > + status = "disabled"; > +}; > + > +&phyrst { > + status = "disabled"; > +}; > + > +&sdhi1 { > + status = "disabled"; > +}; > + > +&snd_rzg2l { > + status = "disabled"; > +}; > + > +&spi1 { > + status = "disabled"; > +}; > + > +&ssi1 { > + status = "disabled"; > +}; > + > +&usb0_vbus_otg { > + status = "disabled"; > +}; > + > +&usb2_phy0 { > + status = "disabled"; > +}; > + > +&usb2_phy1 { > + status = "disabled"; > +}; > + > +&vccq_sdhi1 { > + status = "disabled"; > +}; > -- > 2.25.1 > -- Best Regards Guo Ren