summaryrefslogtreecommitdiff
path: root/app/dts
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-10-09 20:40:48 -0400
committerGitHub <noreply@github.com>2020-10-09 20:40:48 -0400
commite1dcf1514fe2abb22c3569036af2438709c3d4cb (patch)
treeea7ac3440f9e5097dc32c96d411e040b5f6d482b /app/dts
parent405ca7267fc0be9558836393bfe9945187016dd4 (diff)
parent4d81b10ba7047a4dbd63cfe33ac879ecf437e108 (diff)
Merge pull request #242 from megamind4089/feature/ext-power
[RDY] Driver to control the external power output
Diffstat (limited to 'app/dts')
-rw-r--r--app/dts/bindings/behaviors/zmk,behavior-sensor-rotate-key-press.yaml2
-rw-r--r--app/dts/bindings/zmk,ext-power-generic.yaml20
-rw-r--r--app/dts/bindings/zmk,keymap-sensors.yaml5
3 files changed, 26 insertions, 1 deletions
diff --git a/app/dts/bindings/behaviors/zmk,behavior-sensor-rotate-key-press.yaml b/app/dts/bindings/behaviors/zmk,behavior-sensor-rotate-key-press.yaml
index bbf3537..6b33910 100644
--- a/app/dts/bindings/behaviors/zmk,behavior-sensor-rotate-key-press.yaml
+++ b/app/dts/bindings/behaviors/zmk,behavior-sensor-rotate-key-press.yaml
@@ -1,4 +1,4 @@
-# Copyright (c) 2020, Pete Johanson
+# Copyright (c) 2020, The ZMK Contributors
# SPDX-License-Identifier: MIT
description: Sensor rotate key press/release behavior
diff --git a/app/dts/bindings/zmk,ext-power-generic.yaml b/app/dts/bindings/zmk,ext-power-generic.yaml
new file mode 100644
index 0000000..5a38a09
--- /dev/null
+++ b/app/dts/bindings/zmk,ext-power-generic.yaml
@@ -0,0 +1,20 @@
+#
+# Copyright (c) 2020, The ZMK Contributors
+# SPDX-License-Identifier: MIT
+#
+
+description: |
+ Generic driver for controlling the external power output
+ by toggling the control-gpio pin status
+ (Only in supported hardware)
+
+compatible: "zmk,ext-power-generic"
+
+properties:
+ control-gpios:
+ type: phandle-array
+ required: true
+ label:
+ type: string
+ required: true
+
diff --git a/app/dts/bindings/zmk,keymap-sensors.yaml b/app/dts/bindings/zmk,keymap-sensors.yaml
index c56361d..86ae5c2 100644
--- a/app/dts/bindings/zmk,keymap-sensors.yaml
+++ b/app/dts/bindings/zmk,keymap-sensors.yaml
@@ -1,3 +1,8 @@
+#
+# Copyright (c) 2020, The ZMK Contributors
+# SPDX-License-Identifier: MIT
+#
+
description: |
Allows defining the collection of sensors bound in the keymap layers