summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-10-12 08:26:16 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-10-13 08:45:15 +0200
commit9e0c0930d108ebe2d6c098370417c7694c05dcae (patch)
tree6c47eaf10cefdce1b5794eb308daacf6b50fa482
parent0589fdfe78fa3b306c9c37b65040543454209813 (diff)
downloadbarebox-9e0c0930d108ebe2d6c098370417c7694c05dcae.tar.gz
barebox-9e0c0930d108ebe2d6c098370417c7694c05dcae.tar.xz
sandbox: dts: implement reboot mode
Having a default reboot mode in the device tree allows testing the functionality out of sandbox without prior setup. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/sandbox/dts/sandbox.dts12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts
index 93824cba9d..be96745b42 100644
--- a/arch/sandbox/dts/sandbox.dts
+++ b/arch/sandbox/dts/sandbox.dts
@@ -8,6 +8,7 @@
#size-cells = <2>;
aliases {
+ bmode = &bmode;
};
chosen {
@@ -23,8 +24,17 @@
};
stickypage: stickypage {
- compatible = "barebox,hostfile", "syscon";
+ compatible = "barebox,hostfile", "syscon", "simple-mfd";
reg = <0 0 0 4096>;
+ barebox,cdev; /* no caching allowed */
+
+ bmode: reboot-mode {
+ compatible = "syscon-reboot-mode";
+ offset = <0>;
+ mask = <0xffffff00>;
+ mode-normal = <0x00000000>;
+ mode-loader = <0xbbbbbb00>;
+ };
partitions {
compatible = "fixed-partitions";