Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56b7271c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Simon Horman
Browse files

ARM: shmobile: kzm9g-reference dts: Add ak8975 magnetometer node



Add a DT node for the AK8975 magnetometer sensor, which is connected to
i2c0.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>

Specify the device interrupt to avoid polling for end of conversion.

While at it rename the DT node to compass@c to describe the device's
function instead of its model.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 5c9e2760
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -189,6 +189,13 @@
&i2c0 {
&i2c0 {
	status = "okay";
	status = "okay";


	compass@c {
		compatible = "asahi-kasei,ak8975";
		reg = <0x0c>;
		interrupt-parent = <&irqpin3>;
		interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
	};

	ak4648: codec@12 {
	ak4648: codec@12 {
		compatible = "asahi-kasei,ak4648";
		compatible = "asahi-kasei,ak4648";
		reg = <0x12>;
		reg = <0x12>;