diff --git a/pkgs/additional/linux-megous/pinephone-1_2b-af8133j.patch b/pkgs/additional/linux-megous/pinephone-1_2b-af8133j.patch new file mode 100644 index 000000000..df4ca464c --- /dev/null +++ b/pkgs/additional/linux-megous/pinephone-1_2b-af8133j.patch @@ -0,0 +1,24 @@ +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +index 0419a3408586..2f0c08fa378f 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +@@ -661,6 +661,19 @@ lis3mdl: magnetometer@1e { + mount-matrix = "0", "1", "0", + "-1", "0", "0", + "0", "0", "1"; ++ status = "disabled"; ++ }; ++ ++ /* Alternative magnetometer */ ++ af8133j: magnetometer@1c { ++ compatible = "voltafield,af8133j"; ++ reg = <0x1c>; ++ 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"; + }; + + /* Light/proximity sensor */