[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230721103410.575555-1-martink@posteo.de>
Date: Fri, 21 Jul 2023 10:34:10 +0000
From: Martin Kepplinger <martink@...teo.de>
To: lorenzo@...nel.org, jic23@...nel.org, lars@...afoo.de,
robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org,
conor+dt@...nel.org
Cc: kernel@...i.sm, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Martin Kepplinger <martink@...teo.de>
Subject: [PATCH] dt-bindings: iio: imu: st,lsm6dsx: add mount-matrix property
Add the mount-matrix optional property to the binding since it's supported
and very useful when using the chip on a board.
Signed-off-by: Martin Kepplinger <martink@...teo.de>
---
Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
index b39f5217d8ff..443dce326c5e 100644
--- a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
+++ b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml
@@ -93,6 +93,9 @@ properties:
wakeup-source:
$ref: /schemas/types.yaml#/definitions/flag
+ mount-matrix:
+ description: an optional 3x3 mounting rotation matrix
+
required:
- compatible
- reg
@@ -114,6 +117,9 @@ examples:
reg = <0x6b>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
+ mount-matrix = "1", "0", "0",
+ "0", "1", "0",
+ "0", "0", "-1";
};
};
...
--
2.30.2
Powered by blists - more mailing lists