From patchwork Wed Jul 31 20:18:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13749170 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 C9724C3DA7F for ; Wed, 31 Jul 2024 20:18:54 +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=2yDw+6qyg5F/rJG+fpPaG6vLmkxIGv6R3OHM3fLk5Xo=; b=Ean8WPllAio2RL B5O1uLPckG/saxhrpYrldOO4qmczv1Vu5SDlVJAVUDuzyVzUEX0ExvWizPxu0t4EneA/Wy3Vv4/N4 R8HGvGhEcrNgFzpnU0vd0CSWnKEdOebG83v2BmEvO6mRdZtXkXcAfvXegGEa0ondsW88nBsUt1wkF eSPqYr/45k1wy9pEY7fbY0xjUUTySQvjHpkJ5w49pDH2iiJg4hsJzD7YSsWf4p7xoaAJzLY5qY6w3 4aClNlrWLEGde9eoMQp7fCKngJoioGr0jVCRWy6keOU+wp7QA4m/lEGSnCqvhXg7EdCPZ5HauPD0f 7smIImJVN6LX1byx0zxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZFmg-00000002Qyq-2EHr; Wed, 31 Jul 2024 20:18:54 +0000 Received: from mta-65-227.siemens.flowmailer.net ([185.136.65.227]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZFmb-00000002QvW-3YgI for linux-phy@lists.infradead.org; Wed, 31 Jul 2024 20:18:52 +0000 Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 2024073120184326bbf5fe430e33e344 for ; Wed, 31 Jul 2024 22:18:44 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=jan.kiszka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=K3tmAYtJFHQxY5Qv/OUlau8tmffz0uL7OeNMBjM/53c=; b=Uthw2ChLh6B6H9OCSMfUcqx0SSLb85YAR4qUN3Un1UYTseoTkiS4sfVAy7eiLibnxSLp5n tHwhxfc+ueSKtboIwxwXOuLfMm7CLslHWlnZS4fRg3u4pZR8QQnRbW+TeksGly88MpdACENG YVdtpYmS/G/1u8OI1pUf/dhvpzlSI77cSqn+PBNH3Iy4v2GSDSpB2GqAgiop78P0IPdGtkqh 0euVB5h9r/6Lc9m9iQtw1MJiRyzzrvVcbz7vDeLUxHfv/bKizsrs4F5zYcGHrbUKciDPY9QU JVk/W7aCxTyNPW71XT+LbSe+SyOkFoDhXOn+Gc2kSidfjczxIfyfTHjA==; From: Jan Kiszka To: Minda Chen , Vinod Koul , Kishon Vijay Abraham I Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley , Emil Renner Berthing , Krzysztof Kozlowski , Rob Herring Subject: [PATCH 0/3] riscv: jh7110: Fix configuration for on-chip USB 2.0 support Date: Wed, 31 Jul 2024 22:18:40 +0200 Message-ID: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_131850_556110_ACF2A67F X-CRM114-Status: UNSURE ( 6.71 ) 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 While mainline has support for the USB controller of the JH7110 since 6.5, this never really worked, even not with latest downstream kernels by Starfive - unless you were also using an old downstream U-Boot version. The reason for that was a missing syscon setting that prevented the connection between USB 2.0 PHY and the controller. This series finally fixes the issue. Jan CC: Conor Dooley CC: Emil Renner Berthing CC: Krzysztof Kozlowski CC: Rob Herring Jan Kiszka (3): dt-bindings: phy: jh7110-usb-phy: Add sys-syscon property riscv: dts: starfive: jh7110: Add sys-syscon property to usbphy0 phy: starfive: jh7110-usb: Fix link configuration to controller .../bindings/phy/starfive,jh7110-usb-phy.yaml | 11 ++++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 1 + drivers/phy/starfive/phy-jh7110-usb.c | 20 +++++++++++++++++++ 3 files changed, 32 insertions(+)