From patchwork Tue Nov 19 01:44:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: E Shattow X-Patchwork-Id: 13879347 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 1348DD60D0A for ; Tue, 19 Nov 2024 01:46:13 +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=vLRbw70/XWFplLW5h9k/KS9zTkm2CIKFYhU+faJ64aE=; b=kPjZHX4Gdkfc76 xOQ7XBTXKGFfl/eTRQh6F7qu4ppjGNEzOPOylO20XMAYkNaoBuaTxkmGMl9LeYfsQrLZmA+V/G8gr MojiZ/rQv8Qd5vkhGE2VX0rq+CzjvJDQanUNGh+cHjiGXrD9CT96gBhl/NUjTgNb/G2BxZklLwSIo eN6MYk1GW58oeMqT87fM/UfLtpLlQ17jQeqrFIVfvlR4fDJ27OWk+BQgkkuyyr5vIgUnFqHStxalg ba9BjyQLbn9lKpyE+CwmuAUfgMU13HSTmHMFBN0w49HXkqz/yeNE/TZ5Zpe5F8vZvkaNzZiUFyoRJ x74jV1O8R4HHHYM0eP/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tDDJW-0000000B6DI-3hSz; Tue, 19 Nov 2024 01:45:58 +0000 Received: from freeshell.de ([2a01:4f8:231:482b::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tDDJ5-0000000B65p-0yIU for linux-riscv@lists.infradead.org; Tue, 19 Nov 2024 01:45:33 +0000 Received: from hay.lan. (unknown [IPv6:2605:59c8:31de:bf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id 87166B4B0D98; Tue, 19 Nov 2024 02:45:25 +0100 (CET) From: E Shattow To: Jisheng Zhang Cc: E Shattow , Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/1] riscv: dts: starfive: jh7110-milkv-mars: enable usb0 host function Date: Mon, 18 Nov 2024 17:44:34 -0800 Message-ID: <20241119014449.49936-1-e@freeshell.de> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_174531_464954_FD6A76BA X-CRM114-Status: UNSURE ( 8.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Enable host mode JH7110 on-chip USB for Milk-V Mars by setting host mode and connect vbus pinctrl. This functionality depends on setting the USB over-current register to disable at bootloader phase, for example U-Boot: https://patchwork.ozlabs.org/project/uboot/patch/20241012031328.4268-6-minda.chen@starfivetech.com/ If the over-current register is not prepared for us then the result is no change in functional outcome with this patch applied; there is an error visible to the user and this additional usb configuration fails (same as it is now). The existing three VL805 connected USB ports via PCIe on Milk-V Mars are not affected. Changes since v3: - Rebase on linux-next/master - use tabs for code indent Changes since v2: - Rebase on 6.12 Changes since v1: - series name (was "[PATCH] riscv: dts: starfive: jh7110-milkv-mars: set host mode and vbus pin for on-chip USB 2.0") - adjust pin label to obey dtschema - use cover letter E Shattow (1): riscv: dts: starfive: jh7110-milkv-mars: enable usb0 host function .../boot/dts/starfive/jh7110-milkv-mars.dts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)