blob: a9eb4c2d594abe51055beed75befc5f9a4d5da68 [file] [log] [blame]
Simon Glass61300722023-06-01 10:23:01 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Expo definition for the configuration editor
4 *
5 * This used for testing building an expo from a data file. This devicetree
6 * provides a description of the objects to be created.
7 */
8
9#include <test/cedit-test.h>
10
11&cedit {
12 dynamic-start = <ID_DYNAMIC_START>;
13
14 scenes {
15 main {
16 id = <ID_SCENE1>;
17
18 /* value refers to the matching id in /strings */
19 title-id = <ID_SCENE1_TITLE>;
20
21 /* simple string is used as it is */
22 prompt = "UP and DOWN to choose, ENTER to select";
23
24 /* defines a menu within the scene */
25 cpu-speed {
26 type = "menu";
27 id = <ID_CPU_SPEED>;
28
29 /*
30 * has both string and ID. The string is ignored
31 * if the ID is present and points to a string
32 */
33 title = "CPU speed";
34 title-id = <ID_CPU_SPEED_TITLE>;
35
36 /* menu items as simple strings */
37 item-label = "2 GHz", "2.5 GHz", "3 GHz";
38
39 /* IDs for the menu items */
40 item-id = <ID_CPU_SPEED_1 ID_CPU_SPEED_2
41 ID_CPU_SPEED_3>;
42 };
43
44 power-loss {
45 type = "menu";
46 id = <ID_POWER_LOSS>;
47
48 title = "AC Power";
49 item-label = "Always Off", "Always On",
50 "Memory";
51
52 item-id = <ID_AC_OFF ID_AC_ON ID_AC_MEMORY>;
53 };
54 };
55 };
56
57 strings {
58 title {
59 id = <ID_SCENE1_TITLE>;
60 value = "Test Configuration";
61 value-es = "configuraciĆ³n de prueba";
62 };
63 };
64};