From f291a520c2ed39e36cad749d20194a32bc26924d Mon Sep 17 00:00:00 2001 From: Jan Tore Guggedal Date: Thu, 29 Nov 2018 18:33:28 +0100 Subject: [PATCH] dts: bindings: Add binding for ADXL372 using SPI This patch adds dts/bindings/adi,adxl372-spi.yaml for using ADXL372 on SPI bus instead of I2C which is used in dts/bindings/adi,adxl372.yaml. Signed-off-by: Jan Tore Guggedal --- dts/bindings/sensor/adi,adxl372-spi.yaml | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dts/bindings/sensor/adi,adxl372-spi.yaml diff --git a/dts/bindings/sensor/adi,adxl372-spi.yaml b/dts/bindings/sensor/adi,adxl372-spi.yaml new file mode 100644 index 00000000000..bbdab0de2e3 --- /dev/null +++ b/dts/bindings/sensor/adi,adxl372-spi.yaml @@ -0,0 +1,27 @@ +# +# Copyright (c) 2018 Analog Devices Inc. +# Copyright (c) 2018 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: Apache-2.0 +# +--- +title: ADXL372 Three Axis High-g I2C/SPI accelerometer +version: 0.1 + +description: > + This is a representation of the ADXL372 Three Axis High-g accelerometer, + accessed through SPI bus + +inherits: + !include spi-device.yaml + +properties: + compatible: + constraint: "adi,adxl372-spi" + + int1-gpios: + type: compound + category: optional + generation: define, use-prop-name + +...