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

arm: dts: mt2701: Add usb2 device nodes

Add musb nodes and usb2 phy nodes for MT2701

Signed-off-by: Min Guo <min.guo@mediatek.com>
Link: https://lore.kernel.org/r/20191211015446.11477-3-min.guo@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>

authored by

Min Guo and committed by
Matthias Brugger
189881af 795240b5

+54
+21
arch/arm/boot/dts/mt2701-evb.dts
··· 6 6 */ 7 7 8 8 /dts-v1/; 9 + #include <dt-bindings/gpio/gpio.h> 9 10 #include "mt2701.dtsi" 10 11 11 12 / { ··· 61 60 255 62 61 >; 63 62 default-brightness-level = <9>; 63 + }; 64 + 65 + usb_vbus: regulator@0 { 66 + compatible = "regulator-fixed"; 67 + regulator-name = "usb_vbus"; 68 + regulator-min-microvolt = <5000000>; 69 + regulator-max-microvolt = <5000000>; 70 + gpio = <&pio 45 GPIO_ACTIVE_HIGH>; 71 + enable-active-high; 64 72 }; 65 73 }; 66 74 ··· 239 229 240 230 &uart0 { 241 231 status = "okay"; 232 + }; 233 + 234 + &usb2 { 235 + status = "okay"; 236 + usb-role-switch; 237 + connector{ 238 + compatible = "gpio-usb-b-connector", "usb-b-connector"; 239 + type = "micro"; 240 + id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>; 241 + vbus-supply = <&usb_vbus>; 242 + }; 242 243 };
+33
arch/arm/boot/dts/mt2701.dtsi
··· 671 671 }; 672 672 }; 673 673 674 + usb2: usb@11200000 { 675 + compatible = "mediatek,mt2701-musb", 676 + "mediatek,mtk-musb"; 677 + reg = <0 0x11200000 0 0x1000>; 678 + interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; 679 + interrupt-names = "mc"; 680 + phys = <&u2port2 PHY_TYPE_USB2>; 681 + dr_mode = "otg"; 682 + clocks = <&pericfg CLK_PERI_USB0>, 683 + <&pericfg CLK_PERI_USB0_MCU>, 684 + <&pericfg CLK_PERI_USB_SLV>; 685 + clock-names = "main","mcu","univpll"; 686 + power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; 687 + status = "disabled"; 688 + }; 689 + 690 + u2phy0: usb-phy@11210000 { 691 + compatible = "mediatek,generic-tphy-v1"; 692 + reg = <0 0x11210000 0 0x0800>; 693 + #address-cells = <2>; 694 + #size-cells = <2>; 695 + ranges; 696 + status = "okay"; 697 + 698 + u2port2: usb-phy@1a1c4800 { 699 + reg = <0 0x11210800 0 0x0100>; 700 + clocks = <&topckgen CLK_TOP_USB_PHY48M>; 701 + clock-names = "ref"; 702 + #phy-cells = <1>; 703 + status = "okay"; 704 + }; 705 + }; 706 + 674 707 ethsys: syscon@1b000000 { 675 708 compatible = "mediatek,mt2701-ethsys", "syscon"; 676 709 reg = <0 0x1b000000 0 0x1000>;