summaryrefslogtreecommitdiff
path: root/zephyr/dts
diff options
context:
space:
mode:
authorAl Semjonovs <asemjonovs@google.com>2022-06-24 07:48:45 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-28 21:09:42 +0000
commita14b72ba413fde3a7c7ace3153ca45c551c17bdd (patch)
treef10320dc619b75bf571ee789a23dc6caefe4cab0 /zephyr/dts
parentab9a716db1e256b4b95cb3679b0ade49b488b938 (diff)
downloadchrome-ec-a14b72ba413fde3a7c7ace3153ca45c551c17bdd.tar.gz
zephyr: generic button config driver
Generic button config driver for zephyr BUG=b:234728861 BRANCH=none TEST=./twister -T zephyr/test Signed-off-by: Al Semjonovs <asemjonovs@google.com> Change-Id: I98e48cc030c19f0b4463df9658d58f2af56570cd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3765459 Reviewed-by: Sam Hurst <shurst@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/dts')
-rw-r--r--zephyr/dts/bindings/button/cros-ec,button-cfg.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/zephyr/dts/bindings/button/cros-ec,button-cfg.yaml b/zephyr/dts/bindings/button/cros-ec,button-cfg.yaml
new file mode 100644
index 0000000000..f46a24432e
--- /dev/null
+++ b/zephyr/dts/bindings/button/cros-ec,button-cfg.yaml
@@ -0,0 +1,39 @@
+# Copyright 2022 The Chromium OS Authors.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+#
+description: |
+ Button config.
+ - Name
+ - Type
+ - GPIO handle
+ - Debounce time (us)
+ - Flags
+
+compatible: "cros-ec,button-cfg"
+
+child-binding:
+ description: Button configuration
+ properties:
+ button_name:
+ type: string
+ required: true
+ description: Button name
+ button_type:
+ type: int
+ required: false
+ description: Keyboard button type
+ spec:
+ type: phandle
+ required: true
+ gpio_int:
+ type: phandle
+ required: false
+ debounce_us:
+ type: int
+ required: true
+ description: Debounce time in microseconds
+ flags:
+ type: int
+ required: true
+ description: The zephyr gpio interrupt config flags.