summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Jirman <megous@megous.com>2019-04-01 13:56:12 +0200
committerMaxime Ripard <maxime.ripard@bootlin.com>2019-04-01 14:53:15 +0200
commit2efcca8ae68897a5b4c4994fc9ee4c7366e57e24 (patch)
tree737c6ff6864f0d01c438b71943abd18077f7ee21
parent261e1a6e4ae5f5bfe8ad8d44580b880da99b81eb (diff)
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>
-rw-r--r--arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
index 6aae70c89a1e..066d95a7cb78 100644
--- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
+++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts
@@ -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";