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.

iio: accel: bmc150-accel: Add DT bindings

These accelerometers have bindings used in the kernel and
several device trees but no proper bindings documentation.
Add it.

Also add a compatible for the BMA222 that I am right now
adding support for in the driver.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: devicetree@vger.kernel.org
Link: https://lore.kernel.org/r/20201115205745.618455-1-linus.walleij@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Linus Walleij and committed by
Jonathan Cameron
6259551c 0fb6ee8d

+73
+73
Documentation/devicetree/bindings/iio/accel/bosch,bma255.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/accel/bosch,bma255.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Bosch BMA255 and Similar Accelerometers 8 + 9 + maintainers: 10 + - Linus Walleij <linus.walleij@linaro.org> 11 + 12 + description: 13 + 3 axis accelerometers with varying range and I2C or SPI 14 + 4-wire interface. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - bosch,bmc150 20 + - bosch,bmi055 21 + - bosch,bma255 22 + - bosch,bma250e 23 + - bosch,bma222 24 + - bosch,bma222e 25 + - bosch,bma280 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + vdd-supply: true 31 + vddio-supply: true 32 + 33 + interrupts: 34 + maxItems: 1 35 + 36 + mount-matrix: 37 + description: an optional 3x3 mounting rotation matrix. 38 + 39 + spi-max-frequency: 40 + maximum: 10000000 41 + 42 + required: 43 + - compatible 44 + - reg 45 + 46 + additionalProperties: false 47 + 48 + examples: 49 + - | 50 + #include <dt-bindings/interrupt-controller/irq.h> 51 + i2c { 52 + #address-cells = <1>; 53 + #size-cells = <0>; 54 + accelerometer@8 { 55 + compatible = "bosch,bma222"; 56 + reg = <0x08>; 57 + vddio-supply = <&vddio>; 58 + vdd-supply = <&vdd>; 59 + interrupts = <57 IRQ_TYPE_EDGE_FALLING>; 60 + }; 61 + }; 62 + - | 63 + # include <dt-bindings/interrupt-controller/irq.h> 64 + spi { 65 + #address-cells = <1>; 66 + #size-cells = <0>; 67 + accel@0 { 68 + compatible = "bosch,bma222"; 69 + reg = <0>; 70 + spi-max-frequency = <10000000>; 71 + }; 72 + }; 73 + ...