diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-07-17 22:48:31 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2017-09-18 20:34:55 +0200 |
commit | 3b88f74bbe9134465a84234e1e7400af585f8c2b (patch) | |
tree | 6c8767c77eb1f0ba2647ac3a4ce76826953f3301 /target/linux/sunxi/patches-4.9/0016-arm64-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch | |
parent | 34a422794ddab738408edc7e3980ccbc14f28af4 (diff) | |
download | mtk-20170518-3b88f74bbe9134465a84234e1e7400af585f8c2b.zip mtk-20170518-3b88f74bbe9134465a84234e1e7400af585f8c2b.tar.gz mtk-20170518-3b88f74bbe9134465a84234e1e7400af585f8c2b.tar.bz2 |
sunxi: Backport patches from kernel 4.11 for A64
This backports some more patches from kernel 4.11 adding more devices
to the device tree of the A64 SoC.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/sunxi/patches-4.9/0016-arm64-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch')
-rw-r--r-- | target/linux/sunxi/patches-4.9/0016-arm64-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.9/0016-arm64-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch b/target/linux/sunxi/patches-4.9/0016-arm64-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch new file mode 100644 index 0000000..804d005 --- /dev/null +++ b/target/linux/sunxi/patches-4.9/0016-arm64-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch @@ -0,0 +1,42 @@ +From 972a3ecdf27f3ebdd1ce0dccd1b548ef3c04b8ed Mon Sep 17 00:00:00 2001 +From: Icenowy Zheng <icenowy@aosc.xyz> +Date: Wed, 23 Nov 2016 00:59:01 +0800 +Subject: arm64: dts: add MUSB node to Allwinner A64 dtsi + +Allwinner A64 SoC has a MUSB controller like the one in A33, so add +a node for it, just use the compatible of A33 MUSB. + +Host mode is tested to work properly on Pine64 and will be added into +the device tree of Pine64 in next patch. + +Peripheral mode is also tested on Pine64, by changing dr_mode property +of usb_otg node and use a non-standard USB Type-A to Type-A cable. + +Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> +Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> +--- + arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +@@ -122,6 +122,19 @@ + #size-cells = <1>; + ranges; + ++ usb_otg: usb@01c19000 { ++ compatible = "allwinner,sun8i-a33-musb"; ++ reg = <0x01c19000 0x0400>; ++ clocks = <&ccu CLK_BUS_OTG>; ++ resets = <&ccu RST_BUS_OTG>; ++ interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; ++ interrupt-names = "mc"; ++ phys = <&usbphy 0>; ++ phy-names = "usb"; ++ extcon = <&usbphy 0>; ++ status = "disabled"; ++ }; ++ + usbphy: phy@01c19400 { + compatible = "allwinner,sun50i-a64-usb-phy"; + reg = <0x01c19400 0x14>, |