blob: bed552288f4cd49fd4186e5ac9839fe3ffd401bd [file] [log] [blame]
Simon Glass87c1a412023-06-01 10:23:03 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Sample expo screen layout
4 */
5
6/dts-v1/;
7
Simon Glassd5737b32023-08-14 16:40:28 -06008/* see expo_ids.h for the IDs */
Simon Glass87c1a412023-06-01 10:23:03 -06009
10/ {
11 dynamic-start = <ID_DYNAMIC_START>;
12
13 scenes {
14 main {
15 id = <ID_SCENE1>;
16
17 /* value refers to the matching id in /strings */
18 title-id = <ID_SCENE1_TITLE>;
19
20 /* simple string is used as it is */
21 prompt = "UP and DOWN to choose, ENTER to select";
22
23 /* defines a menu within the scene */
24 cpu-speed {
25 type = "menu";
26 id = <ID_CPU_SPEED>;
27
28 /*
29 * has both string and ID. The string is ignored
30 * if the ID is present and points to a string
31 */
32 title = "CPU speed";
33 title-id = <ID_CPU_SPEED_TITLE>;
34
35 /* menu items as simple strings */
36 item-label = "2 GHz", "2.5 GHz", "3 GHz";
37
38 /* IDs for the menu items */
39 item-id = <ID_CPU_SPEED_1 ID_CPU_SPEED_2
40 ID_CPU_SPEED_3>;
Simon Glasseb6c71b2023-08-14 16:40:37 -060041
42 start-bit = <0x400>;
43 bit-length = <2>;
Simon Glass87c1a412023-06-01 10:23:03 -060044 };
45
46 power-loss {
47 type = "menu";
48 id = <ID_POWER_LOSS>;
49
50 title = "AC Power";
51 item-label = "Always Off", "Always On",
52 "Memory";
53
54 item-id = <ID_AC_OFF ID_AC_ON ID_AC_MEMORY>;
Simon Glasseb6c71b2023-08-14 16:40:37 -060055 start-bit = <0x422>;
56 bit-length = <2>;
Simon Glass87c1a412023-06-01 10:23:03 -060057 };
Simon Glassc2bd2d32023-10-01 19:13:39 -060058
59 machine-name {
60 id = <ID_MACHINE_NAME>;
61 type = "textline";
62 max-chars = <20>;
63 title = "Machine name";
64 edit-id = <ID_MACHINE_NAME_EDIT>;
65 };
Simon Glass87c1a412023-06-01 10:23:03 -060066 };
67 };
68
69 strings {
70 title {
71 id = <ID_SCENE1_TITLE>;
72 value = "Test Configuration";
73 value-es = "configuraciĆ³n de prueba";
74 };
75 };
76};