From patchwork Mon Jul 8 12:08:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yao Zi X-Patchwork-Id: 13726540 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3827FC3271E for ; Mon, 8 Jul 2024 12:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6s1I7eh31TPBBS7AYeg4Fz5c4wvpQAVuztpRBpt/V6o=; b=k+tXmQOwjE5VG9 j7z1im2uatEpbJbVGLmrPrYz7roo0A6tdGLLxdKKZyko+A1ei5mTXdZEaf4GDLlvo83HM+m4yuaNI fjdxkwzBNWbsWcrxmnCLGRYJ0yEQeAh3r0kfMYV9dXZjHmkzMuDwW9WwEz1GRLPPN51xVY4YWVUmV Zq8KpIUujgltqpudANOyErB/ZSZw+pO9npwUPhzlQYDBY1z5jLwwf8EZAIJJP4fXzVyjmZ8GFkoXh VRdXSuak+39hSX11U1DVmkSRQQZxxV0LN4jkincZmyFtTX7+Gw0nRiv2fHoxlU/6cDhcRiqmGcZya NiuMmw4oDxZlmjNpf+Bg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQnBf-00000003iZL-3w0d; Mon, 08 Jul 2024 12:09:43 +0000 Received: from layka.disroot.org ([178.21.23.139]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sQnBd-00000003iW2-0rZm; Mon, 08 Jul 2024 12:09:42 +0000 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8E9E041AAD; Mon, 8 Jul 2024 14:09:32 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZZdBFLd7Gx_I; Mon, 8 Jul 2024 14:09:31 +0200 (CEST) From: Yao Zi DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1720440571; bh=LixmteUS5gYgJ/PPXczu+PsnnDVZsOkJdxUiZfHsntw=; h=From:To:Cc:Subject:Date; b=D8q1AFg9z24hBB18YM8MJt044NefpABngXoUt0Z3FlzL2tkFswv3SlkdPaNOZqPuP LHCQaSX3n7Vxr6EhXUWfJfoX4IerSx0AJ8uN21Um97G1YY86q5mUNcidnKw1HGPbWz M6fNSRQIJh00FAHGk8su6FiL4udi2E1aaQbsYG4yU3Av0VDaJkWXYgzm/+cTok5jGz X0BqirpWpzZ7SroB6ZWUpQhpoff9inRjovijWA52o2KBm6P5kCb9ZH7ZA+/+QEXiEh MQpev+aQ/v4xG/3+44KTuTN0Ouvd4FhuruqxH+61RNWhPZA+WSIXNESeO/nIN3sGrs ZH6rPB8wrQxBw== To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jisheng Zhang , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Yao Zi Subject: [PATCH 0/3] Add USB support for Sophgo CV1800/SG200x SoCs Date: Mon, 8 Jul 2024 12:08:27 +0000 Message-ID: <20240708120830.5785-1-ziyao@disroot.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_050941_677597_83587A18 X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Sophgo CV1800/SG200x SoCs integrate a USB 2.0 phy and a USB 2.0 controller based on dwc2 IP. This series implements a basic driver for the USB phy and add USB-related device tree nodes. Yao Zi (3): dt-bindings: phy: add YAML schema for cv1800-usb-phy driver bindings riscv: dts: sophgo: add nodes for USB phy and controller phy: sophgo: add usb phy driver for Sophgo CV1800 SoCs .../bindings/phy/sophgo,cv1800-usb-phy.yaml | 67 ++++++ arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 23 ++ drivers/phy/Kconfig | 1 + drivers/phy/Makefile | 1 + drivers/phy/sophgo/Kconfig | 10 + drivers/phy/sophgo/Makefile | 2 + drivers/phy/sophgo/phy-cv1800-usb.c | 213 ++++++++++++++++++ 7 files changed, 317 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/sophgo,cv1800-usb-phy.yaml create mode 100644 drivers/phy/sophgo/Kconfig create mode 100644 drivers/phy/sophgo/Makefile create mode 100644 drivers/phy/sophgo/phy-cv1800-usb.c