From nobody Wed Jan 22 07:45:22 2025
Received: from finn.localdomain (finn.gateworks.com [108.161.129.64])
	(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 3339A8821;
	Thu,  5 Sep 2024 18:31:19 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
 arc=none smtp.client-ip=108.161.129.64
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1725561081; cv=none;
 b=hXEgoiWHMuEY/aQEly3KKjbmwfihPVVLl5zdy1ArOOFOoKNBkQu7VVNdd66jZBd+ICYrCD1MbrHlYfoPFe1cFGXuCpEqGNf9laRsC81pVa8chvWIRxZ9HC+tlDrwbWuaS5O2Pa/gWWdwRAqZSj0vnnM/AFZg1drEkwr2mrguvXY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1725561081; c=relaxed/simple;
	bh=UuDB4ZmpHTuRa2ayUVzcn+2Sq5Jgmg+cZqaYQjpS2eY=;
	h=From:To:Cc:Subject:Date:Message-Id:MIME-Version;
 b=Y1e9ojk+JS+8dKbbqDUyJeTSn9q/du4nB5b5H5XlouFyOfsUG84A6rKHF14SasxOUxBCd+A2g1D4BDK7xEHT7UGgbvDhCXqRSIVqopDwbowM8/K0mdfVI6d3T9CaEOYUDOlP5rA+mNeuzAwDkkM0xZQ9Uyb9SqQyolRO21E4Qvo=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gateworks.com;
 spf=pass smtp.mailfrom=gateworks.com; arc=none smtp.client-ip=108.161.129.64
Authentication-Results: smtp.subspace.kernel.org;
 dmarc=pass (p=none dis=none) header.from=gateworks.com
Authentication-Results: smtp.subspace.kernel.org;
 spf=pass smtp.mailfrom=gateworks.com
Received: from syn-068-189-091-139.biz.spectrum.com ([68.189.91.139]
 helo=tharvey.pdc.gateworks.com)
	by finn.localdomain with esmtp (Exim 4.95)
	(envelope-from <tharvey@gateworks.com>)
	id 1smHGD-00DDvR-DN;
	Thu, 05 Sep 2024 18:31:13 +0000
From: Tim Harvey <tharvey@gateworks.com>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	devicetree@vger.kernel.org,
	imx@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Cc: Tim Harvey <tharvey@gateworks.com>
Subject: [PATCH] arm64: dts: imx8m*-venice-gw75xx: add Accelerometer device
Date: Thu,  5 Sep 2024 11:31:07 -0700
Message-Id: <20240905183107.517244-1-tharvey@gateworks.com>
X-Mailer: git-send-email 2.25.1
Precedence: bulk
X-Mailing-List: linux-kernel@vger.kernel.org
List-Id: <linux-kernel.vger.kernel.org>
List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org>
List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

The GW79xx has a LIS2DE12TR 3-axis accelerometer on the I2C bus with an
interrupt pin. Add it to the device-tree.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 .../boot/dts/freescale/imx8mm-venice-gw75xx.dtsi | 16 ++++++++++++++++
 .../boot/dts/freescale/imx8mp-venice-gw75xx.dtsi | 16 ++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw75xx.dtsi b/arch=
/arm64/boot/dts/freescale/imx8mm-venice-gw75xx.dtsi
index 5eb92005195c..417c19774b17 100644
--- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw75xx.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw75xx.dtsi
@@ -116,6 +116,16 @@ &i2c2 {
 	pinctrl-0 =3D <&pinctrl_i2c2>;
 	status =3D "okay";
=20
+	accelerometer@19 {
+		pinctrl-names =3D "default";
+		pinctrl-0 =3D <&pinctrl_accel>;
+		compatible =3D "st,lis2de12";
+		reg =3D <0x19>;
+		st,drdy-int-pin =3D <1>;
+		interrupt-parent =3D <&gpio5>;
+		interrupts =3D <8 IRQ_TYPE_LEVEL_LOW>;
+	};
+
 	eeprom@52 {
 		compatible =3D "atmel,24c32";
 		reg =3D <0x52>;
@@ -198,6 +208,12 @@ MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4		0x40000040 /* GPIOC */
 		>;
 	};
=20
+	pinctrl_accel: accelgrp {
+		fsl,pins =3D <
+			MX8MM_IOMUXC_ECSPI1_MISO_GPIO5_IO8	0x159
+		>;
+	};
+
 	pinctrl_gpio_leds: gpioledgrp {
 		fsl,pins =3D <
 			MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0	0x6	/* LEDG */
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw75xx.dtsi b/arch=
/arm64/boot/dts/freescale/imx8mp-venice-gw75xx.dtsi
index 0d40cb0f05f6..797d1168f4f2 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-venice-gw75xx.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp-venice-gw75xx.dtsi
@@ -104,6 +104,16 @@ &i2c2 {
 	pinctrl-0 =3D <&pinctrl_i2c2>;
 	status =3D "okay";
=20
+	accelerometer@19 {
+		pinctrl-names =3D "default";
+		pinctrl-0 =3D <&pinctrl_accel>;
+		compatible =3D "st,lis2de12";
+		reg =3D <0x19>;
+		st,drdy-int-pin =3D <1>;
+		interrupt-parent =3D <&gpio5>;
+		interrupts =3D <8 IRQ_TYPE_LEVEL_LOW>;
+	};
+
 	eeprom@52 {
 		compatible =3D "atmel,24c32";
 		reg =3D <0x52>;
@@ -204,6 +214,12 @@ MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28	0x40000106 /* PCI_W=
DIS# */
 		>;
 	};
=20
+	pinctrl_accel: accelgrp {
+		fsl,pins =3D <
+			MX8MP_IOMUXC_ECSPI1_MISO__GPIO5_IO08	0x159
+		>;
+	};
+
 	pinctrl_gpio_leds: gpioledgrp {
 		fsl,pins =3D <
 			MX8MP_IOMUXC_SAI2_RXC__GPIO4_IO22	0x6	/* LEDG */
--=20
2.25.1