mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-14 21:27:12 +07:00
![Linus Walleij](/assets/img/avatar_default.png)
This adds support for the BMA254 variant of this accelerometer. The only difference for the simple IIO driver is that values are 12 bit and the temperature offset differs by 1 degree. Whilst wildcards in naming are normally frowned upon: The cases where I have labeled variables "25x" is where the models are identical, so as to make things easier for people that want to add support for BMA253 and BMA255. Cc: Peter Meerwald <pmeerw@pmeerw.net> Cc: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com> Cc: devicetree@vger.kernel.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
30 lines
833 B
Plaintext
30 lines
833 B
Plaintext
* Bosch BMA180 / BMA25x triaxial acceleration sensor
|
|
|
|
http://omapworld.com/BMA180_111_1002839.pdf
|
|
http://ae-bst.resource.bosch.com/media/products/dokumente/bma250/bst-bma250-ds002-05.pdf
|
|
|
|
Required properties:
|
|
|
|
- compatible : should be one of:
|
|
"bosch,bma180"
|
|
"bosch,bma250"
|
|
"bosch,bma254"
|
|
- reg : the I2C address of the sensor
|
|
|
|
Optional properties:
|
|
|
|
- interrupts : interrupt mapping for GPIO IRQ, it should by configured with
|
|
flags IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING
|
|
For the bma250 the first interrupt listed must be the one
|
|
connected to the INT1 pin, the second (optional) interrupt
|
|
listed must be the one connected to the INT2 pin.
|
|
|
|
Example:
|
|
|
|
bma180@40 {
|
|
compatible = "bosch,bma180";
|
|
reg = <0x40>;
|
|
interrupt-parent = <&gpio6>;
|
|
interrupts = <18 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
|
|
};
|