17ef62cebSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 27ef62cebSEmmanuel Vadot%YAML 1.2 37ef62cebSEmmanuel Vadot--- 4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/iio/accel/memsensing,msa311.yaml# 5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 67ef62cebSEmmanuel Vadot 77ef62cebSEmmanuel Vadottitle: MEMSensing digital 3-Axis accelerometer 87ef62cebSEmmanuel Vadot 97ef62cebSEmmanuel Vadotmaintainers: 107ef62cebSEmmanuel Vadot - Dmitry Rokosov <ddrokosov@sberdevices.ru> 117ef62cebSEmmanuel Vadot 127ef62cebSEmmanuel Vadotdescription: | 137ef62cebSEmmanuel Vadot MSA311 is a tri-axial, low-g accelerometer with I2C digital output for 147ef62cebSEmmanuel Vadot sensitivity consumer applications. It has dynamical user selectable full 157ef62cebSEmmanuel Vadot scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurements 167ef62cebSEmmanuel Vadot with output data rates from 1Hz to 1000Hz. 177ef62cebSEmmanuel Vadot Datasheet can be found at following URL 187ef62cebSEmmanuel Vadot https://cdn-shop.adafruit.com/product-files/5309/MSA311-V1.1-ENG.pdf 197ef62cebSEmmanuel Vadot 207ef62cebSEmmanuel Vadotproperties: 217ef62cebSEmmanuel Vadot compatible: 227ef62cebSEmmanuel Vadot const: memsensing,msa311 237ef62cebSEmmanuel Vadot 247ef62cebSEmmanuel Vadot reg: 257ef62cebSEmmanuel Vadot maxItems: 1 267ef62cebSEmmanuel Vadot 277ef62cebSEmmanuel Vadot interrupts: 287ef62cebSEmmanuel Vadot maxItems: 1 297ef62cebSEmmanuel Vadot 307ef62cebSEmmanuel Vadot vdd-supply: true 317ef62cebSEmmanuel Vadot 327ef62cebSEmmanuel Vadotrequired: 337ef62cebSEmmanuel Vadot - compatible 347ef62cebSEmmanuel Vadot - reg 357ef62cebSEmmanuel Vadot 367ef62cebSEmmanuel VadotadditionalProperties: false 377ef62cebSEmmanuel Vadot 387ef62cebSEmmanuel Vadotexamples: 397ef62cebSEmmanuel Vadot - | 407ef62cebSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 417ef62cebSEmmanuel Vadot i2c { 427ef62cebSEmmanuel Vadot #address-cells = <1>; 437ef62cebSEmmanuel Vadot #size-cells = <0>; 447ef62cebSEmmanuel Vadot 457ef62cebSEmmanuel Vadot accelerometer@62 { 467ef62cebSEmmanuel Vadot compatible = "memsensing,msa311"; 477ef62cebSEmmanuel Vadot reg = <0x62>; 487ef62cebSEmmanuel Vadot interrupt-parent = <&gpio_intc>; 497ef62cebSEmmanuel Vadot interrupts = <29 IRQ_TYPE_EDGE_RISING>; 507ef62cebSEmmanuel Vadot vdd-supply = <&vcc_5v>; 517ef62cebSEmmanuel Vadot }; 527ef62cebSEmmanuel Vadot }; 53