summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio
diff options
context:
space:
mode:
authorStephan Gerhold <stephan@gerhold.net>2021-08-02 17:56:55 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-08-08 16:48:30 +0100
commit02104141f3fa08c0b8d3924e0db4744212ed5b9a (patch)
tree145d909002ac5145158e43da996a72ad5c59018d /Documentation/devicetree/bindings/iio
parent84c31a0466c12110af72d56c1dcc40759e848c55 (diff)
dt-bindings: iio: accel: bma255: Add bosch,bmc156_accel
BMC156 is very smilar to BMC150, but it has only one accelerometer interrupt pin. It would make sense if only INT1 was exposed but someone at Bosch decided to only have an INT2 pin. In this case, it does not make sense if the first interrupt pin is treated as INT1 (since that pin does not exist). Add a note to the bindings that the first interrupt pin is treated as INT2 for BMC156. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Stephan Gerhold <stephan@gerhold.net> Link: https://lore.kernel.org/r/20210802155657.102766-3-stephan@gerhold.net Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation/devicetree/bindings/iio')
-rw-r--r--Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
index 253b2051d0b1..478e75ae0885 100644
--- a/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
+++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
@@ -26,6 +26,7 @@ properties:
- bosch,bma255
- bosch,bma280
- bosch,bmc150_accel
+ - bosch,bmc156_accel
- bosch,bmi055_accel
# bma180 driver in Linux
@@ -50,6 +51,9 @@ properties:
the one connected to the INT2 pin (if available). The type should be
IRQ_TYPE_EDGE_RISING.
+ BMC156 does not have an INT1 pin, therefore the first interrupt pin is
+ always treated as INT2.
+
interrupt-names:
minItems: 1
maxItems: 2
@@ -86,6 +90,20 @@ examples:
};
};
- |
+ #include <dt-bindings/interrupt-controller/irq.h>
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ accelerometer@10 {
+ compatible = "bosch,bmc156_accel";
+ reg = <0x10>;
+ vddio-supply = <&vddio>;
+ vdd-supply = <&vdd>;
+ interrupts = <116 IRQ_TYPE_EDGE_RISING>;
+ interrupt-names = "INT2";
+ };
+ };
+ - |
# include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;