From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E344430C63E for ; Sun, 14 Dec 2025 18:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765735351; cv=none; b=sqFvCCnM4sCZL4FqLVn5CH42C46qEXy5CxkTNJLkdAVgt1CHOgrs9kacZQLZL1l+119MTozlrIG5sK51B/Fz72J0tuoMlOBr0X6kIMokCeyWleAEhH2bxh73T/mGJSydON995gOSgxgiMAZydxcxglWxWpXZDw4Upck36XWUjYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765735351; c=relaxed/simple; bh=A4zcjT/69SXZLgvAq0KrqL4ZadV95axUp6uaNe4dZv8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SYDriC9obu55HmUNC8IgmRHStLghf6vDLRsfmzYdYN8yb6lgDCF9JWeIjkcHvu0N59wDS07GXpT6pSAQ6x5NrZJCV5EQyYXrSqy71O/jygH39Na47oX5sEZWVZf5cmGPYSbY2yWjXJu05dKhySuUwuTIMIzWDSvm2t6vTmMFYW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FmAnn5qE; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FmAnn5qE" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4779cb0a33fso33848985e9.0 for ; Sun, 14 Dec 2025 10:02:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765735347; x=1766340147; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hvPXudzNsmpvP56Jm8zeFiIl/NyHEyodz+isUDYVcAo=; b=FmAnn5qEm+hIm+4z+Sw+T3WkGqBugyp9kX7AkHAggmbiU+bcsDThfPD4IjH2ijrRq7 /FAD0H7dvN/9T6UJN5AcO9Z1zZ/Fc49eJRzULmX5cMjq6bh2jP/z+tMP7b9jwBT6eDEK Hgg7pTGmbSC56ReCXo8fln1tsd8C7flkBqttHaETDfJ4/JDO4ykPkd48jUDJ6C/Sa23W xOe5LqotIjd7h6b39L6cGOLmkge8HfJKfeJOl0rvq1kiRtwxkcobWomR7UzO7sYs3WYo aJPMYwCL2zxpoC8LSkwDSlHE3xzMZRrC0ZxW6/pWZpMPILa2SN7v/dUeX0AZBBTWyMi4 O3YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765735347; x=1766340147; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hvPXudzNsmpvP56Jm8zeFiIl/NyHEyodz+isUDYVcAo=; b=Ak/Dk9eLBUaFgO3o4HCNPLh34CeC80WoXMIrZMQSt4ELmcd+iKpfHlGm+miJc/dsdl gxGpYN7OsxhDERdtaogkwCbqR2lZ7EaIy2rWvBRHckWyv/FzsizvD0Uk0wGPQlVMhjtj dVZT/EOabwgvaCNgKqWVr8xa7Lh+so/fN8pbxxk8PuynEpwIl4KpDeoIlc2Adva3Jx7M 3ewybdIabsi1vTTYFilFEtzMhEckaFl7mSoa2DrTGs1YJyn/1wJt2JKmcHXHT7AS20lz ZZ/43KtVNhvEo5D1rbZyz0L7Z+U4CKV2W/FArsiSB5Nd6VuLq1+scsZMI23OfH6XM8d3 kbkg== X-Gm-Message-State: AOJu0Yx7wSaT8RoEod8SXufM4YZRliPuzT7O++i8nb62YdFUUKv3gd2R 9INk0DZyf7Xgl2Ne61xgV+5qQ3GZY8st/kAmYi1C/pH9omxP3SpADmPB X-Gm-Gg: AY/fxX69fnuhK55TBbMawX7Gr8PegRuk6+3mEOYW9KfaiXfl20QGURF1zntLxEmrXCN K6r073WjtzIircVT7k07QNUaPi2+7IGH1UdSoGenfGYQ7NTH1e4ff1nblS1rPsMJOM5y43ILNAJ znjlIKipqn43oJiaO9TqNvhIceoN/kCYRtX13d8/RLS5lx1svhgIYmbJr1iz7aTX/Eq9iY6j0l4 6dYrU50a8PZma0LSNBUtGSYCwv4mnVR8bFB7uHRERR7vWble6QqZFtbc+SjqB3MBQeR85Sc/Gxn cOZGfYlpbOUDWH0f2Hf6nW/cgs86KKRXBlIAfLy3g7lX5qxY46rzMRQInRXdobtgSwoS8ZVEffW keDkJ/g9ZuLR+YQ55+HobIhq4tWs+L7I0aTiA2CEhcUNvUGczuMaMQO+uF7mo7v0xr7W01bm9Gm +XRWYkrsNGrT+CUuwIZ9BKIRyOJFcIYGBB718UjYC81MoGjP7Uaphg/4DElPEA0yntccEK2SW0u Lw= X-Google-Smtp-Source: AGHT+IHD7Z1Wx2mmpuCU2m9nigrQCKEntlNqBa1j+8x1gG1zsfRaB/g3OQSxp3F4VMcIGOv660YCoA== X-Received: by 2002:a05:600c:4e09:b0:477:9c73:267f with SMTP id 5b1f17b1804b1-47a8f914a25mr96578365e9.33.1765735346972; Sun, 14 Dec 2025 10:02:26 -0800 (PST) Received: from localhost (brnt-04-b2-v4wan-170138-cust2432.vm7.cable.virginm.net. [94.175.9.129]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47a8f6e58c1sm140532455e9.12.2025.12.14.10.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Dec 2025 10:02:25 -0800 (PST) From: Stafford Horne To: LKML Cc: Linux OpenRISC , Stafford Horne , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonas Bonn , Stefan Kristiansson , Masahiro Yamada , devicetree@vger.kernel.org Subject: [PATCH 4/5] openrisc: dts: Split simple smp dts to dts and dtsi Date: Sun, 14 Dec 2025 18:01:44 +0000 Message-ID: <20251214180158.3955285-5-shorne@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251214180158.3955285-1-shorne@gmail.com> References: <20251214180158.3955285-1-shorne@gmail.com> Precedence: bulk X-Mailing-List: linux-openrisc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- arch/openrisc/boot/dts/simple-smp.dts | 25 +++++++++++++++++++ .../dts/{simple_smp.dts => simple-smp.dtsi} | 12 ++++----- arch/openrisc/configs/simple_smp_defconfig | 2 +- 3 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 arch/openrisc/boot/dts/simple-smp.dts rename arch/openrisc/boot/dts/{simple_smp.dts => simple-smp.dtsi} (89%) diff --git a/arch/openrisc/boot/dts/simple-smp.dts b/arch/openrisc/boot/dts/simple-smp.dts new file mode 100644 index 000000000000..174c2613c419 --- /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 { + status = "okay"; +}; diff --git a/arch/openrisc/boot/dts/simple_smp.dts b/arch/openrisc/boot/dts/simple-smp.dtsi similarity index 89% rename from arch/openrisc/boot/dts/simple_smp.dts rename to arch/openrisc/boot/dts/simple-smp.dtsi index 71af0e117bfe..92770bb6fcf7 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,15 @@ memory@0 { cpus { #address-cells = <1>; #size-cells = <0>; - cpu@0 { + cpu0: cpu@0 { compatible = "opencores,or1200-rtlsvn481"; reg = <0>; - clock-frequency = <20000000>; + clock-frequency = <0>; }; - cpu@1 { + cpu1: cpu@1 { compatible = "opencores,or1200-rtlsvn481"; reg = <1>; - clock-frequency = <20000000>; + clock-frequency = <0>; }; }; @@ -57,7 +56,7 @@ serial0: serial@90000000 { compatible = "opencores,uart16550-rtlsvn105", "ns16550a"; reg = <0x90000000 0x100>; interrupts = <2>; - clock-frequency = <20000000>; + clock-frequency = <0>; }; enet0: ethoc@92000000 { @@ -65,5 +64,6 @@ enet0: ethoc@92000000 { reg = <0x92000000 0x800>; interrupts = <4>; big-endian; + status = "disabled"; }; }; diff --git a/arch/openrisc/configs/simple_smp_defconfig b/arch/openrisc/configs/simple_smp_defconfig index 6008e824d31c..db77c795225e 100644 --- a/arch/openrisc/configs/simple_smp_defconfig +++ b/arch/openrisc/configs/simple_smp_defconfig @@ -20,7 +20,7 @@ CONFIG_SLUB=y CONFIG_SLUB_TINY=y CONFIG_MODULES=y # CONFIG_BLOCK is not set -CONFIG_BUILTIN_DTB_NAME="simple_smp" +CONFIG_BUILTIN_DTB_NAME="simple-smp" CONFIG_SMP=y CONFIG_HZ_100=y CONFIG_OPENRISC_HAVE_SHADOW_GPRS=y -- 2.51.0