summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/dts/sandbox-state-example.dtsi
blob: fc17bd07889974727ccf68c53c62150fcc6a39e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/ {
	aliases {
		state = &state;
	};

	disk {
		compatible = "barebox,hostfile";
		barebox,filename = "disk";
		reg = <0x0 0x0 0x100000>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			hostfile_state: state@0 {
				reg = <0x0 0x1000>;
				label = "state";
			};
		};
	};

	state: state {
		magic = <0xaa3b86a6>;
		compatible = "barebox,state";
		backend-type = "raw";
		backend = <&hostfile_state>;
		backend-storage-type = "direct";
		backend-stridesize = <64>;

		#address-cells = <1>;
		#size-cells = <1>;
		vars {
			#address-cells = <1>;
			#size-cells = <1>;

			x {
				reg = <0x0 0x4>;
				type = "uint32";
				default = <1>;
			};

			y {
				reg = <0x4 0x4>;
				type = "uint32";
				default = <3>;
			};
		};
	};
};