Skip to content

Commit 11659e4

Browse files
committed
openrisc: dts: Split simple smp dts to dts and dtsi
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@gmail.com>
1 parent eea1a28 commit 11659e4

3 files changed

Lines changed: 31 additions & 7 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
3+
/dts-v1/;
4+
5+
#include "simple-smp.dtsi"
6+
7+
/ {
8+
model = "Simple SMP Board";
9+
};
10+
11+
&cpu0 {
12+
clock-frequency = <20000000>;
13+
};
14+
15+
&cpu1 {
16+
clock-frequency = <20000000>;
17+
};
18+
19+
&enet0 {
20+
status = "okay";
21+
};
22+
23+
&serial0 {
24+
clock-frequency = <20000000>;
25+
};
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/dts-v1/;
21
/ {
32
compatible = "opencores,or1ksim";
43
#address-cells = <1>;
@@ -22,15 +21,15 @@
2221
cpus {
2322
#address-cells = <1>;
2423
#size-cells = <0>;
25-
cpu@0 {
24+
25+
cpu0: cpu@0 {
2626
compatible = "opencores,or1200-rtlsvn481";
2727
reg = <0>;
28-
clock-frequency = <20000000>;
2928
};
30-
cpu@1 {
29+
30+
cpu1: cpu@1 {
3131
compatible = "opencores,or1200-rtlsvn481";
3232
reg = <1>;
33-
clock-frequency = <20000000>;
3433
};
3534
};
3635

@@ -57,13 +56,13 @@
5756
compatible = "opencores,uart16550-rtlsvn105", "ns16550a";
5857
reg = <0x90000000 0x100>;
5958
interrupts = <2>;
60-
clock-frequency = <20000000>;
6159
};
6260

6361
enet0: ethoc@92000000 {
6462
compatible = "opencores,ethoc";
6563
reg = <0x92000000 0x800>;
6664
interrupts = <4>;
6765
big-endian;
66+
status = "disabled";
6867
};
6968
};

arch/openrisc/configs/simple_smp_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CONFIG_SLUB=y
2020
CONFIG_SLUB_TINY=y
2121
CONFIG_MODULES=y
2222
# CONFIG_BLOCK is not set
23-
CONFIG_BUILTIN_DTB_NAME="simple_smp"
23+
CONFIG_BUILTIN_DTB_NAME="simple-smp"
2424
CONFIG_SMP=y
2525
CONFIG_HZ_100=y
2626
CONFIG_OPENRISC_HAVE_SHADOW_GPRS=y

0 commit comments

Comments
 (0)