summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/dts/sandbox.dts
blob: 5b2cab219e2ad0dcce2a3a75b5b4e1ace2d9a9f8 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/dts-v1/;

/ {
	model = "Sandbox";
	compatible = "barebox,sandbox";

	#address-cells = <2>;
	#size-cells = <2>;

	aliases {
		bmode = &bmode;
		state = &state;
	};

	chosen {
		environment {
			compatible = "barebox,environment";
			device-path = &part_env;
		};
	};

	memory {
		device_type = "memory";
		reg = <0 0 0 0>;
	};

	state: state {
		magic = <0xaa3b86a6>;
		compatible = "barebox,state";
		backend-type = "raw";
		backend = <&part_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>;
			};
		};
	};

	stickypage: stickypage {
		compatible = "barebox,hostfile", "syscon", "simple-mfd";
		barebox,filename = "$build/stickypage.bin";
		reg = <0 0 0 4096>;
		barebox,cdev; /* no caching allowed */

		bmode: reboot-mode {
			compatible = "nvmem-reboot-mode";
			nvmem-cells = <&reboot_mode>;
			nvmem-cell-names = "reboot-mode";

			mode-normal = <0x000000>;
			mode-loader = <0xbbbbbb>;
		};

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

			part_nvmem: nvmem@300 {
				compatible = "nvmem-cells";
				reg = <0x300 0x100>;
				label = "nvmem";
				#address-cells = <1>;
				#size-cells = <1>;

				reset_source: reset-source@0 {
					reg = <0x0 0x1>;
				};

				reboot_mode: reboot-mode@1 {
					reg = <0x1 0x4>;
				};
			};

			part_env: env@400 {
				reg = <0x400 0x800>;
				label = "env";
			};

			part_state: state@c00 {
				reg = <0xC00 0x400>;
				label = "state";
			};
		};
	};

	power {
		compatible = "barebox,sandbox-power";
		nvmem-cell-names = "reset-source";
		nvmem-cells = <&reset_source>;
	};

	watchdog {
		compatible = "barebox,sandbox-watchdog";
		nvmem-cell-names = "reset-source";
		nvmem-cells = <&reset_source>;
	};

	sound {
		compatible = "barebox,sandbox-sound";
	};

	led {
		compatible = "barebox,sandbox-led";
	};
};