From patchwork Thu Mar 9 20:46:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kepplinger X-Patchwork-Id: 13168321 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F28FC61DA4 for ; Thu, 9 Mar 2023 20:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0pvWNcI7xrNh054ks8a/Uy9IzmK5RKdxRGB2BkvrDUA=; b=tXfrYqt6vZDaEV KThuPVC7KgIgB1ROK/vIt783Sgak5Ivv6wMB8bohjT9N/MNUGQdek1yASNyXhU9ODMiJ8LjXMF7kk C4nrhU+inKzRJtSt2B1iQxrP1sj6r9zASKCZXdNf2wKkVHp56zYfwfVofa9hJNQfWfWuKndIAk80J Eik4DeEFEjb2kVs+BVVLC0o2VlrCeKpdVkuO+6oCuE4VPr6aB3EBi7eHcWKzp5QRlVMbVdpIYKJzk 32pR6DdWEKS75ZuIk6haKnHwCGX/nx1av9qMCu8Xa9YXFx+7lEq7nzdnf2LyqWFKsu1w6g7Y8wteJ Dv2oVMf3FkPOmsU0YkGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNCa-00Bpr3-53; Thu, 09 Mar 2023 20:49:28 +0000 Received: from comms.puri.sm ([159.203.221.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paNAc-00Boh2-Ow for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 20:47:28 +0000 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 80729E9B6B; Thu, 9 Mar 2023 12:46:56 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xbgwhex5rcyU; Thu, 9 Mar 2023 12:46:55 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1678394815; bh=NXsv4ig7pDrayBOyT1swTYNEvnq1e/X07EvKNWu6JMg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IdHzzUznf4Y+UMUd7Z4JmuSX5U04Xr25UBzktwlw3bRvj94HrcJrDuHZ8ZF5q3e/W /lB4N72Wjok1qupn3TZu1pNvZGEgobbeQ4w7+nna/UVUAl75R8PuiMaAWhV3TXTOyI LK1n2bKpEQgCtblIYUiWgrHT+tPkTrRhe5Bi22u994KZd8iRpe9aGqfHWOpSzxlnQU 6AU7BDv7GeF6xWs0/e4KmRUJ3LbFXgxqskFCKaB5eda0WuJ+e4DM8H5oozRqkh6XyI xDJGziyTn3vJbgp6KbpbudMst1DWBVsc67aSsVganM8v+gPXyYqzSn/+3kPOl73qWv xGl+wMhZfx4cw== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: kernel@puri.sm, linux-imx@nxp.com, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Angus Ainslie , Martin Kepplinger Subject: [PATCH v1 08/14] arm64: dts: imx8mq-librem5: add the magnetometer mount matrix Date: Thu, 9 Mar 2023 21:46:02 +0100 Message-Id: <20230309204608.237605-9-martin.kepplinger@puri.sm> In-Reply-To: <20230309204608.237605-1-martin.kepplinger@puri.sm> References: <20230309204608.237605-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_124726_863772_9173D473 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Angus Ainslie Userland needs the mount matrix to know the correct orientation of the part. Signed-off-by: Angus Ainslie Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi | 6 ++++++ arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi index c1279e96effd7..db81ed699de75 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-r3.dtsi @@ -38,6 +38,12 @@ MX8MQ_IOMUXC_SPDIF_RX_GPIO5_IO4 0x83 }; }; +&magnetometer { + mount-matrix = "1", "0", "0", + "0", "-1", "0", + "0", "0", "-1"; +}; + &proximity { proximity-near-level = <25>; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi index eaf35cff2f8a6..7e470135b86a4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -981,7 +981,7 @@ &i2c2 { pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; - magnetometer@1e { + magnetometer: magnetometer@1e { compatible = "st,lsm9ds1-magn"; reg = <0x1e>; pinctrl-names = "default";