Skip to content

Commit 9b42966

Browse files
AngeloGioacchino Del Regnombgg
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
1 parent 0dd58c0 commit 9b42966

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@
6666
pinctrl-names = "default";
6767
pinctrl-0 = <&i2c1_pins>;
6868
status = "okay";
69+
70+
accelerometer@10 {
71+
compatible = "bosch,bma255";
72+
reg = <0x10>;
73+
pinctrl-names = "default";
74+
pinctrl-0 = <&accel_pins>;
75+
};
6976
};
7077

7178
&i2c2 {
@@ -155,6 +162,14 @@
155162
};
156163
};
157164

165+
accel_pins: accelerometer-pins {
166+
pins-irq {
167+
pinmux = <PINMUX_GPIO12__FUNC_GPIO12>;
168+
bias-pull-up;
169+
input-enable;
170+
};
171+
};
172+
158173
i2c0_pins: i2c0-pins {
159174
pins-bus {
160175
pinmux = <PINMUX_GPIO45__FUNC_SDA0>,

0 commit comments

Comments
 (0)