]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: mt7623: add USB nodes
authorFrank Wunderlich <frank-w@public-files.de>
Thu, 20 Aug 2020 14:37:58 +0000 (16:37 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 Aug 2020 18:11:31 +0000 (14:11 -0400)
This adds USB nodes for MT7623/BPI-R2

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
arch/arm/dts/mt7623.dtsi
arch/arm/dts/mt7623n-bananapi-bpi-r2.dts

index 0452889ef800a7387f8513820e38e77715ceaf34..b5a802552b1fad767541aa8db308c5f057b1ab2f 100644 (file)
                };
        };
 
+       usb1: usb@1a1c0000 {
+               compatible = "mediatek,mt7623-xhci", "mediatek,mtk-xhci";
+               reg = <0x1a1c0000 0x1000>, <0x1a1c4700 0x0100>;
+               reg-names = "mac", "ippc";
+               power-domains = <&scpsys MT7623_POWER_DOMAIN_HIF>;
+               clocks = <&hifsys CLK_HIFSYS_USB0PHY>, <&topckgen CLK_TOP_ETHIF_SEL>;
+               clock-names = "sys_ck", "ref_ck";
+               phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>;
+               status = "disabled";
+       };
+
+       u3phy1: usb-phy@1a1c4000 {
+               compatible = "mediatek,mt7623-tphy", "mediatek,generic-tphy-v1";
+
+               reg = <0x1a1c4000 0x0700>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+               status = "disabled";
+
+               u2port0: usb-phy@1a1c4800 {
+                       reg = <0x1a1c4800 0x0100>;
+                       #phy-cells = <1>;
+                       clocks = <&topckgen CLK_TOP_USB_PHY48M>;
+                       clock-names = "ref";
+               };
+
+               u3port0: usb-phy@1a1c4900 {
+                       reg = <0x1a1c4900 0x0700>;
+                       #phy-cells = <1>;
+                       clocks = <&clk26m>;
+                       clock-names = "ref";
+               };
+       };
+
+       usb2: usb@1a240000 {
+               compatible = "mediatek,mt7623-xhci", "mediatek,mtk-xhci";
+               reg = <0x1a240000 0x1000>, <0x1a244700 0x0100>;
+               reg-names = "mac", "ippc";
+               power-domains = <&scpsys MT7623_POWER_DOMAIN_HIF>;
+               clocks = <&hifsys CLK_HIFSYS_USB1PHY>, <&topckgen CLK_TOP_ETHIF_SEL>;
+               clock-names = "sys_ck", "ref_ck";
+               phys = <&u2port1 PHY_TYPE_USB2>, <&u3port1 PHY_TYPE_USB3>;
+               status = "disabled";
+       };
+
        u3phy2: usb-phy@1a244000 {
                compatible = "mediatek,generic-tphy-v1";
                reg = <0x1a244000 0x0700>;
index bcedcf20f133a3a8fe85b3a1af459c0106c04aa3..ef0736962736c5d9fce72f7f7598c0183498bd69 100644 (file)
        pinctrl-0 = <&uart2_pins_a>;
        status = "okay";
 };
+
+&usb1 {
+       status = "okay";
+};
+
+&u3phy1 {
+       status = "okay";
+};
+
+&usb2 {
+       status = "okay";
+};
+
+&u3phy2 {
+       status = "okay";
+};