pmaports/device/main/linux-postmarketos-allwinner/0003-dts-pinetab-add-missing-bma223-ohci1.patch
Arnav Singh 686479bc4d
linux-postmarketos-allwinner: downgrade to 6.7.9_git20240306 (MR 5054)
Kernel 6.8.4 has multiple issues on the pine64-pinephone:

- Incoming calls don't work reliably when the phone is suspended. ( #2734 )

- Audio routing has changed such that it's seemingly not possible to use
  headphones with the builtin mic. ( #2738 )

Kernel 6.7.9 does not have these problems. This commit reverts to that for now
until they're figured out on the new kernel.
2024-04-22 22:29:33 +02:00

49 lines
1.4 KiB
Diff

From 3806b6eec5badaf3aee06460ac578b19124048ce Mon Sep 17 00:00:00 2001
From: Oliver Smith <ollieparanoid@postmarketos.org>
Date: Tue, 20 Oct 2020 11:11:48 +0200
Subject: [PATCH] dts: pinetab: add missing bma223, ohci1
Fix the accelerometer (BMA223). ohci1 is the low-speed variant of the usb
port. Original patch by Icenowy Zheng.
Cherry picked from here, but this isn't the original patch either:
https://gitlab.com/pine64-org/linux/-/commit/69ae7087ec51b09bb6a0afb53dddb5eb030b3236
---
.../boot/dts/allwinner/sun50i-a64-pinetab.dts | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts
index 5d8081a093..26ca14a664 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts
@@ -237,7 +237,15 @@ &i2c0_pins {
&i2c1 {
status = "okay";
- /* TODO: add Bochs BMA223 accelerometer here */
+ bma223@18 {
+ compatible = "bosch,bma223", "bosch,bma222e";
+ reg = <0x18>;
+ interrupt-parent = <&pio>;
+ interrupts = <7 5 IRQ_TYPE_LEVEL_HIGH>; /* PH5 */
+ mount-matrix = "0", "-1", "0",
+ "-1", "0", "0",
+ "0", "0", "-1";
+ };
};
&lradc {
@@ -303,6 +311,10 @@ &ohci0 {
status = "okay";
};
+&ohci1 {
+ status = "okay";
+};
+
&pwm {
status = "okay";
};
--
2.43.0