Skip to content

Commit

Permalink
rosy: add i2c sensors
Browse files Browse the repository at this point in the history
Add i2c sensors for gyroscope (bmi120), accelerometer (ak09918) and
ALS (ltr579, no driver support yet).

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
  • Loading branch information
Tofee committed May 19, 2024
1 parent 251860b commit 6f9bbcf
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions arch/arm64/boot/dts/qcom/sdm450-xiaomi-rosy.dts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,47 @@
no-map;
};
};

i2c-sensors {
compatible = "i2c-gpio";
sda-gpios = <&tlmm 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
scl-gpios = <&tlmm 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
i2c-gpio,delay-us = <2>; /* ~100 kHz */
#address-cells = <1>;
#size-cells = <0>;

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

vdd-supply = <&pm8953_l10>;
vid-supply = <&pm8953_l6>;
};

/*
* Driver still missing
* Just for general information
*/
ltr579: light@53 {
compatible = "liteon,ltr579";
reg = <0x53>;

vdd-supply = <&pm8953_l10>;
vid-supply = <&pm8953_l6>;
};

bmi120: imu@68 {
compatible = "bosch,bmi120";
reg = <0x68>;

vdd-supply = <&pm8953_l10>;
vddio-supply = <&pm8953_l6>;

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

&aw2013_led {
Expand Down

0 comments on commit 6f9bbcf

Please sign in to comment.