Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp2324158rwj; Sun, 30 Oct 2022 15:37:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6NqVtcDemN2Qrr0JUcIha9guwPnstg/ai6NrT6/+iYpGyG4qyIT+4mNVfKNCjCmmb6dA4x X-Received: by 2002:a17:907:e8d:b0:791:a798:7e09 with SMTP id ho13-20020a1709070e8d00b00791a7987e09mr9972427ejc.717.1667169475987; Sun, 30 Oct 2022 15:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667169475; cv=none; d=google.com; s=arc-20160816; b=EUlSHJSV0k4aL7GntU6iNfvu/H6FB19u2rhGL64vY0U41MPOeZK7DBXWB93O+et/vD 8SnlAwtbsJD3NIYe22c4ACyMUZa6/LlivGwRe1qWa7rFaY9l705YO4+lLuW5Dd3k3Ddq ZHGnmJMf7dVOORMxncM7wQ6RKk0IwCz+8E4ay/3Z4ZplCFRXpXGMLnaLy2LvPaz1OiY2 /3SIm2deYiAuwTEmLtNn1Cc8YM2Y3aw3OBg6USRa3ZkT7u8ewRjqhXxch9UHcd4jP59M vJ7U7/A0m9vl1W9eB5SagasUUDIhF/9NifvIh1yAfjGaVi/vny6l/lEplYeVLNLC6TED 20cA== 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=YjgCwoppK5K4nAEcrBSrmaQ1uKTp6E8RaEwIZih6jLM=; b=l5ymbuP8ri9PgEZmATe1iTtDn9bxPgtj5e4cDAAfkuaoln0eBD0GDLq0ycE+d01niM Rbd5NlEDldNkeaSkTyd0PqWkOTiDlk/Ncm46UZohIUC1wKt7rVhDEU6/yDBurqdW9n18 PpAxnMFLH2fjmS16D0WN5Y1zjIIqHp5gczi8Je81T99dXr5cDSecrfVTf4PVfh3uCV21 gGazB+Ezcf5jEO10HAAmODvDAA1q3fs9jq+wBuHeMGBOfJ1jYGZKVXn5YLJB2oL84AXN /TMZ3PJ2nY/CBDgeYfmkL+r8SrfBchpZ4EZateuQ4BndQ9fk+MHMUhXsQAfwBu/w9Rac 3TqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Jh394vPL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq42-20020a1709073f2a00b007a1d4f0e7fcsi6202384ejc.655.2022.10.30.15.37.31; Sun, 30 Oct 2022 15:37:55 -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=@gmail.com header.s=20210112 header.b=Jh394vPL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbiJ3W1r (ORCPT + 99 others); Sun, 30 Oct 2022 18:27:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiJ3W1q (ORCPT ); Sun, 30 Oct 2022 18:27:46 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13671F3A; Sun, 30 Oct 2022 15:27:45 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id b2so25414342eja.6; Sun, 30 Oct 2022 15:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YjgCwoppK5K4nAEcrBSrmaQ1uKTp6E8RaEwIZih6jLM=; b=Jh394vPLEoW0E+X/YoMd5kBFuQoOkW2YgCG1HOxCUDscvWe5tICJlcY3q95HgMFBCO b0dMHamfqrs7LzVMUpzv+YuYiItJ9XFCoXp2EnsPlClzMjVqbgxT2zPhP4weXF59Ozsc bfOD2upPMuGvtjjHmmYz7Kis/shVYEuPz378q6AVA7LAwg9En9FxRsLTMdtNNGl1MoUx X5r8FLh67rigiYKQyNtwJWf+kUd74usf4V3l2VhMwePaJYOWP0WBihntzVYPNh4IKZq4 C8hTSN19RlX5QDlcaK0c/idsqikmfh7HsBjNokACCDlKXmP5CDNxXd9HBf/hoh+vsm/s Lp+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YjgCwoppK5K4nAEcrBSrmaQ1uKTp6E8RaEwIZih6jLM=; b=VN43sTJ6GGwSK/HMPbG60508UzGtGPHdWrxh5tGOC+96WWwa95Xy74pPPYpQ5WwMfV oL9C7hEHVfsSybep7GUEUgpwJq3Z2h3tmbq5Y+WhjwjzsRq9oxR3nTzT1+hSA5R1chLy kOn5IEAWlowuMP7+gpqhHSPYv6zezwWPrH9OLP6h4I01AEgUCHmK/0NeYj/ZhefLxBvL XZ3FaH+JM3zsakTv5aPOdkmjUmSb4yw4ZLARymU/BvwYadRq1v0z2WcKFIHgm4RRZ/mv sh0/VN5yVCRaaDkcq56A7IE1nElzI/MVuvR6pBcyzwhzS/1CWv8/HWA/XrhknX22MFmW ICMA== X-Gm-Message-State: ACrzQf13XVtaqe5rCKxzdPgBv9lTXEj6GOOILJTwS3biP0SIDUuInhZB cU8ljCAkBjYa2ON2oH+AIY9zujYOIZA5agEQoHA= X-Received: by 2002:a17:906:c14f:b0:793:30e1:96be with SMTP id dp15-20020a170906c14f00b0079330e196bemr10118283ejc.447.1667168863525; Sun, 30 Oct 2022 15:27:43 -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: From: "Lad, Prabhakar" Date: Sun, 30 Oct 2022 22:27:17 +0000 Message-ID: Subject: Re: [PATCH v5 4/7] riscv: dts: renesas: Add initial devicetree for Renesas RZ/Five SoC To: Conor Dooley Cc: Guo Ren , 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi Conor, On Sun, Oct 30, 2022 at 6:16 PM Conor Dooley wrote: > > On Sun, Oct 30, 2022 at 08:02:10AM +0800, Guo Ren wrote: > > On Sun, Oct 30, 2022 at 3:11 AM Lad, Prabhakar > > wrote: > > > > > > Hi Guo, > > > > > > Thank you for the review. > > > > > > On Sat, Oct 29, 2022 at 5:25 AM Guo Ren wrote: > > > > > > > > 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. > > > > > > > r9a07g043.dtsi [0] already exists in the kernel. r9a07g043.dtsi is > > > shared with the RZ/G2UL SoC (ARM64) and the RZ/Five SoC. There are two > > > more patches [1] which are required and are currently queued up in the > > > Renesas tree for v6.2 (Ive mentioned the dependencies in the cover > > > letter). > > > > You could just move the below part to the second dtsi patch. Then > > compile won't be broken. > > > > clocks = <&cpg CPG_MOD R9A07G043_NCEPLIC_ACLK>; > > power-domains = <&cpg>; > > resets = <&cpg R9A07G043_NCEPLIC_ARESETN>; > > The makefile for this directory is not added until the next patch right? > The compile shouldn't be broken here since it therefore cannot be > compiled? > These nodes are already present in the kernel [0] so the makefile change in the next patch if made here still won't break the compilation alone of SoC DTSI (included in dts). [0] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/arch/arm64/boot/dts/renesas/r9a07g043.dtsi?h=next-20221028#n563 Cheers, Prabhakar