1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*c66ec88fSEmmanuel Vadot%YAML 1.2 3*c66ec88fSEmmanuel Vadot--- 4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/bosch,bma400.yaml# 5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*c66ec88fSEmmanuel Vadot 7*c66ec88fSEmmanuel Vadottitle: Bosch BMA400 triaxial acceleration sensor 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadotmaintainers: 10*c66ec88fSEmmanuel Vadot - Dan Robertson <dan@dlrobertson.com> 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadotdescription: | 13*c66ec88fSEmmanuel Vadot Acceleration and temperature iio sensors with an i2c interface 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel Vadot Specifications about the sensor can be found at: 16*c66ec88fSEmmanuel Vadot https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMA400-DS000.pdf 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel Vadotproperties: 19*c66ec88fSEmmanuel Vadot compatible: 20*c66ec88fSEmmanuel Vadot enum: 21*c66ec88fSEmmanuel Vadot - bosch,bma400 22*c66ec88fSEmmanuel Vadot 23*c66ec88fSEmmanuel Vadot reg: 24*c66ec88fSEmmanuel Vadot maxItems: 1 25*c66ec88fSEmmanuel Vadot 26*c66ec88fSEmmanuel Vadot vdd-supply: 27*c66ec88fSEmmanuel Vadot description: phandle to the regulator that provides power to the accelerometer 28*c66ec88fSEmmanuel Vadot 29*c66ec88fSEmmanuel Vadot vddio-supply: 30*c66ec88fSEmmanuel Vadot description: phandle to the regulator that provides power to the sensor's IO 31*c66ec88fSEmmanuel Vadot 32*c66ec88fSEmmanuel Vadot interrupts: 33*c66ec88fSEmmanuel Vadot maxItems: 1 34*c66ec88fSEmmanuel Vadot 35*c66ec88fSEmmanuel Vadotrequired: 36*c66ec88fSEmmanuel Vadot - compatible 37*c66ec88fSEmmanuel Vadot - reg 38*c66ec88fSEmmanuel Vadot 39*c66ec88fSEmmanuel VadotadditionalProperties: false 40*c66ec88fSEmmanuel Vadot 41*c66ec88fSEmmanuel Vadotexamples: 42*c66ec88fSEmmanuel Vadot - | 43*c66ec88fSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 44*c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 45*c66ec88fSEmmanuel Vadot i2c { 46*c66ec88fSEmmanuel Vadot #address-cells = <1>; 47*c66ec88fSEmmanuel Vadot #size-cells = <0>; 48*c66ec88fSEmmanuel Vadot accelerometer@14 { 49*c66ec88fSEmmanuel Vadot compatible = "bosch,bma400"; 50*c66ec88fSEmmanuel Vadot reg = <0x14>; 51*c66ec88fSEmmanuel Vadot vdd-supply = <&vdd>; 52*c66ec88fSEmmanuel Vadot vddio-supply = <&vddio>; 53*c66ec88fSEmmanuel Vadot interrupt-parent = <&gpio0>; 54*c66ec88fSEmmanuel Vadot interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; 55*c66ec88fSEmmanuel Vadot }; 56*c66ec88fSEmmanuel Vadot }; 57