M7350/kernel/Documentation/devicetree/bindings/input/misc/mpu6050.txt

50 lines
1.9 KiB
Plaintext
Raw Normal View History

2024-09-09 08:57:42 +00:00
InvenSense MPU6050 6 Axis gyroscope+accelerometer combo driver
Required properties:
- compatible : Should be "invn,mpu6050" or "invn,mpu6880".
- reg : i2c slave address of the device.
- pinctrl-names : The pinctrl configration names of this sensor driver. Should be "mpu_default","mpu_sleep".
- pinctrl-0 : The pinctrl node corresponding to "mpu_default", should be <&mpu6050_default>.
- pinctrl-1 : The pinctrl node corresponding to "mpu_sleep", should be <&mpu6050_sleep>.
- interrupt-parent : Parent of interrupt.
- interrupts : Gyrometer sample interrupt to indicate new data ready.
- vdd-supply : Analog power supply needed to power device.
- vlogic-supply : Digital IO power supply needed for IO and I2C.
- invn,place : The placing of the accelerometer on board. There are 8
patterns of placing described as below:
"Portrait Up": Portrait Up
"Landscape Right": Landscape Right
"Portrait Down": Portrait Down
"Landscape Left": Landscape Left
"Portrait Up Back Side": Portrait Up (back side view)
"Landscape Right Back Side": Landscape Right (back side view)
"Portrait Down Back Side": Portrait Down (back side view)
"Landscape Left Back Side": Landscape Left (back side view)
Optional properties:
- vi2c-supply : Digital IO Power supply needed for I2C.
- invn,use-interrupt : use device interrupt to trigger data acquisition
instead of polling data.
- invn,gpio-int : GPIO used for interrupt.
- invn,gpio-en : GPIO used for power enabling.
- invn,vdd-min-uv : Minimum VDD supply voltage in micro-volts.
Example:
i2c@f9925000 {
mpu6050@68 {
compatible = "invn,mpu6050";
reg = <0x68>;
pinctrl-names = "mpu_default","mpu_sleep";
pinctrl-0 = <&mpu6050_default>;
pinctrl-1 = <&mpu6050_sleep>;
interrupt-parent = <&msm_gpio>;
interrupts = <84 0x2>;
vlogic-supply = <&pm8916_l17>;
vdd-supply = <&pm8916_l6>;
vi2c-supply = <&pm8916_l16>;
invn,place = "Portrait Up";
};
};