From nobody Tue Jun 16 06:06:24 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EA0423D2A1; Thu, 16 Apr 2026 15:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776351840; cv=none; b=isneq3zpnavMz4Iz1qHmLcEq9T+YvXJf+m/tc2E+gsgZO6MJuYEAVIAuXgtwBrvrRu8OAM/NxAmIB0TAs+XonAS00VGr3+qmEoK6EHKAipvkcAhAX6CnmXonBCPGVvDc2WBs+RvKlWsav6IYjioHuJjZUd+lRY1n8jkBoJs7Egs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776351840; c=relaxed/simple; bh=TtxQ25ugjQqEn/0GVI+Kwju7HwWI+zLS6AZ8AAcaCNM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=dnB8Wsk9H0Uw/dWSoqnSAdCrnztjMIc6MN01NYeJcZBSD16+uu7TNzuloJL4JxOklV2pguto2dvuSy6iJKtR/msZ+7LqqidcwMkF4Xfm6m3iHaUDaG/htW/gF0EY8l0/TKMfbTo1/zjEqrh870w/11dN2Twl6M2Yn6iImME/6iI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FRT0JTKR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FRT0JTKR" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8E2BFC2BCAF; Thu, 16 Apr 2026 15:03:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776351839; bh=TtxQ25ugjQqEn/0GVI+Kwju7HwWI+zLS6AZ8AAcaCNM=; h=From:Date:Subject:To:Cc:Reply-To:From; b=FRT0JTKRNadIEGBabm2tdgUxGyWf5W/I+VW31i4HgsolOZxW71Ib9QtRAzjYC2BXw qmoJRIoqsLBxfR9SLHKpc5ecR/VwSuJpk5MatxRF+sjDwmJLrz3WhuXcdIRwdPg9Ya /QAfAoY9VsljVqw78rZivoE8QNyX3EAffBkQzVbmcdWR8jifCgKc4HX7bBHtJSl3dq E//KQgQDgNLVQq5lafyctBFSxA0b+ezjrcIOl7dyxwwnqS0CtnC8LbjCT6vdN+kvOJ PeYZXlb5zXi/1icaB5lRzMMU1yCYqJbvJxmGQbe2tc8FxRdVxEZffIBFq2+bR+Oadv sJ7xqLQbjuMIg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76CBCF8D758; Thu, 16 Apr 2026 15:03:59 +0000 (UTC) From: Vishwas Rajashekar via B4 Relay Date: Thu, 16 Apr 2026 20:33:21 +0530 Subject: [PATCH v2] dt-bindings: iio: gyroscope: add mount-matrix for bmg160 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260416-bmg160-mount-matrix-dt-binding-v2-1-e66cf5cff8e8@vrajashkr.com> X-B4-Tracking: v=1; b=H4sIADj64GkC/4WOwQ6CMBAFf4X07BralAqe/A/DodAVFkNr2tJgC P8uYDx7nGTy5i0soCcM7JotzGOiQM5uIE4Za3ttOwQyGzORC5VLLqEZO65yGN1kI4w6eprBRGj IGrId4EUZY7CSpVJsG3l5fNB8BO71l8PUDNjGfXU3egrR+ffxIPHd+8WKf7HEgUOOoi2LSklEd UteDzr0T39u3cjqdV0/YT6KAuIAAAA= X-Change-ID: 20260414-bmg160-mount-matrix-dt-binding-e76ddde94866 To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "H. Nikolaus Schaller" Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, luca@lucaweiss.eu, Vishwas Rajashekar X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776351838; l=2298; i=vishwas.dev@vrajashkr.com; s=20260414; h=from:subject:message-id; bh=qRb9CnV1TwnBxT50+KBIUXpmD3krYMm9jJ/eSLpyL4w=; b=3rJPFOLddnYeZ6nDRzDvfyekFvmCXMJ+FQJDwf7lncGsDgttqUVf5PNmHjbJoD146/VhjQ30t 38st+cWJm2TAvCvFCuWJ20gZkDyctIHZeP6ZzDUsQWs5adzDWRK6HrI X-Developer-Key: i=vishwas.dev@vrajashkr.com; a=ed25519; pk=OvZgoGVJ7ofrIn3w/YijdoJ0IexAy1kREY51mGZPm9M= X-Endpoint-Received: by B4 Relay for vishwas.dev@vrajashkr.com/20260414 with auth_id=734 X-Original-From: Vishwas Rajashekar Reply-To: vishwas.dev@vrajashkr.com From: Vishwas Rajashekar 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 --- 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 v2: - Addressed review feedback: add mount-matrix example for bmg160 - Link to v1: https://patch.msgid.link/20260415-bmg160-mount-matrix-dt-bind= ing-v1-1-0e2c85964ee6@vrajashkr.com To: Jonathan Cameron To: David Lechner To: Nuno S=C3=A1 To: Andy Shevchenko To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: "H. Nikolaus Schaller" Cc: linux-iio@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 6 ++++= ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.y= aml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml index 3c6fe74af0b8..ec97778cca78 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 =20 + mount-matrix: + description: an optional 3x3 mounting rotation matrix. + spi-max-frequency: maximum: 10000000 =20 @@ -52,6 +55,9 @@ examples: reg =3D <0x69>; interrupt-parent =3D <&gpio6>; interrupts =3D <18 IRQ_TYPE_EDGE_RISING>; + mount-matrix =3D "0", "1", "0", + "1", "0", "0", + "0", "0", "1"; }; }; ... --- base-commit: 591cd656a1bf5ea94a222af5ef2ee76df029c1d2 change-id: 20260414-bmg160-mount-matrix-dt-binding-e76ddde94866 Best regards, -- =20 Vishwas Rajashekar