[PATCH v4 3/4] arm64: dts: rk3399-pinephone-pro: Add magnetometer sensor support

Pavel Machek pavel at ucw.cz
Wed Oct 22 04:12:56 PDT 2025


Hi!

> DEVICE="/sys/bus/iio/devices/iio:device2"
> 
> X=$(cat $DEVICE/in_magn_x_raw)
> Y=$(cat $DEVICE/in_magn_y_raw)
> Z=$(cat $DEVICE/in_magn_z_raw)
> 
> X_MIN=$X; X_MAX=$X
> Y_MIN=$Y; Y_MAX=$Y
> Z_MIN=$Z; Z_MAX=$Z
> 
> START_TIME=$(date +%s)

I wonder if we should create some simple gui tool for testing this and
accelerometer?

Anyway,

> Co-developed-by: Leonardo G. Trombetta <lgtrombetta at gmx.com>
> Signed-off-by: Leonardo G. Trombetta <lgtrombetta at gmx.com>
> Signed-off-by: Ondrej Jirman <megi at xff.cz>
> Signed-off-by: Rudraksha Gupta <guptarud at gmail.com>

Reviewed-by: Pavel Machek <pavel at ucw.cz>


-- 
I don't work for Nazis and criminals, and neither should you.
Boycott Putin, Trump, Netanyahu and Musk!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20251022/e001d182/attachment-0001.sig>


More information about the Linux-rockchip mailing list