Browse Source

dts: bindings: st,lsm6dsl: unify I2C and SPI bindings

Use the same wording in description for both I2C and SPI variants to
improve consistency.

Create st,lsm6dsl-common.yaml to include common binding properties from I2C
and SPI variants.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
pull/57795/head
Marcin Niestroj 2 years ago committed by Maureen Helm
parent
commit
e4288acd27
  1. 10
      dts/bindings/sensor/st,lsm6dsl-common.yaml
  2. 11
      dts/bindings/sensor/st,lsm6dsl-i2c.yaml
  3. 11
      dts/bindings/sensor/st,lsm6dsl-spi.yaml

10
dts/bindings/sensor/st,lsm6dsl-common.yaml

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
# Copyright (c) 2017, Linaro Limited
# Copyright (c) 2023, Marcin Niestroj
# SPDX-License-Identifier: Apache-2.0
include: sensor-device.yaml
properties:
irq-gpios:
# This signal is active high when produced by the sensor
type: phandle-array

11
dts/bindings/sensor/st,lsm6dsl-i2c.yaml

@ -1,13 +1,10 @@ @@ -1,13 +1,10 @@
# Copyright (c) 2017, Linaro Limited
# SPDX-License-Identifier: Apache-2.0
description: STMicroelectronics LSM6DSL 6-axis accelerometer and gyrometer
description: |
STMicroelectronics LSM6DSL 6-axis accelerometer and gyrometer accessed through
I2C bus
compatible: "st,lsm6dsl"
include: [sensor-device.yaml, i2c-device.yaml]
properties:
irq-gpios:
# This signal is active high when produced by the sensor
type: phandle-array
include: ["i2c-device.yaml", "st,lsm6dsl-common.yaml"]

11
dts/bindings/sensor/st,lsm6dsl-spi.yaml

@ -2,14 +2,9 @@ @@ -2,14 +2,9 @@
# SPDX-License-Identifier: Apache-2.0
description: |
STMicroelectronics LSM6DSL 6-axis accelerometer and gyrometer accessed
through SPI bus
STMicroelectronics LSM6DSL 6-axis accelerometer and gyrometer accessed through
SPI bus
compatible: "st,lsm6dsl"
include: [sensor-device.yaml, spi-device.yaml]
properties:
irq-gpios:
# This signal is active high when produced by the sensor
type: phandle-array
include: ["spi-device.yaml", "st,lsm6dsl-common.yaml"]

Loading…
Cancel
Save