Path: blob/master/Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Bosch BMA255 and Similar Accelerometers78maintainers:9- Linus Walleij <linus.walleij@linaro.org>10- Stephan Gerhold <stephan@gerhold.net>1112description:133 axis accelerometers with varying range and I2C or SPI144-wire interface.1516properties:17compatible:18enum:19# bmc150-accel driver in Linux20- bosch,bma22221- bosch,bma222e22- bosch,bma250e23- bosch,bma25324- bosch,bma25425- bosch,bma25526- bosch,bma28027- bosch,bmc150_accel28- bosch,bmc156_accel29- bosch,bmi055_accel3031# bma180 driver in Linux32- bosch,bma02333- bosch,bma15034- bosch,bma18035- bosch,bma25036- bosch,smb3803738reg:39maxItems: 14041vdd-supply: true42vddio-supply: true4344interrupts:45minItems: 146maxItems: 247description: |48Without interrupt-names, the first interrupt listed must be the one49connected to the INT1 pin, the second (optional) interrupt listed must be50the one connected to the INT2 pin (if available). The type should be51IRQ_TYPE_EDGE_RISING.5253BMC156 does not have an INT1 pin, therefore the first interrupt pin is54always treated as INT2.5556interrupt-names:57minItems: 158maxItems: 259items:60enum:61- INT162- INT26364mount-matrix:65description: an optional 3x3 mounting rotation matrix.6667spi-max-frequency:68maximum: 100000006970required:71- compatible72- reg7374allOf:75- $ref: /schemas/spi/spi-peripheral-props.yaml#7677unevaluatedProperties: false7879examples:80- |81#include <dt-bindings/interrupt-controller/irq.h>82i2c {83#address-cells = <1>;84#size-cells = <0>;85accelerometer@8 {86compatible = "bosch,bma222";87reg = <0x08>;88vddio-supply = <&vddio>;89vdd-supply = <&vdd>;90interrupts = <57 IRQ_TYPE_EDGE_RISING>;91interrupt-names = "INT1";92};93};94- |95#include <dt-bindings/interrupt-controller/irq.h>96i2c {97#address-cells = <1>;98#size-cells = <0>;99accelerometer@10 {100compatible = "bosch,bmc156_accel";101reg = <0x10>;102vddio-supply = <&vddio>;103vdd-supply = <&vdd>;104interrupts = <116 IRQ_TYPE_EDGE_RISING>;105interrupt-names = "INT2";106};107};108- |109# include <dt-bindings/interrupt-controller/irq.h>110spi {111#address-cells = <1>;112#size-cells = <0>;113accel@0 {114compatible = "bosch,bma222";115reg = <0>;116spi-max-frequency = <10000000>;117};118};119...120121122