Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1503704rwb; Fri, 19 Aug 2022 05:02:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR6qE0b0hlB7WoCmhUA7+VfG7uXpl0MwVYDlbG4WI3TreK1JI/81xjv1o+rrLcCFlJ6DEhar X-Received: by 2002:a17:907:7b83:b0:730:8649:9836 with SMTP id ne3-20020a1709077b8300b0073086499836mr4674964ejc.0.1660910526883; Fri, 19 Aug 2022 05:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660910526; cv=none; d=google.com; s=arc-20160816; b=ZCIYdn2AJwD0qRX5a7knITIWcuAi99tlJ3vMypbeSmL4T94M2IhQX4WbUMsDNvvCwJ E4OdYkWhBFMd7o7zWxCMWGXS0pP752xwqW3bEHgF85/EMnzgKSQUsMCL+x9D6rVoz0Pm 9vokcsAJJ90WCWpj6RQVlpWjWoJ2+s8oHQMvFtRz9uCc5RBsjkyFmmWmEGM5gdSEwgjx AKh5OF5kMd1DStQq3IfF1xq6UTsosVkycnki7byp29ofuRhEXjBc61/FCZmL8IE31QXi Zbux7Os8pC4aofGmVmEbfyxhI0j/njErpPA57036KDwsyTUo/OoHBucODnkcgajbB+Wd uBPA== 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=JsbjkAc9nKBUwo2BV+lJuV+9wDAaqVtP+AYnXddE06M=; b=kDUvgealwQgIiYq0Q3HmSbjjRL05ZBfiH4SfLQaLrNz8DMwM7TlayEKKjaaG19WRBM uOyX2uVMzdOTfL0vaGJPHuRbQ22nVVr3dZaP/w0bITzaDdWLIlvgtWXh490bBY3P98Hh CrGyspwxh5+O+lpfDBiBbUG2cPehMmIjWxb1+RAzd4OO3ursP1HBdtNDIK014B0Fse6J Qc0kw3Or0H7QGiWbPr/Zn9wyAn7qD7g3OpZCCOxJOtJHvUb2I0bgJ28TfGjYV362ioQG Q9b+qcTUQukmWCiJ1Xtqg5pIvcgyrTWRsHc0XakLQixlahZMCwwGZhDl6r3DOH+qRTLZ g/pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iDTh499n; 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 c14-20020aa7d60e000000b004405538725asi2695561edr.242.2022.08.19.05.01.40; Fri, 19 Aug 2022 05:02:06 -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=iDTh499n; 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 S1348574AbiHSLmo (ORCPT + 99 others); Fri, 19 Aug 2022 07:42:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348553AbiHSLmm (ORCPT ); Fri, 19 Aug 2022 07:42:42 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53FEAFF8DA; Fri, 19 Aug 2022 04:42:40 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-3246910dac3so113564467b3.12; Fri, 19 Aug 2022 04:42:40 -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; bh=JsbjkAc9nKBUwo2BV+lJuV+9wDAaqVtP+AYnXddE06M=; b=iDTh499ntFuBhmhm7+PjOS+kN6/En/kCc/a8vA9tl2w1O8cLjE/Ir/vKAbzKCX8Or8 jpBlUTLJMWCEtu9bqL4nJsIEUdcZlmXlHj28PE1T5Smwz/+PEyhw5wOmR+kLaM0dyp+W 4mdXmFzMYFGg7GZbHh/eTn1fkvR1nGjW54Cmm/gTZpn0cxmmFZiVi2Czj9xL/AwAWTok d3V84hpqoxNbYkA1fWOJjcObObcoKJ9N0JLDLBPzHzosukWEM/iAjGHZ79P+1AYS7uRl kkRhHe0WScPj/Yn/mXzBUrdMm4u57g0Q12rYS4n47Uvg+Iv7EY6MWYLWeRxnzsUdEvt6 XzAQ== 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; bh=JsbjkAc9nKBUwo2BV+lJuV+9wDAaqVtP+AYnXddE06M=; b=2rtZQkGqUNvPPnTV829lQiPesHgGGQxNvGTWCp1nDk8YZan91+E4/MPHlct5lGYPmo LMwQtW4fQ2/nyC0MWEwvejr1lOvRRFw9yYvJTrcVCPQ3f8fInH49mOm404WnLTjPApr4 yK68tyPhE37fjWd6RJENLKwh1aqWNvQkdgNJlPeiNUyjPge5UXqjMAdm55j/hw/Svy9B 8P532ej1om1LV6glADHlY8pi5D7fRnDSMjV6b8XCBROx+q25e8NDfXbjBPfYYcnZ8DbO /dMX+yvMJjDg4QZY3k1jYGyW050fQ9f9IsQNhHutb+U5+X02hmm3BW6a40voGwFinpMV ot+g== X-Gm-Message-State: ACgBeo1kQ2dMAAsiXR5KnVu/yfyoA9KFTCuQ+HmQ2t2GnCLHLV8XJpHY wxsf0xGVE+4OGsW7sKh6ICaI0xtVuApYF2MHWMI= X-Received: by 2002:a25:4689:0:b0:671:6d4f:c974 with SMTP id t131-20020a254689000000b006716d4fc974mr7342816yba.354.1660909359543; Fri, 19 Aug 2022 04:42:39 -0700 (PDT) MIME-Version: 1.0 References: <20220815151451.23293-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220815151451.23293-6-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Fri, 19 Aug 2022 12:42:12 +0100 Message-ID: Subject: Re: [PATCH v2 5/8] riscv: dts: renesas: Add initial devicetree for Renesas RZ/Five SoC To: Geert Uytterhoeven Cc: Lad Prabhakar , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Geert Uytterhoeven , Conor Dooley , Anup Patel , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-riscv , Linux Kernel Mailing List , Biju Das 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,T_SCC_BODY_TEXT_LINE 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 Geert, On Fri, Aug 19, 2022 at 9:05 AM Geert Uytterhoeven wrote: > > Hi Prabhalar, > > On Mon, Aug 15, 2022 at 5:17 PM Lad Prabhakar > wrote: > > Add initial device tree for Renesas RZ/Five RISC-V CPU Core (AX45MP > > Single). > > > > Below is the list of IP blocks added in the initial SoC DTSI which can be > > used to boot via initramfs on RZ/Five SMARC EVK: > > - AX45MP CPU > > - CPG > > - PINCTRL > > - PLIC > > - SCIF0 > > - SYSC > > > > Signed-off-by: Lad Prabhakar > > Thanks for your patch! > > > --- /dev/null > > +++ b/arch/riscv/boot/dts/renesas/r9a07g043.dtsi > > @@ -0,0 +1,121 @@ > > +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +/* > > + * Device Tree Source for the RZ/Five SoC > > My first thought was: > > This should be arch/riscv/boot/dts/renesas/r9a07g043f01.dtsi, > including the common r9a07g043.dtsi, shared by > arch/arm64/boot/dts/renesas/r9a07g043u11.dtsi. > > Then I realized this is harder than it sounds, due: > Indeed, my initial thought after the comments from Conor was we could share the SoC dtsi, but that would be to messey due to PLIC. Cheers, Prabhakar > > + soc: soc { > > + compatible = "simple-bus"; > > + interrupt-parent = <&plic>; > > vs. "interrupt-parent = <&plic>;" for r9a07g043u11, but mostly > due to > > > + #address-cells = <2>; > > + #size-cells = <2>; > > + ranges; > > + > > + scif0: serial@1004b800 { > > + compatible = "renesas,scif-r9a07g043", > > + "renesas,scif-r9a07g044"; > > + reg = <0 0x1004b800 0 0x400>; > > + interrupts = <412 IRQ_TYPE_LEVEL_HIGH>, > > + <414 IRQ_TYPE_LEVEL_HIGH>, > > + <415 IRQ_TYPE_LEVEL_HIGH>, > > + <413 IRQ_TYPE_LEVEL_HIGH>, > > + <416 IRQ_TYPE_LEVEL_HIGH>, > > + <416 IRQ_TYPE_LEVEL_HIGH>; > > vs. "interrupts = ..." on > r9a07g043u11. > Interestingly, the actual hardware interrupt numbers are the same, > but the GIC DT bindings abstracts the offset of 32 by using a second > cell and GIC_SPI. Unfortunately this cannot be handled by some CPP > magic, as dtc does not support arithmetic operations yet. > > I expect this or similar issues to pop up everywhere, when more > RISCV-V SoCs will appear that share the non-CPU parts with ARM SoCs. > > Ignoring this issue, which we probably can solve only later: > Reviewed-by: Geert Uytterhoeven > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv