From nobody Sun Feb 8 05:55:02 2026 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 C82A2342C92 for ; Wed, 17 Dec 2025 08:09:14 +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=1765958956; cv=none; b=Cdp3o4l4e8ziicmDkkcZesm9WnMdjf3ND8udY2DAf/hWhyhLQsWXhmiD7gpiind5xmAYGyQRvI8FtjsIjZrIhm54q90T1o05pl6xReY6LczRmYRsEmYorqqlPqwuIOd1n/JgU7cFJASa25GXKe4euLdvKw96QCqMW3SCPEMyGWw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765958956; c=relaxed/simple; bh=xPcg96DcvhxTMAkfp4RAyJaORSxOAQYQ8H8AiXKiTVY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UHajccXOrlK83VetBK7gLY7E9nN++H0Vzvf5E/Mkw6H8B67Rs2tWn2omXpgC2WiGxoVMwwtbEvu4aDS4UairjQKnwA/ILZ/WtrCH03/eAOy+ZHP1yPtarhOSw1GO+NQUKDui+cjzP0kEnEbPHsAWam6pesXbVMDs0Ra0kJRNr4k= 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=fxhOIVX2; 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="fxhOIVX2" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4777771ed1aso41307905e9.2 for ; Wed, 17 Dec 2025 00:09:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765958952; x=1766563752; 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=0A0KKwP3NdhXeaIpiIMiycb1Ngs8zVhebvsR8yBVwL4=; b=fxhOIVX2NIsitPY2ERUx1jWYAeyq760mF2dMpK/eHS0Mj2qZGlDiz4MqDdNpr6Km77 AyrOaI6COAU4FhjJUUvAsr1y64zUwbpUHUW8FI/I+zovFqigwwzimNGSvnDEQ4a03auQ YCzJ1iVtfVCLIFZXptx/kYjC6IEQZLRPDEpku8B/mAeLAnFtc+xZwim4nqanvqHePQnd mocyX66O+lMpba4ePXccsun1HLuWS4bhO429/fevn4rSwH4yUAIltBr/QnIc1XIKwUDR YfFCEztimcqpUw7Kq7qq96fZUQEHKdhlTVDPp9jnYqnwGBTqwyd8gGPEyZ7YsFo+Fnte G8aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765958952; x=1766563752; 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=0A0KKwP3NdhXeaIpiIMiycb1Ngs8zVhebvsR8yBVwL4=; b=wLXktZsW1CjahCQf2ZkBfmVDGXkzew36miZGfB3b+R5AAuKHcOccX0Bmhnx3vU3HH3 vekAdf4ssGQXdOCwYrZivh8xOT3zn1DI9TxEvRm4U31KZRawALpxl2dcegArgn0ysQCV sFIrnqPGATLi4+y1wMAZEBFpkOmAickcwLEJv73xuonpzhuy4fGJJnw55RVSE7/eduH0 DyF7osVNcBVV3VbZuoEU5pJ2yJe+hoocKj10/KDM/UqlTOX67zdItrGTfSMGzWCdDg+q hLttvyjd+VcCeA7pthPnTVcqGUMg21ro5or1DE82MJyM5HdStkWOoGuyfaImx7RKhj4Z VA1Q== X-Gm-Message-State: AOJu0YzImCTlip2evJ+W+spSKP4hTpYtWGrv/rXXLvnkCP6s1AIr4wJx JzdbQMPVraZcpMGgRXqUaKTBoHIhVzoQDkaG9dnJgNJHItNP+1m6+yUFRTIrXQ== X-Gm-Gg: AY/fxX6i2T4HepJwKNQ31pwGJ7ckxgIhIed4CrQRUljyKx6YuG8BWeu3TEsXaNe8LL4 QQsH6FlTpPXwNMcAW7Ba6hMjf+9wtlJGZ+pU+fgSIaurVYvf2o8DmMmVrLKyot2Ipy1scnIICiS Wfp1a54j05InGovSK3RshbdORLhqQykFRDxHaLE/rmh8TVL6vybwzoeiG8YjTn9bLtwyDuyUcCI IX73dmixdbjH+/Ai+eGVx6ZDjyDPAFpjFSAr2zJnGm4CNa+8J7+3SsfpM0W9wjjy76ZQCDZNTbR 7W5SBEmwQz3PN9xBX5CfUpSnR2schTuulC/cSH4l0aPoSVv+/PWczWUQadvEcG8iXLRf8aW5oKc xPrQBUh4fSMDOWlqSwbamqHO807PJzfVUtmMj0qwo1A37bNYQ7AtyhBRjAGpVqqBUZIur1Ovc0y 5pDaaCQwCpGDWwIGNnUhLeW4OJjeoLG2nzIxQ6spxtKrjmKKEqrzH1S6RI6M1TmSpL X-Google-Smtp-Source: AGHT+IFOqj0HGgW3GOvgzFqprTgC1+JPT38q8uGINy4v0xBZPx7Kjx5cWMJSdoLYa8rFvU8ni4vxNQ== X-Received: by 2002:a05:600c:46cb:b0:47a:810f:1d06 with SMTP id 5b1f17b1804b1-47a8f89cb47mr183074525e9.4.1765958952428; Wed, 17 Dec 2025 00:09:12 -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-47bdc1de9cesm26318945e9.8.2025.12.17.00.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Dec 2025 00:09:10 -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 v2 4/5] openrisc: dts: Split simple smp dts to dts and dtsi Date: Wed, 17 Dec 2025 08:08:30 +0000 Message-ID: <20251217080843.70621-5-shorne@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251217080843.70621-1-shorne@gmail.com> References: <20251217080843.70621-1-shorne@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- Since v1: - Removed clock-frequency 0 in dtsi file. - Fix DTB name in defconfig file arch/openrisc/boot/dts/simple-smp.dts | 25 +++++++++++++++++++ .../dts/{simple_smp.dts =3D> simple-smp.dtsi} | 9 +++---- arch/openrisc/configs/simple_smp_defconfig | 2 +- 3 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 arch/openrisc/boot/dts/simple-smp.dts rename arch/openrisc/boot/dts/{simple_smp.dts =3D> simple-smp.dtsi} (90%) diff --git a/arch/openrisc/boot/dts/simple-smp.dts b/arch/openrisc/boot/dts= /simple-smp.dts new file mode 100644 index 000000000000..26f6a9236b30 --- /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 =3D "Simple SMP Board"; +}; + +&cpu0 { + clock-frequency =3D <20000000>; +}; + +&cpu1 { + clock-frequency =3D <20000000>; +}; + +&serial0 { + clock-frequency =3D <20000000>; +}; + +&enet0 { + status =3D "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 =3D "opencores,or1ksim"; #address-cells =3D <1>; @@ -22,15 +21,13 @@ memory@0 { cpus { #address-cells =3D <1>; #size-cells =3D <0>; - cpu@0 { + cpu0: cpu@0 { compatible =3D "opencores,or1200-rtlsvn481"; reg =3D <0>; - clock-frequency =3D <20000000>; }; - cpu@1 { + cpu1: cpu@1 { compatible =3D "opencores,or1200-rtlsvn481"; reg =3D <1>; - clock-frequency =3D <20000000>; }; }; =20 @@ -57,7 +54,6 @@ serial0: serial@90000000 { compatible =3D "opencores,uart16550-rtlsvn105", "ns16550a"; reg =3D <0x90000000 0x100>; interrupts =3D <2>; - clock-frequency =3D <20000000>; }; =20 enet0: ethoc@92000000 { @@ -65,5 +61,6 @@ enet0: ethoc@92000000 { reg =3D <0x92000000 0x800>; interrupts =3D <4>; big-endian; + status =3D "disabled"; }; }; diff --git a/arch/openrisc/configs/simple_smp_defconfig b/arch/openrisc/con= figs/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=3Dy CONFIG_SLUB_TINY=3Dy CONFIG_MODULES=3Dy # CONFIG_BLOCK is not set -CONFIG_BUILTIN_DTB_NAME=3D"simple_smp" +CONFIG_BUILTIN_DTB_NAME=3D"simple-smp" CONFIG_SMP=3Dy CONFIG_HZ_100=3Dy CONFIG_OPENRISC_HAVE_SHADOW_GPRS=3Dy --=20 2.51.0