mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-22 07:43:45 -05:00
ARM: dts: qcom: msm8226-microsoft-common: Add inertial sensors
Add nodes for the Asahi Kasei AK09911 magnetometer and the Kionix KX022-1020 accelerometer, both of which are connected over i2c2, in the common device tree for msm8x26 Lumias. Moneypenny (Lumia 630) does not have a magnetometer, and so the node is deleted. Tesla's (Lumia 830's) magnetometer is currently unknown. Signed-off-by: Rayyan Ansari <rayyan@ansari.sh> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20240714173431.54332-4-rayyan@ansari.sh Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
committed by
Bjorn Andersson
parent
c47dd4a871
commit
18042ad9df
@@ -84,6 +84,32 @@ smem_region: smem@fa00000 {
|
||||
};
|
||||
};
|
||||
|
||||
&blsp1_i2c2 {
|
||||
status = "okay";
|
||||
|
||||
magnetometer: magnetometer@c {
|
||||
compatible = "asahi-kasei,ak09911";
|
||||
reg = <0x0c>;
|
||||
|
||||
vdd-supply = <&pm8226_l15>;
|
||||
vid-supply = <&pm8226_l6>;
|
||||
};
|
||||
|
||||
accelerometer: accelerometer@1e {
|
||||
compatible = "kionix,kx022-1020";
|
||||
reg = <0x1e>;
|
||||
|
||||
interrupts-extended = <&tlmm 63 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
vdd-supply = <&pm8226_l15>;
|
||||
vddio-supply = <&pm8226_l6>;
|
||||
|
||||
mount-matrix = "1", "0", "0",
|
||||
"0", "-1", "0",
|
||||
"0", "0", "1";
|
||||
};
|
||||
};
|
||||
|
||||
&blsp1_i2c5 {
|
||||
status = "okay";
|
||||
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
|
||||
#include "qcom-msm8226-microsoft-common.dtsi"
|
||||
|
||||
/* This device has no magnetometer */
|
||||
/delete-node/ &magnetometer;
|
||||
|
||||
/ {
|
||||
model = "Nokia Lumia 630";
|
||||
compatible = "microsoft,moneypenny", "qcom,msm8226";
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
/* This device has touchscreen on i2c1 instead */
|
||||
/delete-node/ &touchscreen;
|
||||
|
||||
/* The magnetometer used on this device is currently unknown */
|
||||
/delete-node/ &magnetometer;
|
||||
|
||||
/ {
|
||||
model = "Nokia Lumia 830";
|
||||
compatible = "microsoft,tesla", "qcom,msm8926", "qcom,msm8226";
|
||||
|
||||
Reference in New Issue
Block a user