[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6wlgfvc3rkhv4s3ou67fjl6j4a26vocqck5727cg6muxlz2erj@kivndcjcqc7m>
Date: Tue, 29 Apr 2025 06:35:36 +0800
From: Inochi Amaoto <inochiama@...il.com>
To: Alexander Sverdlin <alexander.sverdlin@...il.com>,
sophgo@...ts.linux.dev, soc@...ts.linux.dev
Cc: Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Chen Wang <unicorn_wang@...look.com>, Inochi Amaoto <inochiama@...il.com>,
Paul Walmsley <paul.walmsley@...ive.com>, Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>, Alexandre Ghiti <alex@...ti.fr>,
Catalin Marinas <catalin.marinas@....com>, Will Deacon <will@...nel.org>, Arnd Bergmann <arnd@...db.de>,
Jisheng Zhang <jszhang@...nel.org>, Haylen Chu <heylenay@...look.com>,
Chao Wei <chao.wei@...hgo.com>, devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v5 1/7] riscv: dts: sophgo: cv18xx: Move RiscV-specific
part into SoCs' .dtsi files
On Sun, Mar 16, 2025 at 07:56:31PM +0100, Alexander Sverdlin wrote:
> Make the peripheral device tree re-usable on ARM64 platform by moving CPU
> core and interrupt controllers' parts into new cv18xx-cpu.dtsi and
> cv18xx-intc.dtsi.
>
> Add SOC_PERIPHERAL_IRQ() macro which explicitly maps peripheral nubering
> into "plic" interrupt-controller numbering.
>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@...il.com>
> ---
> Changelog:
> v5:
> v4:
> - cleanups dropped
> - cv18xx-cpu-intc.dtsi instead of cv18xx-cpu.dtsi+cv18xx-intc.dtsi
> v3:
> - &cpus node has been moved into cv18xx-cpu.dtsi, &plic and &clint nodes
> were moved into cv18xx-intc.dtsi to reduce code duplication;
> v2:
> - instead of carving out peripherals' part, carve out ARCH-specifics (CPU
> core, interrupt controllers) and spread them among 3 SoC .dtsi files which
> included cv18xx.dtsi;
> - define a label for the "soc" node and use it in the newly introduced DTs;
>
> arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 5 +
> arch/riscv/boot/dts/sophgo/cv1812h.dtsi | 5 +
> arch/riscv/boot/dts/sophgo/cv181x.dtsi | 2 +-
> .../boot/dts/sophgo/cv18xx-cpu-intc.dtsi | 54 +++++++++++
> arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 91 +++++--------------
> arch/riscv/boot/dts/sophgo/sg2002.dtsi | 5 +
> 6 files changed, 93 insertions(+), 69 deletions(-)
> create mode 100644 arch/riscv/boot/dts/sophgo/cv18xx-cpu-intc.dtsi
>
It is a hard time for now to do some change across the cv18xx
series, and it has become a mess. Due to the fact, I think it
is time to do some work like split some device (clk, pinctrl,
plic, intc) from cv18xx.dtsi to avoid override, and make room
for arm64 device.
Since this change contains some change similar to this patch.
Would you mind me to take content of this patch, and add you
as the a co-author?
Regards,
Inochi
Powered by blists - more mailing lists