Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: mt8183: Add USB3.0 support

Add the USB3.0 phyter and controller for the MediaTek's MT8183 SoC.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
Link: https://lore.kernel.org/r/20200625101757.101775-7-enric.balletbo@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>

authored by

Enric Balletbo i Serra and committed by
Matthias Brugger
6b3bfa37 4b1b8fd8

+58
+58
arch/arm64/boot/dts/mediatek/mt8183.dtsi
··· 9 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 10 #include <dt-bindings/interrupt-controller/irq.h> 11 11 #include <dt-bindings/reset-controller/mt8183-resets.h> 12 + #include <dt-bindings/phy/phy.h> 12 13 #include "mt8183-pinfunc.h" 13 14 14 15 / { ··· 649 648 status = "disabled"; 650 649 }; 651 650 651 + ssusb: usb@11201000 { 652 + compatible ="mediatek,mt8183-mtu3", "mediatek,mtu3"; 653 + reg = <0 0x11201000 0 0x2e00>, 654 + <0 0x11203e00 0 0x0100>; 655 + reg-names = "mac", "ippc"; 656 + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_LOW>; 657 + phys = <&u2port0 PHY_TYPE_USB2>, 658 + <&u3port0 PHY_TYPE_USB3>; 659 + clocks = <&infracfg CLK_INFRA_UNIPRO_SCK>, 660 + <&infracfg CLK_INFRA_USB>; 661 + clock-names = "sys_ck", "ref_ck"; 662 + mediatek,syscon-wakeup = <&pericfg 0x400 0>; 663 + #address-cells = <2>; 664 + #size-cells = <2>; 665 + ranges; 666 + status = "disabled"; 667 + 668 + usb_host: xhci@11200000 { 669 + compatible = "mediatek,mt8183-xhci", 670 + "mediatek,mtk-xhci"; 671 + reg = <0 0x11200000 0 0x1000>; 672 + reg-names = "mac"; 673 + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_LOW>; 674 + clocks = <&infracfg CLK_INFRA_UNIPRO_SCK>, 675 + <&infracfg CLK_INFRA_USB>; 676 + clock-names = "sys_ck", "ref_ck"; 677 + status = "disabled"; 678 + }; 679 + }; 680 + 652 681 audiosys: syscon@11220000 { 653 682 compatible = "mediatek,mt8183-audiosys", "syscon"; 654 683 reg = <0 0x11220000 0 0x1000>; ··· 713 682 compatible = "mediatek,mt8183-efuse", 714 683 "mediatek,efuse"; 715 684 reg = <0 0x11f10000 0 0x1000>; 685 + }; 686 + 687 + u3phy: usb-phy@11f40000 { 688 + compatible = "mediatek,mt8183-tphy", 689 + "mediatek,generic-tphy-v2"; 690 + #address-cells = <1>; 691 + #phy-cells = <1>; 692 + #size-cells = <1>; 693 + ranges = <0 0 0x11f40000 0x1000>; 694 + status = "okay"; 695 + 696 + u2port0: usb-phy@0 { 697 + reg = <0x0 0x700>; 698 + clocks = <&clk26m>; 699 + clock-names = "ref"; 700 + #phy-cells = <1>; 701 + mediatek,discth = <15>; 702 + status = "okay"; 703 + }; 704 + 705 + u3port0: usb-phy@0700 { 706 + reg = <0x0700 0x900>; 707 + clocks = <&clk26m>; 708 + clock-names = "ref"; 709 + #phy-cells = <1>; 710 + status = "okay"; 711 + }; 716 712 }; 717 713 718 714 mfgcfg: syscon@13000000 {