From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Blumenstingl Subject: [PATCH 3/5] arm64: dts: meson-gxl: add USB support Date: Sat, 26 Nov 2016 15:56:33 +0100 Message-ID: <20161126145635.24488-4-martin.blumenstingl@googlemail.com> References: <20161126145635.24488-1-martin.blumenstingl@googlemail.com> Return-path: In-Reply-To: <20161126145635.24488-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kishon-l0cyMroinI0@public.gmane.org, khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Cc: catalin.marinas-5wv7dgnIgG8@public.gmane.org, will.deacon-5wv7dgnIgG8@public.gmane.org, narmstrong-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, Martin Blumenstingl List-Id: devicetree@vger.kernel.org This adds USB support the the Meson GXL SoC. On most devices only the dwc3 controller is used. It has an internal USB hub which provides two ports. The PHYs for these ports are defined through the USB3 PHY, which is ensures that all PHYs are using the same mode (because all of them are used by the same controller). Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index 3af54dc..99ac900 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -44,9 +44,58 @@ #include "meson-gx.dtsi" #include #include +#include / { compatible = "amlogic,meson-gxl"; + + soc { + + usb0: usb@c9000000 { + compatible = "snps,dwc3"; + reg = <0x0 0xc9000000 0x0 0x100000>; + interrupts = ; + phys = <&usb3_phy0>; + phy-names = "usb3-phy"; + dr_mode = "host"; + maximum-speed = "high-speed"; + snps,dis_u2_susphy_quirk; + }; + + usb1: usb@c9100000 { + compatible = "snps,dwc2"; + reg = <0x0 0xc9100000 0x0 0x40000>; + interrupts = ; + clocks = <&clkc CLKID_USB>; + clock-names = "otg"; + dr_mode = "host"; + status = "disabled"; + }; + }; +}; + +&apb { + usb2_phys: phy@78000 { + compatible = "amlogic,meson-gxl-usb2-phy"; + #phy-cells = <1>; + reg = <0x0 0x78000 0x0 0x80>; + clocks = <&clkc CLKID_USB1>, <&clkc CLKID_USB1_DDR_BRIDGE>; + clock-names = "usb", "usb_ddr"; + resets = <&reset RESET_USB_OTG>; + status = "disabled"; + }; + + usb3_phy0: phy@78080 { + compatible = "amlogic,meson-gxl-usb3-phy"; + #phy-cells = <0>; + reg = <0x0 0x78080 0x0 0x20>; + interrupts = ; + + /* dwc3 on GXL enables 2 USB ports on the internal hub */ + phys = <&usb2_phys 0>, <&usb2_phys 1>; + + status = "disabled"; + }; }; ðmac { -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html