dts: bindings: Add SPI yaml file for LSM6DSL sensor

The LSM6DSL accel/gyro sensor can be accessed through
SPI bus. So the required configuration can be passed through
dts file.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2018-05-15 13:43:43 +02:00 committed by Maureen Helm
commit 36b0c321a7

View file

@ -0,0 +1,26 @@
#
# Copyright (c) 2018, Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: STMicroelectronics MEMS sensors LSM6DSL SPI
id: st,lsm6dsl-spi
version: 0.1
description: >
This binding gives a base representation of LSM6DSL 6-axis accelerometer
and gyrometer accessed through SPI bus
inherits:
!include spi-device.yaml
properties:
compatible:
constraint: "st,lsm6dsl-spi"
irq-gpios:
type: compound
category: required
generation: define, use-prop-name
...