From: Sebastian Reichel Date: Mon, 6 Mar 2017 04:11:57 +0000 (-0800) Subject: ARM: dts: omap4-droid4: Add compass X-Git-Tag: v4.12-rc1~56^2~27^2^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2913a69929b777af896f3343edd0dcde5ff700d;p=thirdparty%2Fkernel%2Flinux.git ARM: dts: omap4-droid4: Add compass Add compass. Signed-off-by: Sebastian Reichel Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts index ac3df1f99131c..31638598331ac 100644 --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts +++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts @@ -264,3 +264,20 @@ mode = <3>; power = <50>; }; + +&i2c4 { + ak8975: magnetometer@c { + compatible = "asahi-kasei,ak8975"; + reg = <0x0c>; + + vdd-supply = <&vhvio>; + + interrupt-parent = <&gpio6>; + interrupts = <15 IRQ_TYPE_EDGE_RISING>; /* gpio175 */ + + rotation-matrix = "-1", "0", "0", + "0", "1", "0", + "0", "0", "-1"; + + }; +};