3fd5a9a568
Update ov5640 autofocus related patch. We had it working with Martijn's patch in 5.9.1_git20201019-r2 (MR 1654), but then dropped the patch in favor of the patch that was added to megi's tree in 5.9.3_git20201101 (MR 1678). It turns out that the patch added to megi's tree was different than the patch we were carrying, it was a WIP version where loading the autofocus firmware did not work anymore. Megi decided to drop the autofocus patch from his tree for now, as the firmware uploader takes more time in Martijn's proper patch. According to Martijn it takes about a second, which seems reasonable for the postmarketOS use case. I've added the previous version again as out-of-tree patch. Martijn found that for some reason the continuous autofocus still doesn't want to start with this kernel and current patch version, as for some reason the firmware load fails. But he extended the patch to make autofocus work again with "tap to focus" at least. 0005-dts-pinephone-Disable-flash-led-in-OV5640-node.patch is not needed anymore, the same change is in megi's tree. Co-Authored-By: Martijn Braam <martijn@brixit.nl> [ci:skip-build]: already built successfully in CI
49 lines
1.4 KiB
Diff
49 lines
1.4 KiB
Diff
From c40b6c20e60a52ab3d507793676bbdcadd80ff27 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 a87790df94b3..20c368f00939 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts
|
|
@@ -225,7 +225,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 {
|
|
@@ -291,6 +299,10 @@ &ohci0 {
|
|
status = "okay";
|
|
};
|
|
|
|
+&ohci1 {
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&pwm {
|
|
status = "okay";
|
|
};
|
|
--
|
|
2.25.4
|
|
|