kernel: bump 4.9 to 4.9.77
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.9 / 0016-arm64-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch
1 From 972a3ecdf27f3ebdd1ce0dccd1b548ef3c04b8ed Mon Sep 17 00:00:00 2001
2 From: Icenowy Zheng <icenowy@aosc.xyz>
3 Date: Wed, 23 Nov 2016 00:59:01 +0800
4 Subject: arm64: dts: add MUSB node to Allwinner A64 dtsi
5
6 Allwinner A64 SoC has a MUSB controller like the one in A33, so add
7 a node for it, just use the compatible of A33 MUSB.
8
9 Host mode is tested to work properly on Pine64 and will be added into
10 the device tree of Pine64 in next patch.
11
12 Peripheral mode is also tested on Pine64, by changing dr_mode property
13 of usb_otg node and use a non-standard USB Type-A to Type-A cable.
14
15 Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
16 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
17 ---
18 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 13 +++++++++++++
19 1 file changed, 13 insertions(+)
20
21 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
22 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
23 @@ -122,6 +122,19 @@
24 #size-cells = <1>;
25 ranges;
26
27 + usb_otg: usb@01c19000 {
28 + compatible = "allwinner,sun8i-a33-musb";
29 + reg = <0x01c19000 0x0400>;
30 + clocks = <&ccu CLK_BUS_OTG>;
31 + resets = <&ccu RST_BUS_OTG>;
32 + interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
33 + interrupt-names = "mc";
34 + phys = <&usbphy 0>;
35 + phy-names = "usb";
36 + extcon = <&usbphy 0>;
37 + status = "disabled";
38 + };
39 +
40 usbphy: phy@01c19400 {
41 compatible = "allwinner,sun50i-a64-usb-phy";
42 reg = <0x01c19400 0x14>,