Path: blob/master/Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml
26309 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,bma400.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Bosch BMA400 triaxial acceleration sensor78maintainers:9- Dan Robertson <dan@dlrobertson.com>1011description: |12Acceleration and temperature iio sensors with an i2c interface1314Specifications about the sensor can be found at:15https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMA400-DS000.pdf1617properties:18compatible:19enum:20- bosch,bma4002122reg:23maxItems: 12425vdd-supply:26description: phandle to the regulator that provides power to the accelerometer2728vddio-supply:29description: phandle to the regulator that provides power to the sensor's IO3031interrupts:32maxItems: 13334required:35- compatible36- reg3738additionalProperties: false3940examples:41- |42#include <dt-bindings/gpio/gpio.h>43#include <dt-bindings/interrupt-controller/irq.h>44i2c {45#address-cells = <1>;46#size-cells = <0>;47accelerometer@14 {48compatible = "bosch,bma400";49reg = <0x14>;50vdd-supply = <&vdd>;51vddio-supply = <&vddio>;52interrupt-parent = <&gpio0>;53interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;54};55};565758