blob: 55d5c910dd5e4b983b716c29c09b5a313d4cf51b [file] [log] [blame]
Simon Glassb8c26552023-06-01 10:23:03 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Sample expo screen layout
4 */
5
6/dts-v1/;
7
8/*
9enum {
10 ZERO,
11 ID_PROMPT,
12
13 ID_SCENE1,
14 ID_SCENE1_TITLE,
15
16 ID_CPU_SPEED,
17 ID_CPU_SPEED_TITLE,
18 ID_CPU_SPEED_1,
19 ID_CPU_SPEED_2,
20 ID_CPU_SPEED_3,
21
22 ID_POWER_LOSS,
23 ID_AC_OFF,
24 ID_AC_ON,
25 ID_AC_MEMORY,
26
27 ID_DYNAMIC_START,
28};
29*/
30
31/ {
32 dynamic-start = <ID_DYNAMIC_START>;
33
34 scenes {
35 main {
36 id = <ID_SCENE1>;
37
38 /* value refers to the matching id in /strings */
39 title-id = <ID_SCENE1_TITLE>;
40
41 /* simple string is used as it is */
42 prompt = "UP and DOWN to choose, ENTER to select";
43
44 /* defines a menu within the scene */
45 cpu-speed {
46 type = "menu";
47 id = <ID_CPU_SPEED>;
48
49 /*
50 * has both string and ID. The string is ignored
51 * if the ID is present and points to a string
52 */
53 title = "CPU speed";
54 title-id = <ID_CPU_SPEED_TITLE>;
55
56 /* menu items as simple strings */
57 item-label = "2 GHz", "2.5 GHz", "3 GHz";
58
59 /* IDs for the menu items */
60 item-id = <ID_CPU_SPEED_1 ID_CPU_SPEED_2
61 ID_CPU_SPEED_3>;
62 };
63
64 power-loss {
65 type = "menu";
66 id = <ID_POWER_LOSS>;
67
68 title = "AC Power";
69 item-label = "Always Off", "Always On",
70 "Memory";
71
72 item-id = <ID_AC_OFF ID_AC_ON ID_AC_MEMORY>;
73 };
74 };
75 };
76
77 strings {
78 title {
79 id = <ID_SCENE1_TITLE>;
80 value = "Test Configuration";
81 value-es = "configuraciĆ³n de prueba";
82 };
83 };
84};