~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 55d5c910dd5e4b983b716c29c09b5a313d4cf51b (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
// SPDX-License-Identifier: GPL-2.0+
/*
 * Sample expo screen layout
 */

/dts-v1/;

/*
enum {
	ZERO,
	ID_PROMPT,

	ID_SCENE1,
	ID_SCENE1_TITLE,

	ID_CPU_SPEED,
	ID_CPU_SPEED_TITLE,
	ID_CPU_SPEED_1,
	ID_CPU_SPEED_2,
	ID_CPU_SPEED_3,

	ID_POWER_LOSS,
	ID_AC_OFF,
	ID_AC_ON,
	ID_AC_MEMORY,

	ID_DYNAMIC_START,
};
*/

/ {
	dynamic-start = <ID_DYNAMIC_START>;

	scenes {
		main {
			id = <ID_SCENE1>;

			/* value refers to the matching id in /strings */
			title-id = <ID_SCENE1_TITLE>;

			/* simple string is used as it is */
			prompt = "UP and DOWN to choose, ENTER to select";

			/* defines a menu within the scene */
			cpu-speed {
				type = "menu";
				id = <ID_CPU_SPEED>;

				/*
				 * has both string and ID. The string is ignored
				 * if the ID is present and points to a string
				 */
				title = "CPU speed";
				title-id = <ID_CPU_SPEED_TITLE>;

				/* menu items as simple strings */
				item-label = "2 GHz", "2.5 GHz", "3 GHz";

				/* IDs for the menu items */
				item-id = <ID_CPU_SPEED_1 ID_CPU_SPEED_2
					ID_CPU_SPEED_3>;
			};

			power-loss {
				type = "menu";
				id = <ID_POWER_LOSS>;

				title = "AC Power";
				item-label = "Always Off", "Always On",
					"Memory";

				item-id = <ID_AC_OFF ID_AC_ON ID_AC_MEMORY>;
			};
		};
	};

	strings {
		title {
			id = <ID_SCENE1_TITLE>;
			value = "Test Configuration";
			value-es = "configuración de prueba";
		};
	};
};