arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMA255 Accelerometer
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 12 Apr 2023 11:27:38 +0000 (13:27 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 12 Apr 2023 12:44:15 +0000 (14:44 +0200)
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>
arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

index a0e01a7..9593b3f 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&i2c1_pins>;
        status = "okay";
+
+       accelerometer@10 {
+               compatible = "bosch,bma255";
+               reg = <0x10>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&accel_pins>;
+       };
 };
 
 &i2c2 {
                };
        };
 
+       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>,