Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916-asus-z00l: Add sensors
Browse files Browse the repository at this point in the history
This device has MPU-6515 imu and Asahi Kasei AK09911 magnetometer,
Add support for it.

Signed-off-by: J.R. Divya Antony <[email protected]>
Reviewed-by: Stephan Gerhold <[email protected]>
Signed-off-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
antony-jr authored and andersson committed Oct 24, 2021
1 parent 68edf2d commit 22efef1
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,41 @@
};
};

&blsp_i2c2 {
status = "okay";

magnetometer@c {
compatible = "asahi-kasei,ak09911";
reg = <0x0c>;

vdd-supply = <&pm8916_l8>;
vid-supply = <&pm8916_l6>;

reset-gpios = <&msmgpio 112 GPIO_ACTIVE_LOW>;

pinctrl-names = "default";
pinctrl-0 = <&mag_reset_default>;
};

imu@68 {
compatible = "invensense,mpu6515";
reg = <0x68>;

interrupt-parent = <&msmgpio>;
interrupts = <36 IRQ_TYPE_EDGE_RISING>;

vdd-supply = <&pm8916_l17>;
vddio-supply = <&pm8916_l6>;

pinctrl-names = "default";
pinctrl-0 = <&imu_default>;

mount-matrix = "1", "0", "0",
"0", "-1", "0",
"0", "0", "1";
};
};

&blsp_i2c5 {
status = "okay";

Expand Down Expand Up @@ -287,6 +322,22 @@
bias-disable;
};

imu_default: imu-default {
pins = "gpio36";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

mag_reset_default: mag-reset-default {
pins = "gpio112";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

sd_vmmc_en_default: sd-vmmc-en-default {
pins = "gpio87";
function = "gpio";
Expand Down

0 comments on commit 22efef1

Please sign in to comment.