mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
31b47ae3f1
The bma180 / bma250 accelerometers share a driver (at least under Linux), so it makes sense to also have their bindings info in a single .txt. This commit extends the bma180 bindings with bma250 bindings, specifically it specifies how the 2 seperate interrupts the bma250 has must be listed in devicetree. The existing bma180 driver is already fully compatible with the specified bindings. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Rob Herring <robh@kernel.org>
29 lines
876 B
Plaintext
29 lines
876 B
Plaintext
* Bosch BMA180 / BMA250 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 "bosch,bma180" or "bosch,bma250"
|
|
- reg : the I2C address of the sensor
|
|
|
|
Optional properties:
|
|
|
|
- interrupt-parent : should be the phandle for the interrupt controller
|
|
|
|
- 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)>;
|
|
};
|