diff options
Diffstat (limited to 'test/33-fixed-partition-part-of-gpt-partition.dts')
-rw-r--r-- | test/33-fixed-partition-part-of-gpt-partition.dts | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/33-fixed-partition-part-of-gpt-partition.dts b/test/33-fixed-partition-part-of-gpt-partition.dts new file mode 100644 index 0000000..771b7be --- /dev/null +++ b/test/33-fixed-partition-part-of-gpt-partition.dts @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* Copyright 2023 The DT-Utils Authors <oss-tools@pengutronix.de> */ +/dts-v1/; + +#include "barebox-state.dtsi" + +/ { + expected-dev = __GPT_LOOPDEV__; + expected-partno = <2>; + expected-offset = <0x00000>; + expected-size = <0x2000>; + + disk: loopfile { + compatible = "barebox,hostfile"; + barebox,filename = __GPT_LOOPDEV__; + barebox,blockdev; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + part_state: state@20000 { + reg = <0x20000 0x2000>; + label = "state"; + }; + }; + }; +}; + +&state { + backend = <&part_state>; + backend-type = "raw"; + backend-stridesize = <0x40>; + backend-storage-type = "direct"; +}; |