From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cstnet.cn (smtp21.cstnet.cn [159.226.251.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D98C735E548; Mon, 2 Feb 2026 11:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.226.251.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770031917; cv=none; b=u8jbEzwJHL+CJvHWVGdtkq+c9Vf7l00W8esZleJajr/HSG8fcKwQ7Tzg6Zs/nt7bhoYfYbJteuL+atnKZDUrfQ+3wlchuQbOE1q+P4jcnptSSo0sTVLCmm4gj2sZ7uHXKPiA5WIb2cuxUBl3ef8kBHvZJsdqeuSjdR1CD7KTnzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770031917; c=relaxed/simple; bh=Ueylp6HQwvDtkHj6Zl1LQcic6rImdfM2EhfgQAhN4B8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q1V+Xp36SDWfPGu+GUzHyIUu7qfhNqKL+U7jMJJU6sO9e8QcVoFJVrBj+xqcjjOFMua26OCYTYT+nq8DTJq84wrx+rUtyQ86MKTj5ddSXeSMeh8VSo/o46s+2Xs0gGPv/axZEYP4BvAQbacNW3+qhcZeZdmVfKHNm9WYDi2Nawg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=isrc.iscas.ac.cn; spf=pass smtp.mailfrom=isrc.iscas.ac.cn; arc=none smtp.client-ip=159.226.251.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=isrc.iscas.ac.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=isrc.iscas.ac.cn Received: from duge-virtual-machine (unknown [183.192.223.177]) by APP-01 (Coremail) with SMTP id qwCowABH8WwYi4BpJdr9Bg--.29650S2; Mon, 02 Feb 2026 19:31:38 +0800 (CST) Date: Mon, 2 Feb 2026 19:31:36 +0800 From: Jiayu Du To: vkoul@kernel.org, gregkh@linuxfoundation.org, conor@kernel.org Cc: neil.armstrong@linaro.org, robh@kernel.org, krzk+dt@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/4] Add USB support for Canaan K230 Message-ID: References: <20260121145526.14672-1-jiayu.riscv@isrc.iscas.ac.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260121145526.14672-1-jiayu.riscv@isrc.iscas.ac.cn> X-CM-TRANSID:qwCowABH8WwYi4BpJdr9Bg--.29650S2 X-Coremail-Antispam: 1UD129KBjvJXoW7trWrCrWkWry3Kw1ftFWrXwb_yoW5JF17pa y2kFW3CFsrJFW2gFs3tw48WF9xX3Z5Jry5Wryaq3s8W3WUZr1UZ393KrWYvFyDJF4DCryj qFs0kFyxKFy5AaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvvb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r4j6ryUM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4 A2jsIEc7CjxVAFwI0_Gr0_Gr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lFIxGxcIEc7CjxVA2Y2ka0xkIwI1l c7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr 1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE 14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7 IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E 87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73Uj IFyTuYvjxUqiFxDUUUU X-CM-SenderInfo: 5mld534oul2uny6l223fol2u1dvotugofq/ On Wed, Jan 21, 2026 at 10:55:21PM +0800, Jiayu Du wrote: > Add support for the USB PHY and DWC2 IP which is used by Canaan K230, > and made relevant changes to the DTS. > > This series is based on the initial 100ask K230 DshanPi series [1] which > is based on the clock and pinctrl series. Check the details in the link. > > Link: https://lore.kernel.org/all/20260115060801.16819-1-jiayu.riscv@isrc.iscas.ac.cn/ [1] > > Changes in v5: > - Changed the year of Copyright to 2026. > - Add blank line after the declaration of variables > - Fix wrong alignment. > - Link to v4: https://lore.kernel.org/all/20260120143243.71937-1-jiayu.riscv@isrc.iscas.ac.cn/ > > Changes in v4: > - Shrink reg length to match the address/size-cells in k230-usb-phy yaml. > - Move all PHY instance creation and initialization from xlate to probe. > - Modify xlate function to only perform index lookup for PHY instances. > - Define all register base offsets macros at the top of file instead of > hard-coding magic numbers directly in probe. > - Link to v2: https://lore.kernel.org/all/20260115064223.21926-1-jiayu.riscv@isrc.iscas.ac.cn/ > > Changes in v3: > - Please ignore v3. > > Changes in v2: > - Fold the child into the parent in dtsi. > - Define one usbphy with phy-cells=1. > - Delete the clock of the usbphy as it is not needed. > - Link to v1: https://lore.kernel.org/all/20251230023725.15966-1-jiayu.riscv@isrc.iscas.ac.cn/ > > Jiayu Du (4): > dt-bindings: phy: Add Canaan K230 USB PHY > dt-bindings: usb: dwc2: Add support for Canaan K230 SoC > phy: usb: Add driver for Canaan K230 USB 2.0 PHY > riscv: dts: canaan: Add syscon and USB nodes for K230 > > .../bindings/phy/canaan,k230-usb-phy.yaml | 35 +++ > .../devicetree/bindings/usb/dwc2.yaml | 3 + > .../boot/dts/canaan/k230-canmv-dshanpi.dts | 17 ++ > arch/riscv/boot/dts/canaan/k230.dtsi | 35 +++ > drivers/phy/Kconfig | 1 + > drivers/phy/Makefile | 1 + > drivers/phy/canaan/Kconfig | 14 + > drivers/phy/canaan/Makefile | 2 + > drivers/phy/canaan/phy-k230-usb.c | 284 ++++++++++++++++++ > 9 files changed, 392 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/canaan,k230-usb-phy.yaml > create mode 100644 drivers/phy/canaan/Kconfig > create mode 100644 drivers/phy/canaan/Makefile > create mode 100644 drivers/phy/canaan/phy-k230-usb.c > > -- > 2.52.0 > Hello Vinod, could you please take a look at this patch? Thank you! Regards, Jiayu Du