Path: blob/main/sys/contrib/device-tree/Bindings/iio/magnetometer/ak8974.txt
48525 views
* Asahi Kasei AK8974 magnetometer sensor12Required properties:34- compatible:5* "asahi-kasei,ak8974"6* "alps,hscdtd008a"7- reg : the I2C address of the magnetometer89Optional properties:1011- avdd-supply: regulator supply for the analog voltage12(see regulator/regulator.txt)13- dvdd-supply: regulator supply for the digital voltage14(see regulator/regulator.txt)15- interrupts: data ready (DRDY) and interrupt (INT1) lines16from the chip, the DRDY interrupt must be placed first.17The interrupts can be triggered on rising or falling18edges alike.19- mount-matrix: an optional 3x3 mounting rotation matrix2021Example:2223ak8974@f {24compatible = "asahi-kasei,ak8974";25reg = <0x0f>;26avdd-supply = <&foo_reg>;27dvdd-supply = <&bar_reg>;28interrupts = <0 IRQ_TYPE_EDGE_RISING>,29<1 IRQ_TYPE_EDGE_RISING>;30};313233