aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Silverio <menion@gmail.com>2018-07-30 12:26:07 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2018-08-09 12:07:10 +0200
commit5f4502998a5846146a428e9cfa3f0bbc4c145bb1 (patch)
tree108591ba6e08576c02a20119fee5f1c1412017d6
parente2e39328d53c0af473df0c7aad908cff4abf3dfa (diff)
downloadupstream-5f4502998a5846146a428e9cfa3f0bbc4c145bb1.tar.gz
upstream-5f4502998a5846146a428e9cfa3f0bbc4c145bb1.tar.bz2
upstream-5f4502998a5846146a428e9cfa3f0bbc4c145bb1.zip
sunxi: change Orange Pi PC2 MUSB/power button
Changed default role of Orange Pi PC2 MSUB port to host (in dts) Changed default function of Orange Pi PC2 power button to PWR_BTN Signed-off-by: Antonio Silverio <menion@gmail.com>
-rw-r--r--target/linux/sunxi/patches-4.14/301-orangepi_pc2_usb_otg_to_host_key_power.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.14/301-orangepi_pc2_usb_otg_to_host_key_power.patch b/target/linux/sunxi/patches-4.14/301-orangepi_pc2_usb_otg_to_host_key_power.patch
new file mode 100644
index 0000000000..799e900a8d
--- /dev/null
+++ b/target/linux/sunxi/patches-4.14/301-orangepi_pc2_usb_otg_to_host_key_power.patch
@@ -0,0 +1,20 @@
+diff -Naur linux-4.14.20.ori/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts linux-4.14.20/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts
+--- linux-4.14.20.ori/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts 2018-03-02 09:40:04.794444000 +0100
++++ linux-4.14.20/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts 2018-03-02 09:41:04.880472000 +0100
+@@ -88,7 +88,7 @@
+
+ sw4 {
+ label = "sw4";
+- linux,code = <BTN_0>;
++ linux,code = <KEY_POWER>;
+ gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+ };
+ };
+@@ -203,7 +203,7 @@
+ };
+
+ &usb_otg {
+- dr_mode = "otg";
++ dr_mode = "host";
+ status = "okay";
+ };