[PATCH 04/32] ARM: shmobile: kzm9g-reference dts: Add ak8975 magnetometer node
Simon Horman
horms+renesas at verge.net.au
Wed Feb 25 22:21:01 PST 2015
From: Geert Uytterhoeven <geert+renesas at glider.be>
Add a DT node for the AK8975 magnetometer sensor, which is connected to
i2c0.
Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
Specify the device interrupt to avoid polling for end of conversion.
While at it rename the DT node to compass at c to describe the device's
function instead of its model.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas at ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
Signed-off-by: Simon Horman <horms+renesas at verge.net.au>
---
arch/arm/boot/dts/sh73a0-kzm9g-reference.dts | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
index 0134d53..873b415 100644
--- a/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
+++ b/arch/arm/boot/dts/sh73a0-kzm9g-reference.dts
@@ -189,6 +189,13 @@
&i2c0 {
status = "okay";
+ compass at c {
+ compatible = "asahi-kasei,ak8975";
+ reg = <0x0c>;
+ interrupt-parent = <&irqpin3>;
+ interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
+ };
+
ak4648: codec at 12 {
compatible = "asahi-kasei,ak4648";
reg = <0x12>;
--
2.1.4
More information about the linux-arm-kernel
mailing list