1What:		/sys/kernel/debug/wilco_ec/raw
2Date:		January 2019
3KernelVersion:	5.1
4Description:
5		Write and read raw mailbox commands to the EC.
6
7		You can write a hexadecimal sentence to raw, and that series of
8		bytes will be sent to the EC. Then, you can read the bytes of
9		response by reading from raw.
10
11		For writing, bytes 0-1 indicate the message type, one of enum
12		wilco_ec_msg_type. Byte 2+ consist of the data passed in the
13		request, starting at MBOX[0]
14
15		At least three bytes are required for writing, two for the type
16		and at least a single byte of data. Only the first
17		EC_MAILBOX_DATA_SIZE bytes of MBOX will be used.
18
19		Example:
20		// Request EC info type 3 (EC firmware build date)
21		// Corresponds with sending type 0x00f0 with
22		// MBOX = [38, 00, 03, 00]
23		$ echo 00 f0 38 00 03 00 > /sys/kernel/debug/wilco_ec/raw
24		// View the result. The decoded ASCII result "12/21/18" is
25		// included after the raw hex.
26		// Corresponds with MBOX = [00, 00, 31, 32, 2f, 32, 31, 38, ...]
27		$ cat /sys/kernel/debug/wilco_ec/raw
28		00 00 31 32 2f 32 31 2f 31 38 00 38 00 01 00 2f 00  ..12/21/18.8...
29
30		Note that the first 32 bytes of the received MBOX[] will be
31		printed, even if some of the data is junk. It is up to you to
32		know how many of the first bytes of data are the actual
33		response.
34