[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMuHMdXG2HQ8e+Hx1CUBus_VYKmx4fEeDRH+sDXmaQQANTraBg@mail.gmail.com>
Date: Thu, 18 Dec 2025 19:37:43 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Stafford Horne <shorne@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Linux OpenRISC <linux-openrisc@...r.kernel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Jonas Bonn <jonas@...thpole.se>,
Stefan Kristiansson <stefan.kristiansson@...nalahti.fi>, Masahiro Yamada <masahiroy@...nel.org>,
devicetree@...r.kernel.org
Subject: Re: [PATCH v2 4/5] openrisc: dts: Split simple smp dts to dts and dtsi
Hi Stafford,
On Wed, 17 Dec 2025 at 09:23, Stafford Horne <shorne@...il.com> wrote:
> Split out the common memory, CPU and PIC definitions of the simple SMP
> system to a DTSI file which we will later use for our De0 Nano multicore
> board device tree. We also take this opportunity to swich underscores
> to dashes as that seems to be the more common convention for DTS files.
>
> Signed-off-by: Stafford Horne <shorne@...il.com>
Thanks for your patch!
> --- /dev/null
> +++ b/arch/openrisc/boot/dts/simple-smp.dts
> @@ -0,0 +1,25 @@
> +// SPDX-License-Identifier: GPL-2.0
> +
> +/dts-v1/;
> +
> +#include "simple-smp.dtsi"
> +
> +/ {
> + model = "Simple SMP Board";
> +};
> +
> +&cpu0 {
> + clock-frequency = <20000000>;
> +};
> +
> +&cpu1 {
> + clock-frequency = <20000000>;
> +};
> +
> +&serial0 {
> + clock-frequency = <20000000>;
> +};
> +
> +&enet0 {
Alphabetical sort order?
> + status = "okay";
> +};
> diff --git a/arch/openrisc/boot/dts/simple_smp.dts b/arch/openrisc/boot/dts/simple-smp.dtsi
> similarity index 90%
> rename from arch/openrisc/boot/dts/simple_smp.dts
> rename to arch/openrisc/boot/dts/simple-smp.dtsi
> index 71af0e117bfe..2013fd3e7a18 100644
> --- a/arch/openrisc/boot/dts/simple_smp.dts
> +++ b/arch/openrisc/boot/dts/simple-smp.dtsi
> @@ -1,4 +1,3 @@
> -/dts-v1/;
> / {
> compatible = "opencores,or1ksim";
> #address-cells = <1>;
> @@ -22,15 +21,13 @@ memory@0 {
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
Missing blank line.
> - cpu@0 {
> + cpu0: cpu@0 {
> compatible = "opencores,or1200-rtlsvn481";
> reg = <0>;
> - clock-frequency = <20000000>;
> };
Likewise.
> - cpu@1 {
> + cpu1: cpu@1 {
> compatible = "opencores,or1200-rtlsvn481";
> reg = <1>;
> - clock-frequency = <20000000>;
> };
> };
>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-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
Powered by blists - more mailing lists