kernel/sunxi: Create kernel files for v6.6 (from v6.1)
[openwrt/openwrt.git] / target / linux / sunxi / patches-6.6 / 301-orangepi_pc2_usb_otg_to_host_key_power.patch
diff --git a/target/linux/sunxi/patches-6.6/301-orangepi_pc2_usb_otg_to_host_key_power.patch b/target/linux/sunxi/patches-6.6/301-orangepi_pc2_usb_otg_to_host_key_power.patch
new file mode 100644 (file)
index 0000000..2c5ccd7
--- /dev/null
@@ -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
+@@ -59,7 +59,7 @@
+               key-sw4 {
+                       label = "sw4";
+-                      linux,code = <BTN_0>;
++                      linux,code = <KEY_POWER>;
+                       gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+                       wakeup-source;
+               };
+@@ -220,7 +220,7 @@
+ };
+ &usb_otg {
+-      dr_mode = "otg";
++      dr_mode = "host";
+       status = "okay";
+ };