Skip to content

Commit e318f57

Browse files
committed
openrisc: dts: Add de0 nano multicore config and devicetree
Add a multicore configuration for the Terasic de0 nano FPGA development board. This SoC runs 2 OpenRISC CPUs at 50Mhz with 32MB ram, UART for console and GPIOs for LEDs. This FPGA SoC is based on the simple-smp reference board and brings in devices from the de0 nano common DTSI file. A default config is added that brings together the device tree and driver setup. Link: https://github.com/stffrdhrn/de0_nano-multicore Signed-off-by: Stafford Horne <shorne@gmail.com>
1 parent 11659e4 commit e318f57

2 files changed

Lines changed: 117 additions & 0 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+
#include <dt-bindings/gpio/gpio.h>
4+
#include <dt-bindings/leds/common.h>
5+
6+
/dts-v1/;
7+
8+
#include "simple-smp.dtsi"
9+
#include "de0-nano-common.dtsi"
10+
11+
/ {
12+
model = "Terasic DE0 Nano - Multicore";
13+
};
14+
15+
&cpu0 {
16+
clock-frequency = <50000000>;
17+
};
18+
19+
&cpu1 {
20+
clock-frequency = <50000000>;
21+
};
22+
23+
&serial0 {
24+
clock-frequency = <50000000>;
25+
};
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
CONFIG_LOCALVERSION="-de0nano-smp"
2+
CONFIG_SYSVIPC=y
3+
CONFIG_POSIX_MQUEUE=y
4+
CONFIG_NO_HZ=y
5+
CONFIG_LOG_BUF_SHIFT=14
6+
CONFIG_BLK_DEV_INITRD=y
7+
# CONFIG_RD_GZIP is not set
8+
# CONFIG_RD_BZIP2 is not set
9+
# CONFIG_RD_LZMA is not set
10+
# CONFIG_RD_XZ is not set
11+
# CONFIG_RD_LZO is not set
12+
# CONFIG_RD_LZ4 is not set
13+
CONFIG_EXPERT=y
14+
# CONFIG_EPOLL is not set
15+
# CONFIG_TIMERFD is not set
16+
# CONFIG_EVENTFD is not set
17+
# CONFIG_AIO is not set
18+
CONFIG_KALLSYMS_ALL=y
19+
CONFIG_DCACHE_WRITETHROUGH=y
20+
CONFIG_BUILTIN_DTB_NAME="de0-nano-multicore"
21+
CONFIG_OPENRISC_HAVE_INST_CMOV=y
22+
CONFIG_SMP=y
23+
CONFIG_HZ_100=y
24+
CONFIG_JUMP_LABEL=y
25+
# CONFIG_BLOCK is not set
26+
CONFIG_SLUB_TINY=y
27+
# CONFIG_COMPAT_BRK is not set
28+
# CONFIG_VM_EVENT_COUNTERS is not set
29+
CONFIG_NET=y
30+
CONFIG_PACKET=y
31+
CONFIG_UNIX=y
32+
CONFIG_UNIX_DIAG=y
33+
CONFIG_INET=y
34+
CONFIG_IP_MULTICAST=y
35+
CONFIG_TCP_CONG_ADVANCED=y
36+
# CONFIG_TCP_CONG_BIC is not set
37+
# CONFIG_TCP_CONG_CUBIC is not set
38+
# CONFIG_TCP_CONG_WESTWOOD is not set
39+
# CONFIG_TCP_CONG_HTCP is not set
40+
# CONFIG_IPV6 is not set
41+
# CONFIG_WIRELESS is not set
42+
CONFIG_DEVTMPFS=y
43+
CONFIG_DEVTMPFS_MOUNT=y
44+
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
45+
# CONFIG_FW_LOADER is not set
46+
CONFIG_NETDEVICES=y
47+
CONFIG_ETHOC=y
48+
CONFIG_MICREL_PHY=y
49+
# CONFIG_WLAN is not set
50+
# CONFIG_INPUT is not set
51+
# CONFIG_SERIO is not set
52+
# CONFIG_VT is not set
53+
# CONFIG_LEGACY_PTYS is not set
54+
CONFIG_SERIAL_8250=y
55+
CONFIG_SERIAL_8250_CONSOLE=y
56+
CONFIG_SERIAL_OF_PLATFORM=y
57+
# CONFIG_HW_RANDOM is not set
58+
CONFIG_GPIO_SYSFS=y
59+
# CONFIG_GPIO_CDEV_V1 is not set
60+
CONFIG_GPIO_GENERIC_PLATFORM=y
61+
# CONFIG_HWMON is not set
62+
# CONFIG_USB_SUPPORT is not set
63+
CONFIG_NEW_LEDS=y
64+
CONFIG_LEDS_CLASS=y
65+
CONFIG_LEDS_GPIO=y
66+
CONFIG_LEDS_TRIGGERS=y
67+
CONFIG_LEDS_TRIGGER_TIMER=y
68+
CONFIG_LEDS_TRIGGER_ONESHOT=y
69+
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
70+
CONFIG_LEDS_TRIGGER_CPU=y
71+
CONFIG_LEDS_TRIGGER_ACTIVITY=y
72+
CONFIG_LEDS_TRIGGER_GPIO=y
73+
CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
74+
CONFIG_LEDS_TRIGGER_TRANSIENT=y
75+
CONFIG_LEDS_TRIGGER_PANIC=y
76+
CONFIG_LEDS_TRIGGER_NETDEV=y
77+
CONFIG_LEDS_TRIGGER_PATTERN=y
78+
CONFIG_LEDS_TRIGGER_TTY=y
79+
# CONFIG_DNOTIFY is not set
80+
CONFIG_TMPFS=y
81+
CONFIG_NFS_FS=y
82+
CONFIG_XZ_DEC=y
83+
CONFIG_PRINTK_TIME=y
84+
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
85+
CONFIG_GDB_SCRIPTS=y
86+
CONFIG_VMLINUX_MAP=y
87+
CONFIG_HARDLOCKUP_DETECTOR=y
88+
CONFIG_WQ_WATCHDOG=y
89+
CONFIG_WQ_CPU_INTENSIVE_REPORT=y
90+
CONFIG_STACKTRACE=y
91+
CONFIG_RCU_CPU_STALL_CPUTIME=y
92+
# CONFIG_RCU_TRACE is not set

0 commit comments

Comments
 (0)