[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250901194742.11599-2-petre.rodan@subdimension.ro>
Date: Mon, 1 Sep 2025 22:47:27 +0300
From: Petre Rodan <petre.rodan@...dimension.ro>
To: linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Petre Rodan <petre.rodan@...dimension.ro>,
Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>,
Rob Herring <robh@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>
Subject: [PATCH 01/10] dt-bindings: iio: accel: bosch,BMA220 improvements
- fix title typo
- add optional watchdog setting that recovers the sensor from a stuck-low
SDA condition
- set correct SPI phase and polarity
- interrupt on rising edge. the level-based interrupt that is being
replaced was not actually implemented in the driver.
This set of changes should not negatively affect existing users.
Signed-off-by: Petre Rodan <petre.rodan@...dimension.ro>
---
.../bindings/iio/accel/bosch,bma220.yaml | 20 +++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
index ec643de031a3..f71b2320b010 100644
--- a/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
+++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma220.yaml
@@ -4,7 +4,7 @@
$id: http://devicetree.org/schemas/iio/accel/bosch,bma220.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Bosch BMA220 Trixial Acceleration Sensor
+title: Bosch BMA220 Triaxial Acceleration Sensor
maintainers:
- Jonathan Cameron <Jonathan.Cameron@...wei.com>
@@ -20,6 +20,20 @@ properties:
interrupts:
maxItems: 1
+ bosch,watchdog:
+ description:
+ In order to prevent the built-in I2C slave to lock-up the I2C bus, a
+ watchdog timer is introduced. The WDT observes internal I2C signals and
+ resets the I2C interface if the bus is locked-up by the BMA220.
+ 0 - off
+ 1 - 1ms
+ 2 - 10ms
+ enum: [0, 1, 2]
+ $ref: /schemas/types.yaml#/definitions/uint32
+
+ spi-cpha: true
+ spi-cpol: true
+
vdda-supply: true
vddd-supply: true
vddio-supply: true
@@ -44,8 +58,10 @@ examples:
compatible = "bosch,bma220";
reg = <0>;
spi-max-frequency = <2500000>;
+ spi-cpol;
+ spi-cpha;
interrupt-parent = <&gpio0>;
- interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
+ interrupts = <0 IRQ_TYPE_EDGE_RISING>;
};
};
...
--
2.49.1
Powered by blists - more mailing lists