From patchwork Mon Aug 12 14:15:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13760783 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 97547C531DC for ; Mon, 12 Aug 2024 15:30:27 +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=da6/CrqfI2FlTClnc/DLA5FtKFqmPngXBVdMliX8zLU=; b=XdjEYvfZY275W4 s/3IxwUwYmaQK0MqFF/DBkiHF5znISiqDffRU/C+8WOPHk3WILRmjk8xqSsD5aepK5INAD3lkOf+t 4D4ZE/GqrBo5GvntP7ToL8hnisnZEQJ8nlM7cPSEFUEWdi0sHA55ylAvZ+BaNLihwRUUHsWSiEqtp V1NpVQMNdB4bec/XRNwDtTpcBkR5ZcZ7ZdS2jsxoRW2nAFWrGnUNDzrB5RhN/Kf1vOFHeUE96iMcs 92ymjnRSP6AKQvrZsdJfk8VN53UKADZaaq07Mk2cxDCfeTRZTnESctY+87S6vVFblhcwcktswYIql qjCLGxeL3M2a5I/iGxyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdX07-00000000jpi-1IYa; Mon, 12 Aug 2024 15:30:27 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVq8-00000000YHG-1WFS for linux-phy@bombadil.infradead.org; Mon, 12 Aug 2024 14:16:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=pd/VpIRV516pqsgMsPuysNVtHzsHKVyjXVwp6LAdEi8=; b=JroDSEtxy0u2gdVpfUUVcSYgKQ neETp5k5XVZgr2z3my2Xa95V88+iC9z1ARQUUtnsHnjNpx4yOG6L3xcil8ZunM+V//RLTTKfmg7l6 nzXX5Is8E8UBqbok1t5k+CdQXGJ4+uPSqem9UuPaBi/5FtXm8C2QOgMsgt3ud7QEsVtWLRdM3vAXO 9O6Hk55UJFz+sr2qz5H1J7+frYyseReHUZg6IhWHjymJLBuLrNv7ukGLTofXW7JY9TwJS0+jOinhD mM0JEMFD3sYoPpckrAPAsgk5A/Co3RsfC8VaD3csRT3pCsYQftq6y1+XXuZ7xhJ0zUduBZPGwRLgZ 1Ps2B6vA==; Received: from mta-65-225.siemens.flowmailer.net ([185.136.65.225]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVq4-00000007aLu-1b4u for linux-phy@lists.infradead.org; Mon, 12 Aug 2024 14:16:02 +0000 Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 202408121415541479f3c68cce4030ac for ; Mon, 12 Aug 2024 16:15:54 +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=pd/VpIRV516pqsgMsPuysNVtHzsHKVyjXVwp6LAdEi8=; b=hLKWZiAse5JNnpzONR2N3Qr9k8QD8eToGyE3sS7yIaom9QuW26iJLSAEPUN9l4vChF14QR dz+JHQEAFK9bAgoTPOmcPAuIdkxfoLYUnCyeGt5AQ5yfpA9Hz7xHleTa83DWuKniD4N8Xglf 2dHWVqUfhK+aX689K19w3COLiqcwp4/0qVTUotmoYy5q4vgzIVp2b6tVKF78ZRgwb4RJuKH1 WyEzRMC9bagza537JMGkVnCoL6EYw09geoQJn68qwqw8lrYbmOY5F1QCUpkca7OtrJbfZ8Jf Dl0XkV+BGZmyTK3sQTHI63gpUtiFu47ah+9OYuKw0If2nW6JX+QqRDwg==; 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, Dan Carpenter , Conor Dooley , Emil Renner Berthing , Krzysztof Kozlowski , Rob Herring Subject: [PATCH v2 0/3] riscv: jh7110: Fix configuration for on-chip USB 2.0 support Date: Mon, 12 Aug 2024 16:15:50 +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-20240812_151600_656508_6717F1A0 X-CRM114-Status: UNSURE ( 7.97 ) 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. Changes in v2: - fix copy&paste mistake in error patch found by kernel test robot and Dan Carpenter 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(+)