Skip to content

Commit

Permalink
fix: Allow setting wakeup-source on composite.
Browse files Browse the repository at this point in the history
Include the base `kscan.yaml` to allow settings `wakeup-source`
on composite kscan devices.
  • Loading branch information
petejohanson committed Nov 25, 2024
1 parent d39941d commit cb190c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/dts/bindings/zmk,kscan-composite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ description: |
compatible: "zmk,kscan-composite"

include: kscan.yaml

properties:
label:
type: string
Expand Down
9 changes: 5 additions & 4 deletions docs/docs/config/kscan.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,11 @@ Applies to : `compatible = "zmk,kscan-composite"`

Definition file: [zmk/app/dts/bindings/zmk,kscan-composite.yaml](https://github.com/zmkfirmware/zmk/blob/main/app/dts/bindings/zmk,kscan-composite.yaml)

| Property | Type | Description | Default |
| --------- | ---- | --------------------------------------------- | ------- |
| `rows` | int | The number of rows in the composite matrix | |
| `columns` | int | The number of columns in the composite matrix | |
| Property | Type | Description | Default |
| --------------- | ---- | ----------------------------------------------------------------------------------------------------------------------------- | ------- |
| `rows` | int | The number of rows in the composite matrix | |
| `columns` | int | The number of columns in the composite matrix | |
| `wakeup-source` | bool | Mark this kscan instance as able to wake the keyboard. Required to keep the child kscan devices from being suspended as well. |

The `zmk,kscan-composite` node should have one child node per keyboard scan driver that should be composited. Each child node can have the following properties:

Expand Down

0 comments on commit cb190c9

Please sign in to comment.