ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer

A711 tablet has BMA250 accelerometer connected to I2C1 bus. Enable
both the I2C1 bus and add the accelerometer device to it.

Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
Ondrej Jirman 2019-04-01 13:56:12 +02:00 committed by Maxime Ripard
parent 261e1a6e4a
commit 2efcca8ae6
No known key found for this signature in database
GPG Key ID: E3EF0D6F671851C5
1 changed files with 12 additions and 0 deletions

View File

@ -156,6 +156,18 @@
status = "okay";
};
&i2c1 {
clock-frequency = <400000>;
status = "okay";
accelerometer@18 {
compatible = "bosch,bma250";
reg = <0x18>;
interrupt-parent = <&pio>;
interrupts = <7 10 IRQ_TYPE_EDGE_RISING>; /* PH10 / EINT10 */
};
};
&mmc0 {
vmmc-supply = <&reg_dcdc1>;
pinctrl-names = "default";