From 793e056d44b76e284afa33d47de4c5ac75c8941a Mon Sep 17 00:00:00 2001 From: Vishwas Rajashekar Date: Sat, 18 Apr 2026 00:11:09 +0530 Subject: [PATCH] dt-bindings: iio: gyroscope: add mount-matrix for bmg160 The mount-matrix property supplies a 3x3 matrix that is used to transform the values from the gyroscope to get vector values that are relative to the way the sensor has been mounted on the device. When the property is not specified, the identity matrix is used. This change adds mount-matrix as an optional property to the dt-bindings for the bmg160 gyroscope. Signed-off-by: Vishwas Rajashekar Reviewed-by: Rob Herring (Arm) Signed-off-by: Jonathan Cameron --- .../devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml index fcbd4b430e48..8e094651381c 100644 --- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml +++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml @@ -26,6 +26,9 @@ properties: vdd-supply: true vddio-supply: true + mount-matrix: + description: an optional 3x3 mounting rotation matrix. + spi-max-frequency: maximum: 10000000 @@ -56,6 +59,9 @@ examples: reg = <0x69>; interrupt-parent = <&gpio6>; interrupts = <18 IRQ_TYPE_EDGE_RISING>; + mount-matrix = "0", "1", "0", + "1", "0", "0", + "0", "0", "1"; }; }; ...