summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
diff options
context:
space:
mode:
authorNikita Travkin <nikitos.tr@gmail.com>2020-11-13 18:59:14 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-11-23 06:04:34 +0100
commit6bd2cae7ddd6e7b454d4d8267d9a8952856f8283 (patch)
treebe39c5e084adf685ae2f5a93b7b154dc3fb164b9 /arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
parentarm64: dts: msm8916-longcheer-l8150: Add touchscreen (diff)
downloadlinux-6bd2cae7ddd6e7b454d4d8267d9a8952856f8283.tar.xz
linux-6bd2cae7ddd6e7b454d4d8267d9a8952856f8283.zip
arm64: dts: msm8916-longcheer-l8150: Add position sensors
L8150 has: - BMC156 accelerometer and magnetic sensor - BMG160 gyroscope sensor Add them to the device tree. Reviewed-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Nikita Travkin <nikitos.tr@gmail.com> Link: https://lore.kernel.org/r/20201113175917.189123-3-nikitos.tr@gmail.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts')
-rw-r--r--arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts46
1 files changed, 46 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
index 21f2e8e0d05e..79a2475e3cd5 100644
--- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
+++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
@@ -67,6 +67,44 @@
};
};
+&blsp_i2c2 {
+ status = "okay";
+
+ accelerometer@10 {
+ compatible = "bosch,bmc150_accel";
+ reg = <0x10>;
+
+ vdd-supply = <&pm8916_l17>;
+ vddio-supply = <&pm8916_l6>;
+
+ mount-matrix = "0", "1", "0",
+ "-1", "0", "0",
+ "0", "0", "1";
+ };
+
+ magnetometer@12 {
+ compatible = "bosch,bmc150_magn";
+ reg = <0x12>;
+
+ vdd-supply = <&pm8916_l17>;
+ vddio-supply = <&pm8916_l6>;
+ };
+
+ gyroscope@68 {
+ compatible = "bosch,bmg160";
+ reg = <0x68>;
+
+ interrupt-parent = <&msmgpio>;
+ interrupts = <23 IRQ_TYPE_EDGE_RISING>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&gyro_int_default>;
+
+ vdd-supply = <&pm8916_l17>;
+ vddio-supply = <&pm8916_l6>;
+ };
+};
+
&blsp_i2c5 {
status = "okay";
@@ -264,6 +302,14 @@
bias-pull-up;
};
+ gyro_int_default: gyro-int-default {
+ pins = "gpio23";
+ function = "gpio";
+
+ drive-strength = <2>;
+ bias-disable;
+ };
+
tp_int_default: tp-int-default {
pins = "gpio13";
function = "gpio";