-
Notifications
You must be signed in to change notification settings - Fork 15
/
schema.yaml
210 lines (180 loc) · 5.46 KB
/
schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
"$schema": https://json-schema.org/draft/2020-12/schema#
title: CDBA Configuration Schema
type: object
properties:
devices:
type: array
items:
type: object
properties:
board:
description: board identifier to be used by cdba client
type: string
name:
description: board pretty name to be printed by cdba client when querying boards
type: string
description:
description: board verbose description for reference
type: string
console:
description: console TTY device path
$ref: "#/$defs/device_path"
fastboot:
description: fastboot id
type: string
pattern: "^[0-9a-f]{8}$"
fastboot_set_active:
description: run fastboot set active before each boot, slot can be selected
oneOf:
- type: boolean
- enum:
- a
- b
broken_fastboot_boot:
description: Is fastboot boot broken, in this case boot is flashed and board is rebooted
type: boolean
usb_always_on:
description: mark USB as always on
type: boolean
fastboot_key_timeout:
description: timeout of the fastbook key press
type: integer
minimum: 1
cdba:
description: CDB Assist device path
$ref: "#/$defs/device_path"
voltage:
description: CDB Assist voltage in microvolt
type: integer
conmux:
description: conmux service string
type: string
external:
description: path to the program that handles board power, usb and key controls
type: string
ppps_path:
description: USB device name, like 2-2:1.0/2-2-port2
type: string
ppps3_path:
description: USB device name, like 2-2:1.0/2-2-port2
type: string
status-cmd:
description: Command to execute for generating status updates
type: string
qcomlt_debug_board:
description: Qlt Debug Board control tty device path
$ref: "#/$defs/device_path"
alpaca:
description: Alpaca board control device path
$ref: "#/$defs/device_path"
users:
description: User access allowance for the board
type: array
uniqueItems: true
minItems: 1
items:
type: string
ftdi_gpio:
description: GPIO control over FTDI chip
oneOf:
- type: string
# <libftdi description>;[<interface>[;<gpios>...]]
# - libftdi description: ftdi_usb_open_string() formats
# - interface: A, B, C or D (default A)
# - gpios: type,id,polarity
# - type: POWER, FASTBOOT_KEY, POWER_KEY or USB_DISCONNECT
# - id: 0, 1, 2, 3, 4, 5, 6 or 7
# - polarity: ACTIVE_HIGH or ACTIVE_LOW
pattern: "^(d:/.*)|(i:0x[0-9a-fA-F]{4}:0x[0-9a-fA-F]{4}(:[0-9]+)?)|(s:0x[0-9a-fA-F]{4}:0x[0-9a-fA-F]{4}:FT[0-9a-zA-Z]{6})(;[A-D](;(POWER|FASTBOOT_KEY|POWER_KEY|USB_DISCONNECT),[0-7],(ACTIVE_HIGH|ACTIVE_LOW)){0,4})?$"
deprecated: true
- type: object
properties:
vendor:
type: string
pattern: "^0x[0-9a-fA-F]{4}$"
product:
type: string
pattern: "^0x[0-9a-fA-F]{4}$"
serial:
type: string
pattern: "^FT[0-9a-zA-Z]{6}"
index:
type: integer
minimin: 0
devicenode:
$ref: "#/$defs/device_path"
patternProperties:
"^power|fastboot_key|power_key|usb_disconnect|output_enable$":
$ref: "#/$defs/ftdi_gpio"
dependentRequired:
index:
- product
- vendor
serial:
- product
- vendor
local_gpio:
description: Local GPIO
type: object
unevaluatedItems: false
patternProperties:
"^power|fastboot_key|power_key|usb_disconnect$":
$ref: "#/$defs/local_gpio"
laurent:
description: KernelChip Laurent relays
type: object
unevaluatedItems: false
properties:
server:
type: string
relay:
type: integer
password:
description: password to access the relays, defaults to 'Laurent'
type: string
required:
- server
- relay
required:
- board
- name
additionalProperties: false
required:
- devices
additionalProperties: false
$defs:
device_path:
type: string
pattern: "^/dev/.*$"
ftdi_gpio:
type: object
properties:
interface:
enum:
- A
- B
- C
- D
line:
type: integer
minimum: 0
maximum: 7
active_low:
type: boolean
required:
- interface
- line
local_gpio:
type: object
properties:
chip:
type: string
pattern: "^gpiochip[0-9]+$"
line:
type: integer
minimum: 0
active_low:
type: boolean
required:
- chip
- line