From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 23E11C433FE for ; Wed, 19 Oct 2022 19:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hDamLk+X4Jj2eD9/ZY/HWN0TFSYaQaKqafBRY/YKd0E=; b=twQbN6YceOCKDS 7tduob/MnFmqZQd3HSsu0nUjd+ThzWJEHMCpD4Os+KFnRZl3+cta8I3f7CY8xZaZg/q2QramZtEoP Oesn4g9TXtNOeiiK/6yoJ5cKfDO7R2Ws0Iv+7u9HXTTm1tx9uw5A2v2RVKS0priUQdxkkB+2n3xoh 66dg6PqbyZL1qX0+MouE+EVcmEZ3zWkvrTzrxSatLCwhWFM2bDy9WeuqvbdRszXhimPQVsBRDzb91 EdqfRyqzQro9sHbV2BAxB8qY7Zgj/ErU/BAwyoOG++Jt/1CeIb5h39sKolM32ZukXt9UUK18vREuR KqPzVmhtVE9yj9YTdINQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1olFCE-004xn0-C0; Wed, 19 Oct 2022 19:57:46 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1olFCB-004xmT-Vt; Wed, 19 Oct 2022 19:57:45 +0000 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 8C7D2619BD; Wed, 19 Oct 2022 19:57:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 089A6C433D6; Wed, 19 Oct 2022 19:57:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666209463; bh=K1Uoj3YzZfs/Ftg9PeyHIXDrwSa4k93XIbTWq2MoYcM=; h=Date:From:To:List-Id:Cc:Subject:References:In-Reply-To:From; b=TD+QAE6Pju/Bfz2UdEEvcyeKX4bhv7n0WNCUSdBl5iFFxYUs7IG0Ll7o2DBGpo4ZO lUkGPgo2yIaX5ljNZKWcdDFc1AVXmDeNzG+Nqhx3L2DV8EaBcDuu1LPjpnLbrhRKTT L8Nd5NVt7J91D5C4re8qsJntKvv2qrdrqe6ILHGbEzrInKKFIl66XAjr5q3yah0tvS gYkPs1mhED37teF+cVKNqPtKpVKIXwK6XSH07wzN0BS6/BFJCxs5pOljeBiI+kIXdU 1DbcNiWPtNjjZBlg/Pv1UnHW+9D8CnT6fI6NfF65Ax3VTnkNLihkrDi3eDJFEDNPRZ jfw8t/TRt/QCw== Date: Wed, 19 Oct 2022 20:57:36 +0100 From: Conor Dooley To: Prabhakar , arnd@arndb.de Cc: Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Olof Johansson , soc@kernel.org, linux-arm-kernel@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Conor Dooley , Samuel Holland , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Lad Prabhakar Subject: Re: [RFC RESEND PATCH 0/2] RZ/G2UL separate out SoC specific parts Message-ID: References: <20221017091201.199457-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221017091201.199457-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221019_125744_116715_05B8A407 X-CRM114-Status: GOOD ( 22.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Oct 17, 2022 at 10:11:59AM +0100, Prabhakar wrote: > From: Lad Prabhakar > > Hi All, > > This patch series aims to split up the RZ/G2UL SoC DTSI into common parts > so that this can be shared with the RZ/Five SoC. > > Implementation is based on the discussion [0] where I have used option#2. > > The Renesas RZ/G2UL (ARM64) and RZ/Five (RISC-V) have almost the same > identical blocks to avoid duplication a base SoC dtsi (r9a07g043.dtsi) is > created which will be used by the RZ/G2UL (r9a07g043u.dtsi) and RZ/Five > (r9a07g043F.dtsi) > > Sending this as an RFC to get some feedback. > > r9a07g043f.dtsi will look something like below: > > #include > > #define SOC_PERIPHERAL_IRQ_NUMBER(nr) (nr + 32) > #define SOC_PERIPHERAL_IRQ(nr, na) SOC_PERIPHERAL_IRQ_NUMBER(nr) na It appears there's little interest in this conversation from a DT or an arch/soc maintainer PoV so far. I for one think this stuff is grand & better than duplicating the dts between archs. I know Geert likes the macros in theory, but I wonder what he thinks of the implemenation? Arnd, do you perhaps have an opinion? Thanks, Conor. > > #include > > / { > ... > ... > }; > > Although patch#2 can be merged into patch#1 just wanted to keep them separated > for easier review. > > RFC-> RESEND RFC > * Patches rebased on [1] > > RFC: [2] > > [0] https://lore.kernel.org/linux-arm-kernel/Yyt8s5+pyoysVNeC@spud/T/ > [1] https://patchwork.kernel.org/project/linux-renesas-soc/cover/20221009230044.10961-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ > [2] https://patchwork.kernel.org/project/linux-renesas-soc/cover/20220929172356.301342-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ > > Cheers, > Prabhakar > > Lad Prabhakar (2): > arm64: dts: renesas: r9a07g043: Introduce SOC_PERIPHERAL_IRQ() macro > to specify interrupt property > arm64: dts: renesas: r9a07g043: Split out RZ/G2UL SoC specific parts > > arch/arm64/boot/dts/renesas/r9a07g043.dtsi | 347 ++++++++---------- > arch/arm64/boot/dts/renesas/r9a07g043u.dtsi | 72 ++++ > .../boot/dts/renesas/r9a07g043u11-smarc.dts | 2 +- > 3 files changed, 220 insertions(+), 201 deletions(-) > create mode 100644 arch/arm64/boot/dts/renesas/r9a07g043u.dtsi > > -- > 2.25.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel