blob: 9bc1e4950b96606e4780c9cce8033a9f34c8655d [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
Simon Glassb1263bc2023-08-14 16:40:28 -06008/* see expo_ids.h for the IDs */
Simon Glassb8c26552023-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 Glass2b91ca62023-08-14 16:40:37 -060041
Simon Glass100389f2024-10-14 16:31:58 -060042 /* values for the menu items */
Simon Glass6f3e87a2024-10-14 16:32:00 -060043 item-value = <0 3 6>;
Simon Glass100389f2024-10-14 16:31:58 -060044
Simon Glass2b91ca62023-08-14 16:40:37 -060045 start-bit = <0x400>;
Simon Glass6f3e87a2024-10-14 16:32:00 -060046 bit-length = <3>;
Simon Glassb8c26552023-06-01 10:23:03 -060047 };
48
49 power-loss {
50 type = "menu";
51 id = <ID_POWER_LOSS>;
52
53 title = "AC Power";
54 item-label = "Always Off", "Always On",
55 "Memory";
56
57 item-id = <ID_AC_OFF ID_AC_ON ID_AC_MEMORY>;
Simon Glass2b91ca62023-08-14 16:40:37 -060058 start-bit = <0x422>;
59 bit-length = <2>;
Simon Glassb8c26552023-06-01 10:23:03 -060060 };
Simon Glass70c579b2023-10-01 19:13:39 -060061
62 machine-name {
63 id = <ID_MACHINE_NAME>;
64 type = "textline";
65 max-chars = <20>;
66 title = "Machine name";
67 edit-id = <ID_MACHINE_NAME_EDIT>;
68 };
Simon Glassb8c26552023-06-01 10:23:03 -060069 };
70 };
71
72 strings {
73 title {
74 id = <ID_SCENE1_TITLE>;
75 value = "Test Configuration";
76 value-es = "configuración de prueba";
77 };
78 };
79};