arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMA255 Accelerometer

Add the BMA255 Accelerometer on I2C3 and its pin definitions.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230412112739.160376-27-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
AngeloGioacchino Del Regno 2023-04-12 13:27:38 +02:00 committed by Matthias Brugger
parent 0dd58c0773
commit 9b42966d4c
1 changed files with 15 additions and 0 deletions

View File

@ -66,6 +66,13 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
status = "okay";
accelerometer@10 {
compatible = "bosch,bma255";
reg = <0x10>;
pinctrl-names = "default";
pinctrl-0 = <&accel_pins>;
};
};
&i2c2 {
@ -155,6 +162,14 @@
};
};
accel_pins: accelerometer-pins {
pins-irq {
pinmux = <PINMUX_GPIO12__FUNC_GPIO12>;
bias-pull-up;
input-enable;
};
};
i2c0_pins: i2c0-pins {
pins-bus {
pinmux = <PINMUX_GPIO45__FUNC_SDA0>,