From 8f6efc52ecc3b9089b714231f12316a49be002b8 Mon Sep 17 00:00:00 2001 From: Hyungwoo Yang Date: Wed, 10 Mar 2021 14:32:02 -0800 Subject: zephyr: DT: support sensor driver mutex This change creates mutex instances based on information from device tree. BUG=b:173507858 BRANCH=none TEST=make buildall -j8 build volteer on zephyr Signed-off-by: Hyungwoo Yang Change-Id: I785e58efe1db9c5fad633bbfb87be3909f253162 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2749427 Reviewed-by: Simon Glass --- .../motionsense/cros-ec,motionsense-mutex.yaml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml (limited to 'zephyr/dts') diff --git a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml new file mode 100644 index 0000000000..c988af258d --- /dev/null +++ b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml @@ -0,0 +1,34 @@ +# Copyright (c) 2021 The Chromium OS Authors +# SPDX-License-Identifier: Apache-2.0 + +description: Motion sense mutex parent node + +compatible: "cros-ec,motionsense-mutex" + +child-binding: + description: A mutex node is used to create an instance of mutex_t. + A mutex node is referenced by one or more sensor nodes in + "/motionsense-sensors" node. + properties: + label: + required: true + type: string + description: Human readable string describing the mutex. + This is a brief explanation about the mutex. + The property is not actually used in code. + + +# +# examples: +# +# motionsense-mutex { +# compatible = "cros-ec,motionsense-mutex"; +# mutex_bma255: bma255-mutex { +# label = "BMA255_MUTEX"; +# }; +# +# mutex_bmi260: bmi260-mutex { +# label = "BMI260_MUTEX"; +# }; +# }; +# -- cgit v1.2.1