Skip to contentSkip to conversation

arm64: dts: imx93: add lpi2c1 and st lsm6dso node

PATCH Superseded Frank Li 2 participants 2 messages Aug 5, 2024 – Aug 8, 2024

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/1 arm64: dts: imx93: add lpi2c1 and st lsm6dso node

From: Clark Wang <[email protected]>

The i.MX93 11x11 EVK has a ST LSM6DSO connected to I2C, which a is 6-axis IMU (inertial measurement unit = accelerometer & gyroscope). So add the missing parts to the DTS file.

---
Change from v1 to v2
- update commit message.
- use common node name.

---
 .../boot/dts/freescale/imx93-11x11-evk.dts    | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +21 -0
index 2597c5b2eacb4..23c96a418682d 100644
@@ -145,6 +145,20 @@ ethphy2: ethernet-phy@2 {
 	};
 };
 
+&lpi2c1 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_lpi2c1>;
+	status = "okay";
+
+	inertial-meter@6a {
+		compatible = "st,lsm6dso";
+		reg = <0x6a>;
+	};
+};
+
 &lpi2c2 {
 	clock-frequency = <400000>;
 	pinctrl-names = "default", "sleep";
@@ -504,6 +518,13 @@ MX93_PAD_DAP_TCLK_SWCLK__LPUART5_CTS_B		0x31e
 		>;
 	};
 
+	pinctrl_lpi2c1: lpi2c1grp {
+		fsl,pins = <
+			MX93_PAD_I2C1_SCL__LPI2C1_SCL			0x40000b9e
+			MX93_PAD_I2C1_SDA__LPI2C1_SDA			0x40000b9e
+		>;
+	};
+
 	pinctrl_lpi2c2: lpi2c2grp {
 		fsl,pins = <
 			MX93_PAD_I2C2_SCL__LPI2C2_SCL			0x40000b9e
Signature · 1 line
2.34.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 29 lines

Subject: [PATCH v2 1/1] arm64: dts: imx93: add lpi2c1 and st lsm6dso node

From: Clark Wang <[email protected]>

The i.MX93 11x11 EVK has a ST LSM6DSO connected to I2C, which a is 6-axis IMU (inertial measurement unit = accelerometer & gyroscope). So add the missing parts to the DTS file.

---
Change from v1 to v2
- update commit message.
- use common node name.

---
 .../boot/dts/freescale/imx93-11x11-evk.dts    | 21
+++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +0 -0
index 2597c5b2eacb4..23c96a418682d 100644

arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts ethphy2: ethernet-phy@2 { · line 150

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +3 -0
@@ -145,6 +145,20 @@ ethphy2: ethernet-phy@2 {
 	};
 };
 
+&lpi2c1 {
+	#address-cells = <1>;
+	#size-cells = <0>;

Duplicated property with imx93.dtsi. Other that this:

Regards,
Peng.