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 2C425CAC598 for ; Tue, 16 Sep 2025 10:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=qJMnFuQLWAt/wCKFl1W2XSEOrT4ORNYACWB6EQ01n1k=; b=KyA0tOgcWav1M6vin6wt0xF4Tn cDNGehvxGNf1unqvkToFyoWx3+3UE052Wddn4VrnmSUsga8GWawUGZSiLTMGGnXZrSdBk4JCexvEx 7k+fhr1RdsojghC1azyeQDilDVk+ittdbgCbZX3W6zB2YtadS84VdhzKUUuZzKxBfRXWXUcTSbjHG 8BnQro4xoEwUH+DbdUz3BRaYOkV79z5Jx4mEs9qx4kIyulz244eg4gHyaIECWQqNIAJAUD9kaVlg0 HAeLy06GJQemP/D0Lxzh1UyfcCCMoNB5FEfnEpd94CF5MrSyKyR3Qn68J12VVIWG5I56c2z6gRLEQ XnVtHwiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyTBc-00000007Zbp-2uZG; Tue, 16 Sep 2025 10:45:24 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyTBb-00000007Zbg-1a5V for linux-arm-kernel@lists.infradead.org; Tue, 16 Sep 2025 10:45:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id C285A600AE; Tue, 16 Sep 2025 10:45:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66A44C4CEEB; Tue, 16 Sep 2025 10:45:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758019522; bh=DoMHpv5hxCJ6SlceuYF08FYrofkwsQdeayNjraFmhEk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gBAakvcCjgq2oS3wsInghchTT5cKoQBzEpqDxdVrrJv3e+T8RhSL4J2TBAd0OxPT7 3OiXl013/Q0H535qAqag0FEXrMVd755U/yZlQpP4zABcyMxLli2mewsbt3usQpcZ+8 n0VJztfRgxVnxMfZyi6WmggeeX5PjRYrl6iF63/CLunfzKUN4IB0QO1QGHGc091FqW 3+gYhafBzZwtaoZOvjUfnt4TCDk3ZWYEPv/jzgFdR4XoOrT0jn+9BGXyA3IwfFkY5F rIA70kVHxfcLZhbqVokDi6DjynHgMBC2F5yU6quyS/ODIVJ0W8s1m8g9aV5lCt0Hrx ZdwZRGIp7nUnQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1uyTBX-00000006gRs-2dkS; Tue, 16 Sep 2025 10:45:19 +0000 Date: Tue, 16 Sep 2025 11:45:15 +0100 Message-ID: <86v7li1xs4.wl-maz@kernel.org> From: Marc Zyngier To: Kuninori Morimoto Cc: "Liang, Kan" , Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Catalin Marinas , Conor Dooley , Douglas Anderson , Geert Uytterhoeven , Ian Rogers , Ingo Molnar , James Clark , Jiri Olsa , John Garry , Krzysztof Kozlowski , Leo Yan , Lorenzo Pieralisi , Mark Rutland , Mike Leach , Namhyung Kim , Oliver Upton , Peter Zijlstra , Rob Herring , Shameer Kolothum , Will Deacon , devicetree@vger.kernel.org, linux-arm-kernel@lists. infradead.org, linux-perf-users@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v3 5/6] arm64: dts: renesas: Add R8A78000 X5H DTs In-Reply-To: <87ms6vi0js.wl-kuninori.morimoto.gx@renesas.com> References: <87tt13i0lh.wl-kuninori.morimoto.gx@renesas.com> <87ms6vi0js.wl-kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: kuninori.morimoto.gx@renesas.com, kan.liang@linux.intel.com, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, acme@kernel.org, catalin.marinas@arm.com, conor+dt@kernel.org, dianders@chromium.org, geert+renesas@glider.be, irogers@google.com, mingo@redhat.com, james.clark@linaro.org, jolsa@kernel.org, john.g.garry@oracle.com, krzk+dt@kernel.org, leo.yan@linux.dev, lpieralisi@kernel.org, mark.rutland@arm.com, mike.leach@linaro.org, namhyung@kernel.org, oliver.upton@linux.dev, peterz@infradead.org, robh@kernel.org, shameerali.kolothum.thodi@huawei.com, will@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-renesas-soc@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 16 Sep 2025 03:38:47 +0100, Kuninori Morimoto wrote: > > From: Hai Pham > > Add initial DT support for R8A78000 (R-Car X5H) SoC. > > [Kuninori: tidyup for upstreaming] > > Signed-off-by: Hai Pham > Signed-off-by: Vinh Nguyen > Signed-off-by: Minh Le > Signed-off-by: Huy Bui > Signed-off-by: Khanh Le > Signed-off-by: Phong Hoang > Signed-off-by: Kuninori Morimoto > --- > arch/arm64/boot/dts/renesas/r8a78000.dtsi | 756 ++++++++++++++++++++++ > 1 file changed, 756 insertions(+) > create mode 100644 arch/arm64/boot/dts/renesas/r8a78000.dtsi > > diff --git a/arch/arm64/boot/dts/renesas/r8a78000.dtsi b/arch/arm64/boot/dts/renesas/r8a78000.dtsi > new file mode 100644 > index 0000000000000..82e27ce39c127 > --- /dev/null > +++ b/arch/arm64/boot/dts/renesas/r8a78000.dtsi [...] > + soc: soc { > + compatible = "simple-bus"; > + interrupt-parent = <&gic>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + prr: chipid@189e0044 { > + compatible = "renesas,prr"; > + reg = <0 0x189e0044 0 4>; > + }; > + > + /* > + * The ARM GIC-720AE - View 1 > + * > + * see > + * r19uh0244ej0052-r-carx5h.pdf > + * - attachments: 002_R-CarX5H_Address_Map_r0p51.xlsx > + * - sheet [RT] > + * - line 619 Are these documents publicly available? If not, I don't think this helps much. > + */ > + gic: interrupt-controller@39000000 { > + compatible = "arm,gic-v3"; > + #interrupt-cells = <3>; > + #address-cells = <0>; > + interrupt-controller; > + reg = <0 0x39000000 0 0x20000>, // GICD > + <0 0x39080000 0 0x40000>; // GICR In v2, you indicated that your GIC was configured for GICv4.1, which implied 256kB frames for each redistributor. Here, you have either just enough space for 32 RDs for a GICv3, or 16 RDs for GICv4. So either this is wrong, and you're missing half of the RD space, or v2 was wrong. Which one is it? > + interrupts = ; No ITS? That seems... surprising. > + }; [...] > + timer { > + compatible = "arm,armv8-timer"; > + interrupts-extended = <&gic GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>, > + <&gic GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>, > + <&gic GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>, > + <&gic GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>, > + <&gic GIC_PPI 12 IRQ_TYPE_LEVEL_LOW>; > + interrupt-names = "sec-phys", "phys", "virt", "hyp-phys", > + "hyp-virt"; > + }; Why use interrupts-extended here? Everywhere else, you're using the basic interrupt specifier. Can't you move the interrupt-parent property to the top and simplify the timer (and everything else outside of the 'soc' node? Thanks, M. -- Without deviation from the norm, progress is not possible.