summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/dts
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2023-06-23 14:47:49 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2023-08-15 09:58:58 +0200
commit8e204806f616af482f8509d17acc1978777ac8f6 (patch)
treef5deac451d96d5b819d10f0c6d44a4be43ccf4d4 /configs/platform-v7a/dts
parent24aed411fc563460fa595798674223471ce14302 (diff)
downloadDistroKit-8e204806f616af482f8509d17acc1978777ac8f6.tar.gz
DistroKit-8e204806f616af482f8509d17acc1978777ac8f6.tar.xz
v7a: add RAUC support for riotboard
* Enable barebox bootchooser framework * Add a redundant root partition to the genimage config * Add appropriate variables to the barebox defaultenv so the bootchooser can decide into which partition to boot * Add a state backend to the device tree fragment * Map partitions in rauc-udev compatibility layer Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/dts')
-rw-r--r--configs/platform-v7a/dts/bootstate.dtsi27
1 files changed, 27 insertions, 0 deletions
diff --git a/configs/platform-v7a/dts/bootstate.dtsi b/configs/platform-v7a/dts/bootstate.dtsi
index 6415dcc..b118975 100644
--- a/configs/platform-v7a/dts/bootstate.dtsi
+++ b/configs/platform-v7a/dts/bootstate.dtsi
@@ -74,6 +74,33 @@
};
#endif
+/** RIoTboard i.MX6S **********************************************************/
+#ifdef imx6s_riotboard_dts
+/ {
+ aliases {
+ state = &state_usdhc4;
+ };
+
+ state_usdhc4: state {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "barebox,state";
+ magic = <0x95ab2de7>;
+ backend-type = "raw";
+ backend = <&backend_state_usdhc4>;
+ backend-storage-type = "direct";
+ backend-stridesize = <0x40>;
+ };
+};
+
+&usdhc4 {
+ backend_state_usdhc4: partition@100000 {
+ label = "barebox-state";
+ reg = <0x100000 0x40000>;
+ };
+};
+#endif
+
/** Generic bootstate node for all platforms **********************************/
/ {
state: state {