1// 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 machine-name { 56 id = <ID_MACHINE_NAME>; 57 type = "textline"; 58 max-chars = <20>; 59 title = "Machine name"; 60 edit-id = <ID_MACHINE_NAME_EDIT>; 61 }; 62 }; 63 }; 64 65 strings { 66 title { 67 id = <ID_SCENE1_TITLE>; 68 value = "Test Configuration"; 69 value-es = "configuraci��n de prueba"; 70 }; 71 }; 72}; 73