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 X-Patchwork-Id: 123811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp143337vqg; Fri, 21 Jul 2023 04:45:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlGXr7ouhQqbg7LbLBdbm/qq+8YfMNMcUbnS6zQAt+CVEuaqbjS9I+PVyiGzL0FnUceS/yr+ X-Received: by 2002:a17:907:7791:b0:992:ef60:aae0 with SMTP id ky17-20020a170907779100b00992ef60aae0mr1483556ejc.54.1689939900315; Fri, 21 Jul 2023 04:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689939900; cv=none; d=google.com; s=arc-20160816; b=mhXF9T60wxi9ihQtwiR8A84U/MJFQDcbPeVSneJdEgJKdBWITcHhXRChTSoX9BemvO tjoU1XLp8BhBytgJ7Wr7esh/PgY67QKxDOVcDIoC1QbtG5jUSrFdE4wDT+oRjvsCeR2P NDqwOFlocY0IpHkaAILPr+N+6E91Rax38h7Gjw46r15ALsfrhdRFk79L4fIbkI0yGOXp wg1sTcrV+sA98L3148EazXcXFUVCCCBB00htHvG6S2/1nxvoVeeErlbg6JOXnz9YYmFF MHmbs7LPM2SSSe5MgS9R8cnmDpwzEZtK0AXcEJcxw+XBUO8k4Rz3wBqmdU27DhbZXD+6 5CYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=M+e02pcRYPH06362d2H/ZJVi2ksGI5i65r88fdeoDtw=; fh=N8rwtxOletFHhLl2nYG/25C0CIMsgSR3BxYlbn72HWU=; b=U83J4PTzTyyowN3Mmft+HlMw6OrVs+FUz6E9U3TO+PwbH9oPjmVcCQQ2gOInKtQbIk iV15m6gnZ+qh5DwCACsVGaPN4f4fL49jfwLNthbUq5/bFNfwcIsO/1n52UD8oChve8hO RIWWUkV37Q8DBXMOMc/TX2vzqGOO56RoyrF9yXk635JJJKajNGz/oXed9kQu6/+VpNjh 1kR2e8wGkdESwVaIWCJcD8SNTnUzQqPpBTY6Q4zAjAjrNV84PvOCQBkXr0PVtRc7xD6d xN4C8S6ZSSFsOiz2YkultxvyT9q0yLBwWoclKHhfQj//a1h5qpTM2AOzPHRHXlKrYqAX IFIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=eFskrmPW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f25-20020a170906391900b0098eb8b70f32si2065921eje.213.2023.07.21.04.44.33; Fri, 21 Jul 2023 04:45:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.de header.s=2017 header.b=eFskrmPW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231415AbjGUKeq (ORCPT + 99 others); Fri, 21 Jul 2023 06:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231771AbjGUKel (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 10B3A171B 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 B182824002D 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772030420866757503 X-GMAIL-MSGID: 1772030420866757503 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"; }; }; ...