Path: blob/main/sys/contrib/device-tree/Bindings/iio/accel/bosch,bma180.yaml
48523 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/accel/bosch,bma180.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Bosch BMA023 / BMA150/ BMA180 / BMA250 / SMB380 triaxial accelerometers78maintainers:9- Jonathan Cameron <jic23@kernel.org>1011description: |12https://media.digikey.com/pdf/Data%20Sheets/Bosch/BMA150.pdf13http://omapworld.com/BMA180_111_1002839.pdf14http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf1516properties:17compatible:18enum:19- bosch,bma02320- bosch,bma15021- bosch,bma18022- bosch,bma25023- bosch,smb3802425reg:26maxItems: 12728vdd-supply: true2930vddio-supply: true3132interrupts:33minItems: 134maxItems: 235description: |36Type should be either IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_EDGE_RISING.37For the bma250 the first interrupt listed must be the one38connected to the INT1 pin, the second (optional) interrupt39listed must be the one connected to the INT2 pin.4041required:42- compatible43- reg4445additionalProperties: false4647examples:48- |49#include <dt-bindings/interrupt-controller/irq.h>50i2c {51#address-cells = <1>;52#size-cells = <0>;53accel@40 {54compatible = "bosch,bma180";55reg = <0x40>;56interrupt-parent = <&gpio6>;57interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;58};59};60...616263