From: Vishwas Rajashekar Date: Fri, 17 Apr 2026 18:41:09 +0000 (+0530) Subject: dt-bindings: iio: gyroscope: add mount-matrix for bmg160 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=793e056d44b76e284afa33d47de4c5ac75c8941a;p=thirdparty%2Flinux.git 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 --- diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml index fcbd4b430e48e..8e094651381c8 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"; }; }; ...