Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
30 lines
800 B
Plaintext
30 lines
800 B
Plaintext
* 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>;
|
|
};
|