[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250527215818.13000-1-rodrigo.gobbi.7@gmail.com>
Date: Tue, 27 May 2025 18:51:06 -0300
From: Rodrigo Gobbi <rodrigo.gobbi.7@...il.com>
To: linus.walleij@...aro.org,
jic23@...nel.org,
dlechner@...libre.com,
nuno.sa@...log.com,
andy@...nel.org,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org
Cc: ~lkcamp/patches@...ts.sr.ht,
linux-iio@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] dt-bindings: iio: gyro: invensense,mpu3050: change irq maxItems
The mpu3050 datasheet describes that this IC only supports one INT pin,
which means one item with two cells inside binding.
Change max to match this description.
Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@...il.com>
---
The mpu3050 supports only one INT pin as described at [1] at
"Pin Out and Signal Description" (pg 14), so maxItems could be 1 at max (one item with two cells).
Validated with dtbs_check/dt_binding_check and looks fine. There is a different case at [2],
which is using interrupts-extended but as far as I understand, it`s still max=1.
Tks and regards.
[1] https://invensense.tdk.com/wp-content/uploads/2015/02/PS-MPU-3050A-00-v2-7.pdf
[2] https://github.com/torvalds/linux/blob/015a99fa76650e7d6efa3e36f20c0f5b346fe9ce/arch/arm/boot/dts/qcom/qcom-apq8060-dragonboard.dts#L248
---
.../devicetree/bindings/iio/gyroscope/invensense,mpu3050.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/iio/gyroscope/invensense,mpu3050.yaml b/Documentation/devicetree/bindings/iio/gyroscope/invensense,mpu3050.yaml
index d1a6103fc37a..f3242dc0e7e6 100644
--- a/Documentation/devicetree/bindings/iio/gyroscope/invensense,mpu3050.yaml
+++ b/Documentation/devicetree/bindings/iio/gyroscope/invensense,mpu3050.yaml
@@ -21,7 +21,7 @@ properties:
vlogic-supply: true
interrupts:
- minItems: 1
+ maxItems: 1
description:
Interrupt mapping for the trigger interrupt from the internal oscillator.
--
2.49.0
Powered by blists - more mailing lists