From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1795C77B7E for ; Mon, 29 May 2023 10:02:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B9BCC85B31; Mon, 29 May 2023 12:02:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="TORwXOeV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A246E85C5E; Mon, 29 May 2023 12:02:04 +0200 (CEST) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 11866854DA for ; Mon, 29 May 2023 12:02:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eugen.hristev@collabora.com Received: from eugen-station.. (unknown [46.8.172.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id 33A1F66020E9; Mon, 29 May 2023 11:02:01 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685354521; bh=hWZvoP4AXSbcMoCxRB2jjlLbfE1yrd+8Nlfe8T4Alow=; h=From:To:Cc:Subject:Date:From; b=TORwXOeV6fm1Is+u8H1Hjrt5vanDohIGybVbdB5P3KQ4FzsXWk6KjOH0NLPLCAqA4 UgIre/V///d9zpQ7DN3EZNs3FEXB9HlmkU3J+4Gr85CqcqyQ46dkX135KWneLXpXlQ y9v0JrnBAvTG9p0okYeNPLJuGh82ph3n8KQ/MkEa8EkO0blnOIfDRfMgABnI6xZgFL /P0U3nBH0kvqFVR/CgTIOJ8ZxszDwxhe76NSQeyAhyn89RHeee9DD5TYugYCzFDr6G g/5AAzrIl7Iw6VZQ21h6fVNh+Hw55HFPXp0DN1S14LhqbphD1GpSAe75YDNjwjkoM1 3DKd7EuPXx+Zw== From: Eugen Hristev To: u-boot@lists.denx.de, kever.yang@rock-chips.com, jonas@kwiboo.se, jagan@edgeble.ai Cc: eugen.hristev@collabora.com Subject: [PATCH 0/4] rockchip: rk3588: add USB 3.0 support Date: Mon, 29 May 2023 13:01:32 +0300 Message-Id: <20230529100136.26850-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This series adds preliminary support for USB 3.0 using the Dual Role Devices DRD based on DWC3 controller One controller is in host mode : 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Mass Storage (480 Mb/s, 100mA) TDK LoR TF10 C900587416E2C552 The other is in gadget mode, and to test it out, I enabled rockusb Currently it works to remotely reboot the board e.g. : $ sudo rkdeveloptool ld DevNo=1 Vid=0x2207,Pid=0x350b,LocationID=601 Maskrom $ sudo rkdeveloptool rd Reset Device OK. => rockusb 0 mmc 0 dwc3-generic-peripheral usb@fc000000: request 00000000edf44580 was not queued to ep1in-bulk rockkusb set reboot flag: 0 resetting ... For a typeC to typeC gadget connection, it only works in one orientation. To get orientation flipping support, another patch series is required, for the fairchild fusb driver and type C stack. Current patch series also adds the USB-DP combo phy driver. The DWC3 controllers each have two PHYs, one for USB 2.0 (the inno2 usb2 phy) and the usbdp for USB 3.0 . Eugen Hristev (2): ARM: dts: rockchip: rk3588-rock-5b-u-boot: add USB3 support configs: rock5b-rk3588: enable USB 3.0 controller, command, gadget Frank Wang (1): phy: rockchip: add usbdp combo phy driver Joseph Chen (1): ARM: dts: rockchip: rk3588: add support for USB 3.0 devices arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 197 +++++ arch/arm/dts/rk3588-u-boot.dtsi | 93 +++ arch/arm/dts/rk3588s-u-boot.dtsi | 105 +++ configs/rock5b-rk3588_defconfig | 14 + drivers/phy/rockchip/Kconfig | 7 + drivers/phy/rockchip/Makefile | 1 + drivers/phy/rockchip/phy-rockchip-usbdp.c | 880 ++++++++++++++++++++++ include/linux/usb/phy-rockchip-usbdp.h | 70 ++ 8 files changed, 1367 insertions(+) create mode 100644 drivers/phy/rockchip/phy-rockchip-usbdp.c create mode 100644 include/linux/usb/phy-rockchip-usbdp.h -- 2.34.1