summaryrefslogtreecommitdiff
path: root/docs/configuration/keyboard.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/configuration/keyboard.md')
-rw-r--r--docs/configuration/keyboard.md54
1 files changed, 25 insertions, 29 deletions
diff --git a/docs/configuration/keyboard.md b/docs/configuration/keyboard.md
index f2dc585e1b..c04e8eddbd 100644
--- a/docs/configuration/keyboard.md
+++ b/docs/configuration/keyboard.md
@@ -8,23 +8,23 @@ appropriate to add to `baseboard.h` or `board.h`.
Your board should select only one of these options to configure the protocol
used to send keyboard events to the AP.
-- `CONFIG_KEYBOARD_PROTOCOL_8042` - Systems with an x86 AP use the 8042
- protocol.
-- `CONFIG_KEYBOARD_PROTOCOL_MKBP` - Systems without an x86 AP (e.g. ARM)
- typically use the MKBP protocol.
+- `CONFIG_KEYBOARD_PROTOCOL_8042` - Systems with an x86 AP use the 8042
+ protocol.
+- `CONFIG_KEYBOARD_PROTOCOL_MKBP` - Systems without an x86 AP (e.g. ARM)
+ typically use the MKBP protocol.
## Feature Parameters
-- `CONFIG_KEYBOARD_KSO_BASE <pin>` - Evaluate whether this parameter is required
- by your board.
+- `CONFIG_KEYBOARD_KSO_BASE <pin>` - Evaluate whether this parameter is
+ required by your board.
## GPIOs and Alternate Pins
Define `ALTERNATE()` pin entries for all keyboard matrix signals, to connect the
signals to the keyboard controller of the EC chipset.
-Note that KSO_02 is purposely not configured for for alternate mode. See the [H1
-Special Requirements](#H1-Special-Requirements) below for details.
+Note that KSO_02 is purposely not configured for for alternate mode. See the
+[H1 Special Requirements](#H1-Special-Requirements) below for details.
```c
/* Example Keyboard pin setup */
@@ -42,8 +42,8 @@ macros.
## Data structures
-- `struct keyboard_scan_config keyscan_config` - This must be defined if the
- `CONFIG_KEYBOARD_BOARD_CONFIG` option is defined.
+- `struct keyboard_scan_config keyscan_config` - This must be defined if the
+ `CONFIG_KEYBOARD_BOARD_CONFIG` option is defined.
## Tasks
@@ -65,27 +65,23 @@ priority is lower than the `HOSTCMD` task.
## Additional Notes
-- If you're including keyboard support, you should also define
- `CONFIG_CMD_KEYBOARD` to enable keyboard debug commands from the EC console.
-- `CONFIG_KEYBOARD_PROTOCOL_MKBP` automatically enables `CONFIG_MKBP_EVENT`.
-- Boards that enable `CONFIG_KEYBOARD_PROTOCOL_8042` will often also define
- `CONFIG_MKBP_EVENT` for sensor events. In this case only motion sensor data is
- reported using the MKBP protocol, keyboard events are provided using the 8042
- protocol. Refer to [Configuring Sensors](./motion_sensors.md) for more
- information.
+- If you're including keyboard support, you should also define
+ `CONFIG_CMD_KEYBOARD` to enable keyboard debug commands from the EC console.
+- `CONFIG_KEYBOARD_PROTOCOL_MKBP` automatically enables `CONFIG_MKBP_EVENT`.
+- Boards that enable `CONFIG_KEYBOARD_PROTOCOL_8042` will often also define
+ `CONFIG_MKBP_EVENT` for sensor events. In this case only motion sensor data
+ is reported using the MKBP protocol, keyboard events are provided using the
+ 8042 protocol. Refer to [Configuring Sensors](./motion_sensors.md) for more
+ information.
### H1 Special Requirements
+
On Boards that use the H1 secure microcontroller, one KSI (keyboard scan input)
signal and one KSO (keyboard scan output) signal are routed through the H1
microcontroller. There are additional GPIO and configuration options that must
-be enabled in this case.
-- The KSO_02/COL2 signal is always inverted. Explicitly configure the GPIO to
- default low.
- ```c
- GPIO(KBD_KSO2, PIN(1, 7), GPIO_OUT_LOW) /* KSO_02 inverted */
- ```
-- Add the define `CONFIG_KEYBOARD_COL2_INVERTED` to `baseboard.h` or `board.h`.
-- If required by the board, define one of the following options to configure the
- KSI pin routed to the H1 microcontroller.
- - `CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI2`
- - `CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI3`
+be enabled in this case. - The KSO_02/COL2 signal is always inverted. Explicitly
+configure the GPIO to default low. `c GPIO(KBD_KSO2, PIN(1, 7), GPIO_OUT_LOW) /*
+KSO_02 inverted */` - Add the define `CONFIG_KEYBOARD_COL2_INVERTED` to
+`baseboard.h` or `board.h`. - If required by the board, define one of the
+following options to configure the KSI pin routed to the H1 microcontroller. -
+`CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI2` - `CONFIG_KEYBOARD_PWRBTN_ASSERTS_KSI3`