summaryrefslogtreecommitdiff
path: root/dts/upstream/src/openrisc
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-04-20 09:31:12 -0600
committerTom Rini <[email protected]>2026-04-20 11:43:11 -0600
commit5d401bfbdf1da9eb34575b0b15e18757f2b38ca0 (patch)
treeef0be8a0a30c5d6b987f193bd6cd551428024725 /dts/upstream/src/openrisc
parente3405917a1806971d9e72a94186b299f05581e1a (diff)
parentb427decccfe983eda4f815ddcf5dcbe733cd04f6 (diff)
Subtree merge tag 'v7.0-dts' of dts repo [1] into dts/upstream
[1] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git - Remove netc_timerX nodes from arch/arm/dts/imx943-u-boot.dtsi as they are now upstream - Move dts/upstream/include/dt-bindings/reset/bcm6318-reset.h to include/dt-bindings/reset/bcm6318-reset.h as upstream has removed this file as unused (but we use it). Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'dts/upstream/src/openrisc')
-rw-r--r--dts/upstream/src/openrisc/de0-nano-common.dtsi42
-rw-r--r--dts/upstream/src/openrisc/de0-nano-multicore.dts25
-rw-r--r--dts/upstream/src/openrisc/de0-nano.dts54
-rw-r--r--dts/upstream/src/openrisc/simple-smp.dts25
-rw-r--r--dts/upstream/src/openrisc/simple-smp.dtsi (renamed from dts/upstream/src/openrisc/simple_smp.dts)11
5 files changed, 151 insertions, 6 deletions
diff --git a/dts/upstream/src/openrisc/de0-nano-common.dtsi b/dts/upstream/src/openrisc/de0-nano-common.dtsi
new file mode 100644
index 00000000000..02e329e28e3
--- /dev/null
+++ b/dts/upstream/src/openrisc/de0-nano-common.dtsi
@@ -0,0 +1,42 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
+/ {
+ leds0: leds {
+ compatible = "gpio-leds";
+
+ led-heartbeat {
+ gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_HEARTBEAT;
+ linux,default-trigger = "heartbeat";
+ label = "heartbeat";
+ };
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x00000000 0x02000000>;
+ };
+
+ /* 8 Green LEDs */
+ gpio0: gpio@91000000 {
+ compatible = "opencores,gpio";
+ reg = <0x91000000 0x1>, <0x91000001 0x1>;
+ reg-names = "dat", "dirout";
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+
+ /* 4 DIP Switches */
+ gpio1: gpio@92000000 {
+ compatible = "opencores,gpio";
+ reg = <0x92000000 0x1>, <0x92000001 0x1>;
+ reg-names = "dat", "dirout";
+ gpio-controller;
+ #gpio-cells = <2>;
+ status = "disabled";
+ };
+};
diff --git a/dts/upstream/src/openrisc/de0-nano-multicore.dts b/dts/upstream/src/openrisc/de0-nano-multicore.dts
new file mode 100644
index 00000000000..b6cf286afaa
--- /dev/null
+++ b/dts/upstream/src/openrisc/de0-nano-multicore.dts
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
+/dts-v1/;
+
+#include "simple-smp.dtsi"
+#include "de0-nano-common.dtsi"
+
+/ {
+ model = "Terasic DE0 Nano - Multicore";
+};
+
+&cpu0 {
+ clock-frequency = <50000000>;
+};
+
+&cpu1 {
+ clock-frequency = <50000000>;
+};
+
+&serial0 {
+ clock-frequency = <50000000>;
+};
diff --git a/dts/upstream/src/openrisc/de0-nano.dts b/dts/upstream/src/openrisc/de0-nano.dts
new file mode 100644
index 00000000000..b5b854e7e8b
--- /dev/null
+++ b/dts/upstream/src/openrisc/de0-nano.dts
@@ -0,0 +1,54 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/dts-v1/;
+
+#include "de0-nano-common.dtsi"
+
+/ {
+ model = "Terasic DE0 Nano";
+ compatible = "opencores,or1ksim";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ interrupt-parent = <&pic>;
+
+ aliases {
+ uart0 = &serial0;
+ };
+
+ chosen {
+ stdout-path = "uart0:115200";
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu@0 {
+ compatible = "opencores,or1200-rtlsvn481";
+ reg = <0>;
+ clock-frequency = <50000000>;
+ };
+ };
+
+ /*
+ * OR1K PIC is built into CPU and accessed via special purpose
+ * registers. It is not addressable and, hence, has no 'reg'
+ * property.
+ */
+ pic: pic {
+ compatible = "opencores,or1k-pic";
+ #interrupt-cells = <1>;
+ interrupt-controller;
+ };
+
+ serial0: serial@90000000 {
+ compatible = "opencores,uart16550-rtlsvn105", "ns16550a";
+ reg = <0x90000000 0x100>;
+ interrupts = <2>;
+ clock-frequency = <50000000>;
+ };
+};
+
+&gpio1 {
+ status = "okay";
+};
diff --git a/dts/upstream/src/openrisc/simple-smp.dts b/dts/upstream/src/openrisc/simple-smp.dts
new file mode 100644
index 00000000000..01cf219e6aa
--- /dev/null
+++ b/dts/upstream/src/openrisc/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>;
+};
+
+&enet0 {
+ status = "okay";
+};
+
+&serial0 {
+ clock-frequency = <20000000>;
+};
diff --git a/dts/upstream/src/openrisc/simple_smp.dts b/dts/upstream/src/openrisc/simple-smp.dtsi
index 71af0e117bf..42d6eda33b7 100644
--- a/dts/upstream/src/openrisc/simple_smp.dts
+++ b/dts/upstream/src/openrisc/simple-smp.dtsi
@@ -1,4 +1,3 @@
-/dts-v1/;
/ {
compatible = "opencores,or1ksim";
#address-cells = <1>;
@@ -22,15 +21,15 @@
cpus {
#address-cells = <1>;
#size-cells = <0>;
- cpu@0 {
+
+ cpu0: cpu@0 {
compatible = "opencores,or1200-rtlsvn481";
reg = <0>;
- clock-frequency = <20000000>;
};
- cpu@1 {
+
+ cpu1: cpu@1 {
compatible = "opencores,or1200-rtlsvn481";
reg = <1>;
- clock-frequency = <20000000>;
};
};
@@ -57,7 +56,6 @@
compatible = "opencores,uart16550-rtlsvn105", "ns16550a";
reg = <0x90000000 0x100>;
interrupts = <2>;
- clock-frequency = <20000000>;
};
enet0: ethoc@92000000 {
@@ -65,5 +63,6 @@
reg = <0x92000000 0x800>;
interrupts = <4>;
big-endian;
+ status = "disabled";
};
};