aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-5.4/301-orangepi_pc2_usb_otg_to_host_key_power.patch
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>2020-03-02 19:32:34 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-16 22:21:45 +0100
commitf9bdacc5f6fa051db7c246b8922e756067ec9d43 (patch)
treed500ec7291a553246a32d9b6fe58782913fff914 /target/linux/sunxi/patches-5.4/301-orangepi_pc2_usb_otg_to_host_key_power.patch
parent7d6fcfbd496a206eae65a083b773feb7e34974e7 (diff)
downloadupstream-f9bdacc5f6fa051db7c246b8922e756067ec9d43.tar.gz
upstream-f9bdacc5f6fa051db7c246b8922e756067ec9d43.tar.bz2
upstream-f9bdacc5f6fa051db7c246b8922e756067ec9d43.zip
sunxi: copy config and patches from 4.19 to 5.4
Signed-off-by: Aleksander Jan Bajkowski <A.Bajkowski@stud.elka.pw.edu.pl>
Diffstat (limited to 'target/linux/sunxi/patches-5.4/301-orangepi_pc2_usb_otg_to_host_key_power.patch')
-rw-r--r--target/linux/sunxi/patches-5.4/301-orangepi_pc2_usb_otg_to_host_key_power.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-5.4/301-orangepi_pc2_usb_otg_to_host_key_power.patch b/target/linux/sunxi/patches-5.4/301-orangepi_pc2_usb_otg_to_host_key_power.patch
new file mode 100644
index 0000000000..af243ca3e7
--- /dev/null
+++ b/target/linux/sunxi/patches-5.4/301-orangepi_pc2_usb_otg_to_host_key_power.patch
@@ -0,0 +1,20 @@
+--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
++++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
+@@ -98,7 +98,7 @@
+
+ sw4 {
+ label = "sw4";
+- linux,code = <BTN_0>;
++ linux,code = <KEY_POWER>;
+ gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+ };
+ };
+@@ -238,7 +238,7 @@
+ };
+
+ &usb_otg {
+- dr_mode = "otg";
++ dr_mode = "host";
+ status = "okay";
+ };
+