sunxi: change Orange Pi PC2 MUSB/power button
[oweals/openwrt.git] / target / linux / sunxi / patches-4.14 / 301-orangepi_pc2_usb_otg_to_host_key_power.patch
1 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
2 --- linux-4.14.20.ori/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts  2018-03-02 09:40:04.794444000 +0100
3 +++ linux-4.14.20/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts      2018-03-02 09:41:04.880472000 +0100
4 @@ -88,7 +88,7 @@
5  
6                 sw4 {
7                         label = "sw4";
8 -                       linux,code = <BTN_0>;
9 +                       linux,code = <KEY_POWER>;
10                         gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
11                 };
12         };
13 @@ -203,7 +203,7 @@
14  };
15  
16  &usb_otg {
17 -       dr_mode = "otg";
18 +       dr_mode = "host";
19         status = "okay";
20  };