linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: Add a RISC-V SBI firmware node
@ 2017-11-20 19:50 Palmer Dabbelt
  2017-11-20 20:28 ` Jonathan Neuschäfer
  2017-11-20 21:45 ` Rob Herring
  0 siblings, 2 replies; 10+ messages in thread
From: Palmer Dabbelt @ 2017-11-20 19:50 UTC (permalink / raw)
  To: mark.rutland, robh+dt, devicetree
  Cc: patches, linux-kernel, Palmer Dabbelt, nathan=20Neusch=C3=A4fer?=

The RISC-V privileged ISA mandates the presence of an SBI, but there's
no reason not to put it in the device tree.  This would allow us to
possibly remove the SBI later.

CC: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
---
 .../devicetree/bindings/firmware/riscv.sbi.txt       | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/firmware/riscv.sbi.txt

diff --git a/Documentation/devicetree/bindings/firmware/riscv.sbi.txt b/Documentation/devicetree/bindings/firmware/riscv.sbi.txt
new file mode 100644
index 000000000000..42384d5d52cf
--- /dev/null
+++ b/Documentation/devicetree/bindings/firmware/riscv.sbi.txt
@@ -0,0 +1,20 @@
+RISC-V Supervisor Binary Interface (SBI)
+
+The RISC-V privileged ISA specification mandates the presence of a supervisor
+binary interface that performs some operations which might otherwise require
+particularly complicated instructions.  This interface includes
+inter-processor interrupts, TLB flushes, i-cache and TLB shootdowns, a
+console, and power management.
+
+Required properties:
+- compatible: must contain one of the following
+ * "riscv,sbi" for the SBI defined by the privileged specification of the
+   system.
+
+Example:
+
+firmware {
+	sbi {
+		compatible = "riscv,sbi";
+	};
+};
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-11-22  0:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-20 19:50 [PATCH] dt-bindings: Add a RISC-V SBI firmware node Palmer Dabbelt
2017-11-20 20:28 ` Jonathan Neuschäfer
2017-11-20 21:28   ` [patches] " Palmer Dabbelt
2017-11-21  1:08     ` Jonathan Neuschäfer
2017-11-21 17:41       ` Palmer Dabbelt
2017-11-21 10:43     ` Mark Rutland
2017-11-20 21:45 ` Rob Herring
2017-11-21 17:37   ` [patches] " Palmer Dabbelt
2017-11-21 20:08     ` Jonathan Neuschäfer
2017-11-22  0:36       ` Palmer Dabbelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).