From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8A8D440654 for ; Fri, 21 Aug 2026 02:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787277644; cv=none; b=UIkx+16S3BoDTJ9t6hedkPNmKR9wIQ1qrKitMiViRntYnq3IrZLAlR70j8jN1q7CfOfFojteVPgu7QIKEJvIcC1y0/r/byw08A7TFff3S3ZuC4TPYQuKQbcEN2grPouv2ZjJ1EMpKKCWQuf4wbbYQZaBnlbaj01KQf7cUdkTUl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787277644; c=relaxed/simple; bh=9ac753xghRJn/27tVS9JoobeWsB8lFA3MSTyYxuV/EI=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=rM5fOnm+ZpPLb5HQpZhdpBXDyeXYP6mW1ukmMfyTlxs1Lv+0puXW0QwYyUI9CRGygjrrjBnOioWWhlBfU4eLyGoYq7abWQNIlLTSe+lpdNgGNaWmegq0EI0R5JLs1WMvLwjnUzIfqMoCkOfcojPwtVhpvQOVgZeyPwHeH6emmNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=FcW9iiIG; arc=none smtp.client-ip=95.215.58.189 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="FcW9iiIG" X-Envelope-To: linux-usb@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=9ac753xghRJn/27tVS9JoobeWsB8lFA3MSTyYxuV/EI=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787277640; v=1; x=1787882440; b=FcW9iiIGHzYl31nZDMkmvL/8BBgE4iH2G4x3Hn44KuOl0mZ/S1yAqHnuWBMnqLGvju955qOo lqspBEgAmAGpvFmlTWDJLHgegGLyUwPIVIpeS2YQPu/6tK4dU1ZcMUNCAEMvbUrnIZ5VTX99tzf lkihv4PBg+asFcGN48d/R6tc= X-Envelope-To: linux-usb@vger.kernel.org Received: from localhost (114.94.8.21) by smtp.migadu.com with ESMTPS id d136abca33384d49; Fri, 21 Aug 2026 02:00:40 +0000 X-Mizu-Trace-ID: d136abca33384d49 X-Migadu-Flow: FLOW_OUT Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 21 Aug 2026 10:00:37 +0800 Message-Id: Subject: Re: [PATCH 0/6] Add SpacemiT K1 USB2.0 controllers support From: "Ze Huang" To: "Junzhong Pan" , "Greg Kroah-Hartman" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Yixun Lan" , "Xu Yang" , "Peng Fan" , "Peter Chen" , "Philipp Zabel" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexandre Ghiti" Cc: , , , , , "Troy Mitchell" , "linux-riscv" X-Mailer: aerc 0.21.0-146-gb5c16ebe1835 References: <20260812-b4-spacemit-k1-usb2-v1-0-f28cf29e522b@linux.spacemit.com> In-Reply-To: <20260812-b4-spacemit-k1-usb2-v1-0-f28cf29e522b@linux.spacemit.com> On Wed Aug 12, 2026 at 5:26 PM CST, Junzhong Pan wrote: > The SpacemiT K1 SoC has two USB2.0 controllers, one has Dual-Role > support, but the hardware has no internal OTG registers, the other is > Host only. These controllers are compatible with Chipidea USB2 driver > with some flags set and reset control support. > > This series is based on 7.2-rc1 and has been tested on Banana Pi F3 > development board. > > A self-powered USB device/hub is needed to test the host function of the > dual-role controller on Banana Pi F3, a MINI-PCIe USB2.0 module (a > cellular module e.g.) is needed to test the host only controller. > > Signed-off-by: Junzhong Pan Tested on OrangePi RV2. To use USB2.0 Type-A port as host on this board, usb2_0 needs: - dr_mode =3D "host" - a vbus-supply regulator driving gpio126 Tested-by: Ze Huang > --- > Junzhong Pan (6): > dt-bindings: usb: ci-hdrc-usb2: add spacemit,k1-usb2 compatible > usb: chipidea: usb2: add optional reset support > usb: chipidea: usb2: add SpacemiT K1 support > riscv: dts: spacemit: add USB2.0 controller nodes for K1 > riscv: dts: spacemit: enable USB2.0 controllers on BananaPi F3 > riscv: defconfig: enable ChipIdea USB controller support > > .../devicetree/bindings/usb/ci-hdrc-usb2.yaml | 1 + > arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 16 +++++++++ > arch/riscv/boot/dts/spacemit/k1.dtsi | 40 ++++++++++++++++= ++++++ > arch/riscv/configs/defconfig | 4 +++ > drivers/usb/chipidea/ci_hdrc_usb2.c | 16 +++++++++ > 5 files changed, 77 insertions(+) > --- > base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482 > change-id: 20260812-b4-spacemit-k1-usb2-97adfc283d58 > > Best regards,