Unverified Commit 2efcca8a authored by Ondrej Jirman's avatar Ondrej Jirman Committed by Maxime Ripard
Browse files

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: default avatarOndrej Jirman <megous@megous.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
parent 261e1a6e
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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";