purism-librem5: add patch for enabling host usb mode on devkit (!925)

This addresses the issue here, but only for the devkit:
https://source.puri.sm/Librem5/linux-next/issues/114

I didn't patch the dts for the phone because:
1) I don't have one to test
2) it might negatively impact batter life (I'm only speculating)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Clayton Craft 2020-02-02 22:47:04 -08:00 committed by Oliver Smith
parent 38a23b2aa0
commit 048a5524f5
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,13 @@
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
index 3c7201a..204e188 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
@@ -1044,7 +1044,7 @@
&usb_dwc3_0 {
#address-cells = <1>;
#size-cells = <0>;
- dr_mode = "otg";
+ dr_mode = "host";
status = "okay";
port@0 {

View file

@ -2,7 +2,7 @@
# Kernel config based on: arch/arm64/configs/librem5-devkit_defconfig # Kernel config based on: arch/arm64/configs/librem5-devkit_defconfig
pkgname="linux-purism-librem5" pkgname="linux-purism-librem5"
pkgver=5.3 pkgver=5.3
pkgrel=1 pkgrel=2
pkgdesc="Purism Librem 5 phone kernel fork" pkgdesc="Purism Librem 5 phone kernel fork"
arch="aarch64" arch="aarch64"
_carch="arm64" _carch="arm64"
@ -25,6 +25,7 @@ _commit="1309cc0a813e70af9b3d8c29d513e78715475de5"
_config="config-$_flavor.$arch" _config="config-$_flavor.$arch"
source=" source="
$pkgname-$_commit.tar.gz::https://source.puri.sm/Librem5/$_repository/-/archive/$_commit.tar.gz $pkgname-$_commit.tar.gz::https://source.puri.sm/Librem5/$_repository/-/archive/$_commit.tar.gz
0001-force-host-mode-for-usb.patch
$_config $_config
" "
builddir="$srcdir/$_repository-$_commit" builddir="$srcdir/$_repository-$_commit"
@ -72,6 +73,6 @@ package() {
INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb" INSTALL_DTBS_PATH="$pkgdir/usr/share/dtb"
} }
sha512sums="85cf8671c4d9481477edbb994423b3745cac684e7a056db889a97a18eb8e26778a900b7151865e8bc79f4394f0bb86c360ecf9eee01cbed6e7d4cbe2862b9e0c linux-purism-librem5-1309cc0a813e70af9b3d8c29d513e78715475de5.tar.gz sha512sums="85cf8671c4d9481477edbb994423b3745cac684e7a056db889a97a18eb8e26778a900b7151865e8bc79f4394f0bb86c360ecf9eee01cbed6e7d4cbe2862b9e0c linux-purism-librem5-1309cc0a813e70af9b3d8c29d513e78715475de5.tar.gz
914a28ab4117ac1b349c6daae3538158f2346745e2f85f03667601eb6410db91f0f9805011f14ff2168da9c62821c921737ddfaf3d9babffbb2d9b84a6e83ac1 0001-force-host-mode-for-usb.patch
79046403a26384518ccdb849abc9cfdfe6873986286e4ce97af3e8f633fdb6c8f55b18c954b36edffed3f42f08cbc68f3311e1157f573ee8759fa3da800ad91e config-purism-librem5.aarch64" 79046403a26384518ccdb849abc9cfdfe6873986286e4ce97af3e8f633fdb6c8f55b18c954b36edffed3f42f08cbc68f3311e1157f573ee8759fa3da800ad91e config-purism-librem5.aarch64"