Skip to contentSkip to conversation

arm64: dts: imx8qxp-mek: Add i2c1 sensors

PATCH Applied Frank Li 4 participants 6 messages Oct 29, 2025 – Nov 16, 2025

Subsystems (4)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

cover arm64: dts: imx8qxp-mek: Add i2c1 sensors

update iio binding to remove interrupts from required list. update imx8qxp-mek to support all sensors under i2c1.

---
Frank Li (2):
dt-bindings: iio: imu: mpu6050: remove interrupts from required list
arm64: dts: imx8qxp-mek: Add sensors under i2c1 bus

 .../bindings/iio/imu/invensense,mpu6050.yaml       |  1 -
 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts      | 32 ++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)

---
base-commit: faae091652fd52f662e1fbc6b9d922b3d6e33641
change-id: 20251029-qxp_sensor-861ef25c4149

Best regards,
--
Frank Li <[email protected]>

author maintainer
#1 lore raw

PATCH 1/2 dt-bindings: iio: imu: mpu6050: remove interrupts from required list

Irq is optional signal to make sensor work. Not all boards connect this signals, so remove it from required list.

---
 Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 1 -
 1 file changed, 1 deletion(-)
Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml +0 -1
index 0bce71529e34c3040f1101069e2cf22d70c3fcaa..1af0855c33e671c92f6439e7c45ef15787a9f329 100644
@@ -86,7 +86,6 @@ unevaluatedProperties: false
 required:
   - compatible
   - reg
-  - interrupts
 
 examples:
   - |
Signature · 1 line
2.34.1
author maintainer
#4 lore raw

PATCH 2/2 arm64: dts: imx8qxp-mek: Add sensors under i2c1 bus

In reply to Frank Li

Add sensors under i2c1 bus.

---
 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 32 +++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +32 -0
index 7b033744554105de6dbc4366f21e3c90f1768deb..9a96018e6f0680ac503135726f4899aca121e7f6 100644
@@ -450,10 +450,36 @@ i2c@2 {
 			#size-cells = <0>;
 			reg = <2>;
 
+			accelerometer@1e {
+				compatible = "nxp,fxos8700";
+				reg = <0x1e>;
+			};
+
+			gyroscope@21 {
+				compatible = "nxp,fxas21002c";
+				reg = <0x21>;
+			};
+
 			pressure-sensor@60 {
 				compatible = "fsl,mpl3115";
 				reg = <0x60>;
 			};
+
+			/* Ref SCH-54536 */
+			pressure-sensor@77 {
+				compatible = "meas,ms5611";
+				reg = <0x77>;
+			};
+
+			inertial-meter@68 {
+				compatible = "invensense,icm20602";
+				reg = <0x68>;
+			};
+
+			inertial-meter@69 {
+				compatible = "invensense,iam20380";
+				reg = <0x69>;
+			};
 		};
 
 		i2c@3 {
@@ -483,6 +509,12 @@ light-sensor@44 {
 				interrupt-parent = <&lsio_gpio1>;
 				interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
 			};
+
+			/* Ref SCH-54536 */
+			light-sensort@60 {
+				compatible = "vishay,vcnl4035";
+				reg = <0x60>;
+			};
 		};
 	};
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: iio: imu: mpu6050: remove interrupts from required list

In reply to Frank Li
Quoted 7 lines · Frank Li

Irq is optional signal to make sensor work. Not all boards connect this signals, so remove it from required list.

---
 Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 1 -
 1 file changed, 1 deletion(-)

Best regards,
Krzysztof

maintainer Applied
#3 lore raw

Re: [PATCH 1/2] dt-bindings: iio: imu: mpu6050: remove interrupts from required list

Quoted 9 lines · On Thu, 30 Oct 2025 09:23:37 +0100 Krzysztof Kozlowski <[email protected]> wrote:
Quoted 7 lines · Frank Li

Irq is optional signal to make sensor work. Not all boards connect this signals, so remove it from required list.

---
 Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 1 -
 1 file changed, 1 deletion(-)  
Quoted 5 lines

Best regards,
Krzysztof

Applied. thanks,
J

#5 lore raw

Re: [PATCH 2/2] arm64: dts: imx8qxp-mek: Add sensors under i2c1 bus

In reply to Frank Li
Quoted 27 lines · Frank Li

Add sensors under i2c1 bus.

---
 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 32 +++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +10 -0
index 7b033744554105de6dbc4366f21e3c90f1768deb..9a96018e6f0680ac503135726f4899aca121e7f6 100644
@@ -450,10 +450,36 @@ i2c@2 {
 			#size-cells = <0>;
 			reg = <2>;
 
+			accelerometer@1e {
+				compatible = "nxp,fxos8700";
+				reg = <0x1e>;
+			};
+
+			gyroscope@21 {
+				compatible = "nxp,fxas21002c";
+				reg = <0x21>;
+			};
+
 			pressure-sensor@60 {
 				compatible = "fsl,mpl3115";

arch/arm64/boot/dts/freescale/imx8qxp-mek.dts i2c@2 { · line 474

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +8 -0
 				reg = <0x60>;
 			};
+
+			/* Ref SCH-54536 */
+			pressure-sensor@77 {
+				compatible = "meas,ms5611";
+				reg = <0x77>;
+			};
+
+			inertial-meter@68 {

Keep devices sorted in slave address.

Shawn

Quoted 28 lines
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +14 -0
+				compatible = "invensense,icm20602";
+				reg = <0x68>;
+			};
+
+			inertial-meter@69 {
+				compatible = "invensense,iam20380";
+				reg = <0x69>;
+			};
 		};
 
 		i2c@3 {
@@ -483,6 +509,12 @@ light-sensor@44 {
 				interrupt-parent = <&lsio_gpio1>;
 				interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
 			};
+
+			/* Ref SCH-54536 */
+			light-sensort@60 {
+				compatible = "vishay,vcnl4035";
+				reg = <0x60>;
+			};
 		};
 	};
 
Signature · 2 lines
-- 
2.34.1