xref: /freebsd/sys/contrib/device-tree/Bindings/iio/accel/bosch,bma180.yaml (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/bosch,bma180.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
7*5956d97fSEmmanuel Vadottitle: Bosch BMA023 / BMA150/ BMA180 / BMA250 / SMB380 triaxial accelerometers
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Jonathan Cameron <jic23@kernel.org>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotdescription: |
135def4c47SEmmanuel Vadot  https://media.digikey.com/pdf/Data%20Sheets/Bosch/BMA150.pdf
145def4c47SEmmanuel Vadot  http://omapworld.com/BMA180_111_1002839.pdf
155def4c47SEmmanuel Vadot  http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf
165def4c47SEmmanuel Vadot
175def4c47SEmmanuel Vadotproperties:
185def4c47SEmmanuel Vadot  compatible:
195def4c47SEmmanuel Vadot    enum:
205def4c47SEmmanuel Vadot      - bosch,bma023
215def4c47SEmmanuel Vadot      - bosch,bma150
225def4c47SEmmanuel Vadot      - bosch,bma180
235def4c47SEmmanuel Vadot      - bosch,bma250
245def4c47SEmmanuel Vadot      - bosch,smb380
255def4c47SEmmanuel Vadot
265def4c47SEmmanuel Vadot  reg:
275def4c47SEmmanuel Vadot    maxItems: 1
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot  vdd-supply: true
305def4c47SEmmanuel Vadot
315def4c47SEmmanuel Vadot  vddio-supply: true
325def4c47SEmmanuel Vadot
335def4c47SEmmanuel Vadot  interrupts:
345def4c47SEmmanuel Vadot    minItems: 1
355def4c47SEmmanuel Vadot    maxItems: 2
365def4c47SEmmanuel Vadot    description: |
375def4c47SEmmanuel Vadot      Type should be either IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_EDGE_RISING.
385def4c47SEmmanuel Vadot      For the bma250 the first interrupt listed must be the one
395def4c47SEmmanuel Vadot      connected to the INT1 pin, the second (optional) interrupt
405def4c47SEmmanuel Vadot      listed must be the one connected to the INT2 pin.
415def4c47SEmmanuel Vadot
425def4c47SEmmanuel Vadotrequired:
435def4c47SEmmanuel Vadot  - compatible
445def4c47SEmmanuel Vadot  - reg
455def4c47SEmmanuel Vadot
465def4c47SEmmanuel VadotadditionalProperties: false
475def4c47SEmmanuel Vadot
485def4c47SEmmanuel Vadotexamples:
495def4c47SEmmanuel Vadot  - |
505def4c47SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
515def4c47SEmmanuel Vadot    i2c {
525def4c47SEmmanuel Vadot        #address-cells = <1>;
535def4c47SEmmanuel Vadot        #size-cells = <0>;
545def4c47SEmmanuel Vadot        accel@40 {
555def4c47SEmmanuel Vadot            compatible = "bosch,bma180";
565def4c47SEmmanuel Vadot            reg = <0x40>;
575def4c47SEmmanuel Vadot            interrupt-parent = <&gpio6>;
585def4c47SEmmanuel Vadot            interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
595def4c47SEmmanuel Vadot        };
605def4c47SEmmanuel Vadot    };
615def4c47SEmmanuel Vadot...
62