[PATCH 4/5] dt-bindings:bmi160: add "BOTH" int pin type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Martin Kelly <martin@xxxxxxxxxxxxxxxx>

The bindings currently allow for interrupts routing to INT1 or INT2, but
the hardware allows for routing to both, so add "BOTH" as an int pin entry.

Signed-off-by: Martin Kelly <martin@xxxxxxxxxxxxxxxx>
---
 Documentation/devicetree/bindings/iio/imu/bmi160.txt | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iio/imu/bmi160.txt b/Documentation/devicetree/bindings/iio/imu/bmi160.txt
index 1aec19997fb5..a56d377dabf3 100644
--- a/Documentation/devicetree/bindings/iio/imu/bmi160.txt
+++ b/Documentation/devicetree/bindings/iio/imu/bmi160.txt
@@ -11,7 +11,8 @@ Required properties:
 Optional properties:
  - interrupts : interrupt mapping for IRQ
  - interrupt-names : set to "INT1" if INT1 pin should be used as interrupt
-   input, set to "INT2" if INT2 pin should be used instead
+   input, set to "INT2" if INT2 pin should be used instead, set to "BOTH" if
+   both should be used.
 
 Examples:
 
@@ -33,3 +34,13 @@ bmi160@0 {
 	interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
 	interrupt-names = "INT2";
 };
+
+bmi160@0 {
+	compatible = "bosch,bmi160";
+	reg = <0>;
+	spi-max-frequency = <10000000>;
+
+	interrupt-parent = <&gpio2>;
+	interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;
+	interrupt-names = "BOTH";
+};
-- 
2.11.0




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux