Message ID | 1469454895-13659-1-git-send-email-linus.walleij@linaro.org |
---|---|
State | Accepted |
Commit | bcdf177d046c13db727c80ac9023b916dd878f8f |
Headers | show |
On Mon, Jul 25, 2016 at 3:54 PM, Linus Walleij <linus.walleij@linaro.org> wrote: > This adds device tree bindings for the AK8974 magnetometer, similar > to those for the AK8975. > > Cc: devicetree@vger.kernel.org > Cc: Samu Onkalo <samu.onkalo@intel.com> > Cc: Sebastian Reichel <sre@kernel.org> > Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net> > Acked-by: Rob Herring <robh@kernel.org> > Signed-off-by: Linus Walleij <linus.walleij@linaro.org> > --- > ChangeLog v4->v5: > - No changes, just resend. Jonathan can we merge this? People seem happy with it. Dito for the actual driver patch 2/2. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt b/Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt new file mode 100644 index 000000000000..77d5aba1bd8c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/ak8974.txt @@ -0,0 +1,29 @@ +* Asahi Kasei AK8974 magnetometer sensor + +Required properties: + +- compatible : should be "asahi-kasei,ak8974" +- reg : the I2C address of the magnetometer + +Optional properties: + +- avdd-supply: regulator supply for the analog voltage + (see regulator/regulator.txt) +- dvdd-supply: regulator supply for the digital voltage + (see regulator/regulator.txt) +- interrupts: data ready (DRDY) and interrupt (INT1) lines + from the chip, the DRDY interrupt must be placed first. + The interrupts can be triggered on rising or falling + edges alike. +- mount-matrix: an optional 3x3 mounting rotation matrix + +Example: + +ak8974@0f { + compatible = "asahi-kasei,ak8974"; + reg = <0x0f>; + avdd-supply = <&foo_reg>; + dvdd-supply = <&bar_reg>; + interrupts = <0 IRQ_TYPE_EDGE_RISING>, + <1 IRQ_TYPE_EDGE_RISING>; +};