]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i: tbs-a711: Add node for BMA250 accelerometer
authorOndrej Jirman <megous@megous.com>
Mon, 1 Apr 2019 11:56:12 +0000 (13:56 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 1 Apr 2019 12:53:15 +0000 (14:53 +0200)
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>
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

index 6aae70c89a1ed1593f0c1e862649ed76b9cc0c26..066d95a7cb7830999a0b2b36b102dabb0c8d84ca 100644 (file)
@@ -156,6 +156,18 @@ &ehci1 {
        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";