zmk/app/dts/bindings/zmk,soft-on-off-gpio.yaml
Peter Johanson 5d880bda00 feat: Add soft on/off support.
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>
2023-07-19 23:24:16 -07:00

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.