Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: accel: add dt-binding schema for msa311 accel driver

Introduce devicetree binding json-schema for MSA311 tri-axial,
low-g accelerometer driver.

Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220822175011.2886-5-ddrokosov@sberdevices.ru
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Dmitry Rokosov and committed by
Jonathan Cameron
4eba8239 1ca2cfbc

+54
+53
Documentation/devicetree/bindings/iio/accel/memsensing,msa311.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/iio/accel/memsensing,msa311.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: MEMSensing digital 3-Axis accelerometer 9 + 10 + maintainers: 11 + - Dmitry Rokosov <ddrokosov@sberdevices.ru> 12 + 13 + description: | 14 + MSA311 is a tri-axial, low-g accelerometer with I2C digital output for 15 + sensitivity consumer applications. It has dynamical user selectable full 16 + scales range of +-2g/+-4g/+-8g/+-16g and allows acceleration measurements 17 + with output data rates from 1Hz to 1000Hz. 18 + Datasheet can be found at following URL 19 + https://cdn-shop.adafruit.com/product-files/5309/MSA311-V1.1-ENG.pdf 20 + 21 + properties: 22 + compatible: 23 + const: memsensing,msa311 24 + 25 + reg: 26 + maxItems: 1 27 + 28 + interrupts: 29 + maxItems: 1 30 + 31 + vdd-supply: true 32 + 33 + required: 34 + - compatible 35 + - reg 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + #include <dt-bindings/interrupt-controller/irq.h> 42 + i2c { 43 + #address-cells = <1>; 44 + #size-cells = <0>; 45 + 46 + accelerometer@62 { 47 + compatible = "memsensing,msa311"; 48 + reg = <0x62>; 49 + interrupt-parent = <&gpio_intc>; 50 + interrupts = <29 IRQ_TYPE_EDGE_RISING>; 51 + vdd-supply = <&vcc_5v>; 52 + }; 53 + };
+1
MAINTAINERS
··· 13180 13180 M: Dmitry Rokosov <ddrokosov@sberdevices.ru> 13181 13181 L: linux-iio@vger.kernel.org 13182 13182 S: Maintained 13183 + F: Documentation/devicetree/bindings/iio/accel/memsensing,msa311.yaml 13183 13184 F: drivers/iio/accel/msa311.c 13184 13185 13185 13186 MEN A21 WATCHDOG DRIVER