From patchwork Thu Jul 7 13:25:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 12909583 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 B19F4C43334 for ; Thu, 7 Jul 2022 13:26:19 +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:References:In-Reply-To: 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: List-Owner; bh=EmbA8AC/4qrkJqHqYynMZdh4kEhQsFboL4HgH2kqBUA=; b=19aQiA4K8vFUJ8 SSwgDJei3FvTy4c/6sH3eeRhGkgkj8gt/wQ6lG2f8CHnyrQyzfBAdOgn1hT0t3SZqH3tljTzZcfLE OaZ3IOY0SWVUSqalpf/yc29sgyhQoy+/X+fJrMaZCx4qMzi0L+6qfoFHuF11Fa74cP7BHtVd8aDOu Ov+DZu9hsnxk2OwU+Hy//t88oZKXTaeE2UKQcQiOh+JdET+3IiDTekQ6D2iggnoGEYuhW4cDiOZSy Yvjf9KwgEWBhpPVruIrhpZaVpQrVqCXslY1FkbyYJ4lHzwo7q8tC3v1/tnu5SQ7lHDHmsD2pdLWs9 AFlR0FVGQkWtGgkIZrPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9RVK-00GF2T-AL; Thu, 07 Jul 2022 13:25:14 +0000 Received: from ssl.serverraum.org ([176.9.125.105]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9RVG-00GF0L-EX for linux-arm-kernel@lists.infradead.org; Thu, 07 Jul 2022 13:25:11 +0000 Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 814EC22248; Thu, 7 Jul 2022 15:25:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657200306; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rfVNhUaiKivo0ZTq1LnzNfkdUYyvDKnK+aAp1PrLvvg=; b=pnqNtZBCzcBWgRXo3iY/d2uLR1qZ/2SmpKnl/Fea/BBL079ibUmVQhZxGKbJF0xZuZACMy Wy3KHt2IdZyBim6IK7CSsWN6mMXI5vyCTDw+S60k41acOzemU9EIaj8b8sYCMjBn5zsj2L 6cM2vMRFCGX8/fB0Y69wgZs5XNcXPNQ= From: Michael Walle To: Rob Herring , Krzysztof Kozlowski , Claudiu Beznea , Nicolas Ferre , Alexandre Belloni Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH v2 2/2] ARM: dts: kswitch-d10: enable the USB device port Date: Thu, 7 Jul 2022 15:25:00 +0200 Message-Id: <20220707132500.1708020-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220707132500.1708020-1-michael@walle.cc> References: <20220707132500.1708020-1-michael@walle.cc> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220707_062510_717012_773C228E X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that there is driver support for the USB device, enable it. Signed-off-by: Michael Walle --- changes since v1: - add pinctrl node, Thanks Claudiu .../boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi index 5a6c5f7c371a..3eecaa1b7205 100644 --- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi +++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi @@ -76,6 +76,12 @@ usart0_pins: usart0-pins { pins = "GPIO_25", "GPIO_26"; function = "fc0_b"; }; + + usbs_a_pins: usbs-a-pins { + /* VBUS_DET */ + pins = "GPIO_66"; + function = "gpio"; + }; }; &mdio0 { @@ -200,6 +206,13 @@ &switch { status = "okay"; }; +&udc { + pinctrl-0 = <&usbs_a_pins>; + pinctrl-names = "default"; + atmel,vbus-gpio = <&gpio 66 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + &watchdog { status = "okay"; };