f5595b4b9c
Many sensors have multiple functions, for example, icm42688 supports accel, gyro and temperature, and the sensor streaming api always mixes the multiple functions in one function call. So we need add a layer in sensing subsystem to dispatch the result returned from sensor streaming api for each function. I changed the sensor-type(int) to sensor-types(array) in sensing sensor device bindings, so that one device can map to multiple instances of sensing sensor. Signed-off-by: Zhang Lixu <lixu.zhang@intel.com>
34 lines
736 B
YAML
34 lines
736 B
YAML
# Copyright (c) 2023, Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
description: Sensing subsystem sensor common properties bindings.
|
|
|
|
include: sensor-device.yaml
|
|
|
|
properties:
|
|
sensor-types:
|
|
type: array
|
|
required: true
|
|
description: sensor type id (follow HID spec definition)
|
|
|
|
friendly-name:
|
|
required: true
|
|
|
|
minimal-interval:
|
|
type: int
|
|
required: true
|
|
description: sensor minimal report interval
|
|
|
|
reporters:
|
|
type: phandles
|
|
description: sensor reporters
|
|
|
|
reporters-index:
|
|
type: array
|
|
description: the index in sensor-types of reporter if the reporter support multiple sensor-types
|
|
|
|
stream-mode:
|
|
type: boolean
|
|
description: sensor works on stream mode or poll mode
|