Re: [PATCH v3] dt-bindings: iio: gyroscope: add mount-matrix for bmg160

From: Rob Herring (Arm)

Date: Tue Apr 21 2026 - 15:15:43 EST



On Sat, 18 Apr 2026 00:11:09 +0530, Vishwas Rajashekar wrote:
> 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 <vishwas.dev@xxxxxxxxxxxxx>
> ---
> The bmg160 driver reads an optional mount-matrix using
> "iio_read_mount_matrix" in "bmg160_core_probe" and stores
> this orientation data in "struct bmg160_data". As the "mount-matrix"
> property is used by the driver, this change proposes to add it to
> the corresponding dt-bindings.
> ---
> Changes in v3:
> - Addressed review feedback: updated the commit message to indicate
> relevance to hardware and remove references to the Linux driver.
> - Link to v2: https://patch.msgid.link/20260416-bmg160-mount-matrix-dt-binding-v2-1-e66cf5cff8e8@xxxxxxxxxxxxx
>
> Changes in v2:
> - Addressed review feedback: add mount-matrix example for bmg160
> - Link to v1: https://patch.msgid.link/20260415-bmg160-mount-matrix-dt-binding-v1-1-0e2c85964ee6@xxxxxxxxxxxxx
>
> To: Jonathan Cameron <jic23@xxxxxxxxxx>
> To: David Lechner <dlechner@xxxxxxxxxxxx>
> To: Nuno Sá <nuno.sa@xxxxxxxxxx>
> To: Andy Shevchenko <andy@xxxxxxxxxx>
> To: Rob Herring <robh@xxxxxxxxxx>
> To: Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>
> To: Conor Dooley <conor+dt@xxxxxxxxxx>
> To: "H. Nikolaus Schaller" <hns@xxxxxxxxxxxxx>
> Cc: linux-iio@xxxxxxxxxxxxxxx
> Cc: devicetree@xxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> ---
> Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 6 ++++++
> 1 file changed, 6 insertions(+)
>

Reviewed-by: Rob Herring (Arm) <robh@xxxxxxxxxx>