Hello Luca,
good catch, thanks for the patch!
Acked-by: Jean-Baptiste Maneyrol
From: Luca Weiss
Sent: Monday, April 8, 2024 18:34
To: ~postmarketos/upstream...@lists.sr.ht
<~postmarketos/upstream...@lists.sr.ht>; phone-de...@vger.kernel.org
; Jonathan Cameron ; Lars-Peter
Clausen ; Rob Herring ; Krzysztof Kozlowski
; Conor Dooley ; Jean-Baptiste
Maneyrol
Cc: linux-...@vger.kernel.org ;
devicet...@vger.kernel.org ;
linux-kernel@vger.kernel.org ; Luca Weiss
Subject: [PATCH] dt-bindings: iio: imu: mpu6050: Improve i2c-gate disallow list
This Message Is From an Untrusted Sender
You have not previously corresponded with this sender.
Before all supported sensors except for MPU{9150,9250,9255} were not
allowed to use i2c-gate in the bindings which excluded quite a few
supported sensors where this functionality is supported.
Switch the list of sensors to ones where the Linux driver explicitly
disallows support for the auxiliary bus ("inv_mpu_i2c_aux_bus"). Since
the driver is also based on "default: return true" this should scale
better into the future.
Signed-off-by: Luca Weiss
---
This fixes dt validation error on qcom-msm8974-lge-nexus5-hammerhead
which uses mpu6515
arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dtb: mpu6515@68:
i2c-gate: False schema does not allow {'#address-cells': [[1]], '#size-cells':
[[0]], 'ak8963@f': {'compatible': ['asahi-kasei,ak8963'], 'reg': [[15]],
'gpios': [[40, 67, 0]], 'vid-supply': [[50]], 'vdd-supply': [[49]]},
'bmp280@76': {'compatible': ['bosch,bmp280'], 'reg': [[118]], 'vdda-supply':
[[50]], 'vddd-supply': [[49]]}}
from schema $id:
https://urldefense.com/v3/__http://devicetree.org/schemas/iio/imu/invensense,mpu6050.yaml*__;Iw!!FtrhtPsWDhZ6tw!Athn1pwCL_LPpZ97exHEFSkirApIqFF2ISY01IuyHtFBxpbPkcPWh_FmzB_TiCzb8uv1HO0AHY4IeIlv1-o$[devicetree[.]org]
---
.../devicetree/bindings/iio/imu/invensense,mpu6050.yaml | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml
b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml
index 297b8a1a7ffb..587ff2bced2d 100644
--- a/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml
+++ b/Documentation/devicetree/bindings/iio/imu/invensense,mpu6050.yaml
@@ -62,14 +62,15 @@ properties:
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
- if:
- not:
-properties:
- compatible:
-contains:
- enum:
-- invensense,mpu9150
-- invensense,mpu9250
-- invensense,mpu9255
+ properties:
+compatible:
+ contains:
+enum:
+ - invensense,iam20680
+ - invensense,icm20602
+ - invensense,icm20608
+ - invensense,icm20609
+ - invensense,icm20689
then:
properties:
i2c-gate: false
---
base-commit: 8568bb2ccc278f344e6ac44af6ed010a90aa88dc
change-id: 20240408-mpu6050-i2c-gate-4ea473e492f4
Best regards,
--
Luca Weiss