Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp21576rwj; Fri, 28 Oct 2022 21:48:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6nDNSOjPW3tf/PhZA4pYveaJjS+XWAdPYOiKnQ3O3N6g/DFFrRxgTtSgJBL5jSOpjSwzqg X-Received: by 2002:a17:907:724d:b0:78d:acf4:4c57 with SMTP id ds13-20020a170907724d00b0078dacf44c57mr2385304ejc.516.1667018888300; Fri, 28 Oct 2022 21:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667018888; cv=none; d=google.com; s=arc-20160816; b=ipTjfvzlOlcnq2rh5HGe3UwOkNpbw0bEpiutMBB8UlKrTC5OzTsyLQ3rHDjTft8nq8 48JDETtQwRmNsuqhjo6+i/IXZhF9y4nVAy9Lfny4D9IVovU+CB52ENwaA91KKLQhEyzk 1adUetwzPrNHWrUAM5HYnCK8uCtbydrvDaFuUvTVvntSeUE91S9VJCGQa05Qv5lWnFJU wPZG/TQN4ZCIjPQrwCZKrc/mxzV9WDvb3hqyGnbMmvbjBt0p4IWlcTENc+0aZrmGkPdb P48PZcAuFF9VLIkEJIGTVKO3xRE39oQVBZTggmu+H6DU9v0A4OcNfpwcYXSV7T2HOyjj FLEg== 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=PPQb+/VzgDA1UCUwZwGK3rC8gFvDPpSjDbA0q624DOM=; b=u9NDlG2BkD7dn0yWS7mueW4Azh4fzg3jX/kPHmBdrh7vfbw05tWKSbI5uMX34G1pCh 9i3hoxOla8Ddo9NzeiDszrDpSWGQbPWVEVyEgvFlPgnsz9sOUiwQBRWopeuX250p3TO3 foWEslOzy48PCIjemBg6pnVH31n60jslPHLc/jKKXYx64htUOvpoanGanV3k+VnVV5QB HGSgW5PBix4kJN2wkZdkyQkNB+Fd+JrwqcJt0QyOLkxBHtcNMypVBz0jyH2uxuPZ31o/ adA2Irj/sWIFtvq0n1gMZqMXgJ5t+bBPmQRiP142bvt4BvBCHMq8Gibdvk0979lfoskq OR5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HnoYnTOp; 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 y15-20020a50e60f000000b0046178c62b6asi623873edm.477.2022.10.28.21.47.43; Fri, 28 Oct 2022 21:48:08 -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=HnoYnTOp; 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 S229483AbiJ2EZX (ORCPT + 99 others); Sat, 29 Oct 2022 00:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbiJ2EZU (ORCPT ); Sat, 29 Oct 2022 00:25:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87A443A15E; Fri, 28 Oct 2022 21:25:17 -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 ams.source.kernel.org (Postfix) with ESMTPS id 44375B82E03; Sat, 29 Oct 2022 04:25:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD4ABC43141; Sat, 29 Oct 2022 04:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667017514; bh=/TyNm8r7XciBoT6CJYf4aBiDuqANUFlLnmCMI+cx/ew=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HnoYnTOpZc3Yq/ztVzHXSckxmNqNv5qimaVo/uBCSnbFFCt/VnvlAUE6rz96Pjkwi 0ch98vAeMzEsVNgIThK0sPeLb6vt8aYQSTq6xo84peZJ2Mr4dbtZ+lFBjI5nGDfWXk prUR6UhEVtt05IA4Wtrj7z1yqPBTuDpmprSFntyUjEF5Ol4My7z0msWaQkYdTIaXYX dc3QUJZw34ZTBVF49MNu3eU4s1oIhK1ecVVk/7eVxTyjiYE/yWkkG7oz/nYP71VTSF 0YTkniohiRhEy8W2WwH6ID/9+LxFeGq1Ztkk+JhZoIpqMDgz1wgayg9ifwyWpVQB5O SZUkmqB5W3JAg== Received: by mail-oo1-f50.google.com with SMTP id v7-20020a4aa507000000b00496e843fdfeso864844ook.7; Fri, 28 Oct 2022 21:25:14 -0700 (PDT) X-Gm-Message-State: ACrzQf1DyXT3ZHg9BElTMnf4fIAAKoLlxzFlAxhs9oCuRdKWv6hWw2j2 ibDSl+zI/7EgqgN2yJanrZI2YS6+BBmqUs0ejW8= X-Received: by 2002:a4a:2144:0:b0:481:a4:d2b0 with SMTP id u65-20020a4a2144000000b0048100a4d2b0mr1153471oou.48.1667017514013; Fri, 28 Oct 2022 21:25:14 -0700 (PDT) MIME-Version: 1.0 References: <20221028165921.94487-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20221028165921.94487-5-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20221028165921.94487-5-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Guo Ren Date: Sat, 29 Oct 2022 12:25:01 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 4/7] riscv: dts: renesas: Add initial devicetree for Renesas RZ/Five SoC 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 On Sat, Oct 29, 2022 at 12:59 AM Prabhakar wrote: > > From: Lad Prabhakar > > Add initial device tree for Renesas RZ/Five RISC-V CPU Core (AX45MP > Single). > > RZ/Five SoC is almost identical to RZ/G2UL Type-1 SoC (ARM64) hence we > will be reusing r9a07g043.dtsi [0] as a base DTSI for both the SoC's. > r9a07g043f.dtsi includes RZ/Five SoC specific blocks. > > Below are the RZ/Five SoC specific blocks added in the initial DTSI which > can be used to boot via initramfs on RZ/Five SMARC EVK: > - AX45MP CPU > - PLIC > > [0] arch/arm64/boot/dts/renesas/r9a07g043.dtsi > > Signed-off-by: Lad Prabhakar > --- > v4 -> v5 > * Fixed riscv,ndev value (should be 511) > * Reworked completely (sort of new patch) > > v3 -> v4 > * No change > > v2 -> v3 > * Fixed clock entry for CPU core > * Fixed timebase frequency to 12MHz > * Fixed sorting of the nodes > * Included RB tags > > v1 -> v2 > * Dropped including makefile change > * Updated ndev count > --- > arch/riscv/boot/dts/renesas/r9a07g043f.dtsi | 57 +++++++++++++++++++++ > 1 file changed, 57 insertions(+) > create mode 100644 arch/riscv/boot/dts/renesas/r9a07g043f.dtsi > > diff --git a/arch/riscv/boot/dts/renesas/r9a07g043f.dtsi b/arch/riscv/boot/dts/renesas/r9a07g043f.dtsi > new file mode 100644 > index 000000000000..50134be548f5 > --- /dev/null > +++ b/arch/riscv/boot/dts/renesas/r9a07g043f.dtsi > @@ -0,0 +1,57 @@ > +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +/* > + * Device Tree Source for the RZ/Five SoC > + * > + * Copyright (C) 2022 Renesas Electronics Corp. > + */ > + > +#include > + > +#define SOC_PERIPHERAL_IRQ(nr) (nr + 32) > + > +#include The initial patch shouldn't be broken. Combine them together with the minimal components and add others late. Don't separate the DTS files. > + > +/ { > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + timebase-frequency = <12000000>; > + > + cpu0: cpu@0 { > + compatible = "andestech,ax45mp", "riscv"; > + device_type = "cpu"; > + reg = <0x0>; > + status = "okay"; > + riscv,isa = "rv64imafdc"; > + mmu-type = "riscv,sv39"; > + i-cache-size = <0x8000>; > + i-cache-line-size = <0x40>; > + d-cache-size = <0x8000>; > + d-cache-line-size = <0x40>; > + clocks = <&cpg CPG_CORE R9A07G043_CLK_I>; > + > + cpu0_intc: interrupt-controller { > + #interrupt-cells = <1>; > + compatible = "riscv,cpu-intc"; > + interrupt-controller; > + }; > + }; > + }; > +}; > + > +&soc { > + interrupt-parent = <&plic>; > + > + plic: interrupt-controller@12c00000 { > + compatible = "renesas,r9a07g043-plic", "andestech,nceplic100"; > + #interrupt-cells = <2>; > + #address-cells = <0>; > + riscv,ndev = <511>; > + interrupt-controller; > + reg = <0x0 0x12c00000 0 0x400000>; > + clocks = <&cpg CPG_MOD R9A07G043_NCEPLIC_ACLK>; > + power-domains = <&cpg>; > + resets = <&cpg R9A07G043_NCEPLIC_ARESETN>; Ditto, Where is cpg? in r9a07g043.dtsi? > + interrupts-extended = <&cpu0_intc 11 &cpu0_intc 9>; > + }; > +}; > -- > 2.25.1 > -- Best Regards Guo Ren