Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 3 +++ 1 file changed, 3 insertions(+)
From: Vishwas Rajashekar <vishwas.dev@vrajashkr.com>
Adds mount-matrix as an optional property to dt-bindings
for the bmg160 gyroscope as the driver reads this optional
property during probe.
Signed-off-by: Vishwas Rajashekar <vishwas.dev@vrajashkr.com>
---
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.
---
Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
index 3c6fe74af0b8..ea8689660adf 100644
--- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
+++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml
@@ -22,6 +22,9 @@ properties:
vdd-supply: true
vddio-supply: true
+ mount-matrix:
+ description: an optional 3x3 mounting rotation matrix.
+
spi-max-frequency:
maximum: 10000000
---
base-commit: 591cd656a1bf5ea94a222af5ef2ee76df029c1d2
change-id: 20260414-bmg160-mount-matrix-dt-binding-e76ddde94866
Best regards,
--
Vishwas Rajashekar <vishwas.dev@vrajashkr.com>
On Wed, Apr 15, 2026 at 09:13:40PM +0530, Vishwas Rajashekar wrote: > Adds mount-matrix as an optional property to dt-bindings > for the bmg160 gyroscope as the driver reads this optional > property during probe. > > Signed-off-by: Vishwas Rajashekar <vishwas.dev@vrajashkr.com> > --- > 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. > --- > Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml > index 3c6fe74af0b8..ea8689660adf 100644 > --- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml > +++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml > @@ -22,6 +22,9 @@ properties: > vdd-supply: true > vddio-supply: true > > + mount-matrix: > + description: an optional 3x3 mounting rotation matrix. > + Extend also example, please. Best regards, Krzysztof
On Thursday, April 16th, 2026 at 16:19, Krzysztof Kozlowski <krzk@kernel.org> wrote: > On Wed, Apr 15, 2026 at 09:13:40PM +0530, Vishwas Rajashekar wrote: > > Adds mount-matrix as an optional property to dt-bindings > > for the bmg160 gyroscope as the driver reads this optional > > property during probe. > > > > Signed-off-by: Vishwas Rajashekar <vishwas.dev@vrajashkr.com> > > --- > > 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. > > --- > > Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml > > index 3c6fe74af0b8..ea8689660adf 100644 > > --- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml > > +++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml > > @@ -22,6 +22,9 @@ properties: > > vdd-supply: true > > vddio-supply: true > > > > + mount-matrix: > > + description: an optional 3x3 mounting rotation matrix. > > + > > Extend also example, please. > > Best regards, > Krzysztof > > Thank you for the feedback! I've extended the existing example in v2. Regards, Vishwas
© 2016 - 2026 Red Hat, Inc.