[PATCH v3 5/5] ARM: dts: qcom: msm8960: expressatt: Add Accelerometer

Rudraksha Gupta via B4 Relay posted 5 patches 1 week, 1 day ago
There is a newer version of this series
[PATCH v3 5/5] ARM: dts: qcom: msm8960: expressatt: Add Accelerometer
Posted by Rudraksha Gupta via B4 Relay 1 week, 1 day ago
From: Rudraksha Gupta <guptarud@gmail.com>

Add the Bosch Accelerometer.

Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
---
 arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts
index d32461fc58e9..cb7b56283f15 100644
--- a/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts
+++ b/arch/arm/boot/dts/qcom/qcom-msm8960-samsung-expressatt.dts
@@ -497,6 +497,13 @@ &gsbi12 {
 &gsbi12_i2c {
 	status = "okay";
 
+	accelerometer@18 {
+		compatible = "bosch,bma254";
+		reg = <0x18>;
+		vdd-supply = <&pm8921_l9>;
+		vddio-supply = <&pm8921_lvs4>;
+	};
+
 	magnetometer@2e {
 		compatible = "yamaha,yas532";
 		reg = <0x2e>;

-- 
2.52.0
Re: [PATCH v3 5/5] ARM: dts: qcom: msm8960: expressatt: Add Accelerometer
Posted by Konrad Dybcio 1 week ago
On 11/23/25 7:44 AM, Rudraksha Gupta via B4 Relay wrote:
> From: Rudraksha Gupta <guptarud@gmail.com>
> 
> Add the Bosch Accelerometer.
> 
> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
> ---

I'm assuming this essentially means "the default settings (no
mount matrix) work out fine"

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad
Re: [PATCH v3 5/5] ARM: dts: qcom: msm8960: expressatt: Add Accelerometer
Posted by Rudraksha Gupta 1 week ago
On 11/24/25 02:31, Konrad Dybcio wrote:
> On 11/23/25 7:44 AM, Rudraksha Gupta via B4 Relay wrote:
>> From: Rudraksha Gupta <guptarud@gmail.com>
>>
>> Add the Bosch Accelerometer.
>>
>> Signed-off-by: Rudraksha Gupta <guptarud@gmail.com>
>> ---
> I'm assuming this essentially means "the default settings (no
> mount matrix) work out fine"

I initially thought so... but I recently discovered monitor-sensor:

https://gitlab.freedesktop.org/hadess/iio-sensor-proxy


And it turns out that my testing is wrong. Will send another revision 
with the updated mount-matrix and fixing a driver nullptr bug.


>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
>
> Konrad