Initial work on a soft on/off support for ZMK. Triggering soft off puts the device into deep sleep with only a specific GPIO pin configured to wake the device, avoiding waking from other key presses in the matrix like the normal deep sleep. Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
22 lines
672 B
YAML
22 lines
672 B
YAML
# Copyright (c) 2023 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
description: |
|
|
Driver for controlling the device's power status
|
|
by listening for activity on a GPIO pin for sleep
|
|
and wake.
|
|
|
|
compatible: "zmk,soft-on-off-gpio"
|
|
|
|
properties:
|
|
input-gpios:
|
|
type: phandle-array
|
|
required: true
|
|
description: The GPIO pin that triggers wake/sleep via interrupt
|
|
wakeup-sources:
|
|
type: phandles
|
|
required: true
|
|
description: List of wakeup-sources that need to be deactivated so that only this driver/pin wakes the device.
|
|
output-gpios:
|
|
type: phandle-array
|
|
description: Optional set of pins that should be set active before sleeping.
|