Message ID | 20240908214718.36316-3-andrej.skvortzov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fix magnetometers on PinePhone | expand |
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 66fbb35a7fae9..d35d747292ce6 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -195,6 +195,9 @@ af8133j: magnetometer@1c { reset-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>; avdd-supply = <®_dldo1>; dvdd-supply = <®_dldo1>; + mount-matrix = "0", "-1", "0", + "-1", "0", "0", + "0", "0", "-1"; /* status will be fixed up in firmware */ status = "disabled"; @@ -206,6 +209,9 @@ lis3mdl: magnetometer@1e { reg = <0x1e>; vdd-supply = <®_dldo1>; vddio-supply = <®_dldo1>; + mount-matrix = "0", "1", "0", + "-1", "0", "0", + "0", "0", "1"; }; /* Light/proximity sensor */