Skip to content

Commit 2a48d49

Browse files
aviscontiMaureenHelm
authored andcommitted
dts/bindings: lis2ds12: create a common DT binding file
Create a common properties file that will be included by all DT bindings (as i2c and spi) handled by lis2ds12 driver. Signed-off-by: Armando Visconti <[email protected]>
1 parent f3ad909 commit 2a48d49

File tree

3 files changed

+15
-22
lines changed

3 files changed

+15
-22
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2021 STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
properties:
5+
irq-gpios:
6+
type: phandle-array
7+
required: false
8+
description: |
9+
DRDY pin
10+
11+
This pin defaults to active high when produced by the sensor.
12+
The property value should ensure the flags properly describe
13+
the signal that is presented to the driver.

dts/bindings/sensor/st,lis2ds12-i2c.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,4 @@ description: STMicroelectronics LIS2DS12 3-axis accelerometer
55

66
compatible: "st,lis2ds12"
77

8-
include: i2c-device.yaml
9-
10-
properties:
11-
irq-gpios:
12-
type: phandle-array
13-
required: false
14-
description: DRDY pin
15-
16-
This pin defaults to active high when produced by the sensor.
17-
The property value should ensure the flags properly describe
18-
the signal that is presented to the driver.
8+
include: ["i2c-device.yaml", "st,lis2ds12-common.yaml"]

dts/bindings/sensor/st,lis2ds12-spi.yaml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,4 @@ description: |
66
77
compatible: "st,lis2ds12"
88

9-
include: spi-device.yaml
10-
11-
properties:
12-
irq-gpios:
13-
type: phandle-array
14-
required: false
15-
description: DRDY pin
16-
17-
This pin defaults to active high when produced by the sensor.
18-
The property value should ensure the flags properly describe
19-
the signal that is presented to the driver.
9+
include: ["spi-device.yaml", "st,lis2ds12-common.yaml"]

0 commit comments

Comments
 (0)