From patchwork Fri Jul 21 10:34:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger-Novakovic X-Patchwork-Id: 13321840 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20FE1EB64DD for ; Fri, 21 Jul 2023 10:34:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231680AbjGUKep (ORCPT ); Fri, 21 Jul 2023 06:34:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231769AbjGUKel (ORCPT ); Fri, 21 Jul 2023 06:34:41 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D739A171A for ; Fri, 21 Jul 2023 03:34:21 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id AD75324002B for ; Fri, 21 Jul 2023 12:34:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1689935659; bh=5JyKFsQ3m9P01NmFD5cVB++r4nIwJ3PYJrEqIYXI+oQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=eFskrmPWSAyVMaSCGxMmForiq7RD7ol3t7IKKDPtV9F9xV2kJZscoq+hRswJp5K3R k6+dxp2nvdfZvw7m7+/oOxQ4dzYUJbt6ITbfMuhOuKGb8FXCBifjXvVHimTTnDv0Jw GGFu5b0yYODUqPzOdP7zvxBcUcx2Ujh3xCCHX9Ap1liEE3xC0eNFZdSX27YouSlf1c XGjlLvzLcPxT/XCfpXn4OIaGxRJQX5T7/XPORqxFK32XOyHttrDCwa33FGIQOrm4sK dPkVcC6FggAfRwdP99r/PyK+Dh59HpB+b//gYSRiYdGSByVEn5HSTxuIbVZXk+4Q0X fyh82KDDvF5ew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R6mBd5v4tz6ty5; Fri, 21 Jul 2023 12:34:17 +0200 (CEST) From: Martin Kepplinger To: lorenzo@kernel.org, jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: kernel@puri.sm, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH] dt-bindings: iio: imu: st,lsm6dsx: add mount-matrix property Date: Fri, 21 Jul 2023 10:34:10 +0000 Message-Id: <20230721103410.575555-1-martink@posteo.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add the mount-matrix optional property to the binding since it's supported and very useful when using the chip on a board. Signed-off-by: Martin Kepplinger --- Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml index b39f5217d8ff..443dce326c5e 100644 --- a/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml +++ b/Documentation/devicetree/bindings/iio/imu/st,lsm6dsx.yaml @@ -93,6 +93,9 @@ properties: wakeup-source: $ref: /schemas/types.yaml#/definitions/flag + mount-matrix: + description: an optional 3x3 mounting rotation matrix + required: - compatible - reg @@ -114,6 +117,9 @@ examples: reg = <0x6b>; interrupt-parent = <&gpio0>; interrupts = <0 IRQ_TYPE_EDGE_RISING>; + mount-matrix = "1", "0", "0", + "0", "1", "0", + "0", "0", "-1"; }; }; ...