From patchwork Tue Jul 5 13:06:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 12906570 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 D0537C43334 for ; Tue, 5 Jul 2022 13:07:56 +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=WJNaDUtTkpfb9JiaerabSXzcoR2GprevDN8qidMC/DQ=; b=45IgUiS/XbfY/S f1kUFmUqNKn2JGNEhhMfEyFyuxaThFcw0TXPAnwH1TiU1TZw/FNn7FdqgaTsXDPpLCJgM81gSKQ7k L2erMIxIl2vtPsKudRxrZCOe697VocwvCCo1ZgceR+vWiw9aWC4gU0tJoHmy3KPsUH17DlMzYhwP+ bwNUB5hLFqNbGLS3De4wHTvp0/Y+Y45jaz9f9jVlhbzIfMU8npcVC98BMd6XnZWvCq0ZeBk+h6X8b DuxWQAYpMB7Aru2EM8YcasAKNEEdIa2ut6qDENeXSFQ4Xj5sb6LxDAe3+pHggaqCdp8ER6z8T9tGk CKwiALtjswpBgALwC3lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8iGX-000MAf-Sn; Tue, 05 Jul 2022 13:06:57 +0000 Received: from ssl.serverraum.org ([2a01:4f8:151:8464::1:2]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8iGM-000M5n-AM for linux-arm-kernel@lists.infradead.org; Tue, 05 Jul 2022 13:06:47 +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 3323C2223E; Tue, 5 Jul 2022 15:06:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657026404; 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; bh=/IavIY2Vrj9IH8y51eRTI7LcQe0kKgpAF4T5aTj0Ys0=; b=sum74IDF9ZBTp/16YfE5rCYgc28RRad0BZrhYJgl7R1Ram5kWJg7DP40R//N0mTNvXpUja zEwlTwoQfH8R7iptTBykCkPLgvYSXrN0A3O5pBbzsDEOz4ZI2q91kYTkqU5wS22djF27c4 mTo4UtQhpMFootFYIZmZx88nkQztK1M= 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 1/2] ARM: dts: lan966x: add clock gating register Date: Tue, 5 Jul 2022 15:06:36 +0200 Message-Id: <20220705130637.1386120-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220705_060646_550164_D1471986 X-CRM114-Status: GOOD ( 10.78 ) 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 The clock controller supports an optional clock gating register. This is necessary to expose the USB device clock, for example. Add it. Signed-off-by: Michael Walle --- arch/arm/boot/dts/lan966x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi index a5d456fa4e04..ab70b7ad1c5d 100644 --- a/arch/arm/boot/dts/lan966x.dtsi +++ b/arch/arm/boot/dts/lan966x.dtsi @@ -65,7 +65,7 @@ clks: clock-controller@e00c00a8 { #clock-cells = <1>; clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>; clock-names = "cpu", "ddr", "sys"; - reg = <0xe00c00a8 0x38>; + reg = <0xe00c00a8 0x38>, <0xe00c02cc 0x4>; }; timer { From patchwork Tue Jul 5 13:06:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 12906571 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 21636C43334 for ; Tue, 5 Jul 2022 13:08:04 +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=1P95U3dy+/pV0egbjwFLC4/Df8hJ1LzP3HoBv49eXxE=; b=vwRNlMgWdMMBtU 9NVTZJstATZnsF3dQM8r0/+cYnCrF4n/7Oy0uxKTq8s5rUW3QkToOuwdoyuR8+MV18xFkG0SOguSl ZH3vnRBIQ2D4gnYl/0aGFmo/10KZ5YgggR6l0YnkoBublg1RbjwG0S9zAk4OfqCjut3Unr/Cm2Gdw Xz/Xd/IWaAs1C6/CbjbIaghiRsS0qmYbM0qphhaTFst07BU1fBzKZ87oxTRfkt4M+L92mSxo4f3qn 6leeuWTXQgVmqiGTOiaCQ44fhbR5Q/c1OPA8R3C2ZjtFxXOt/5HdM4oy0ZAD1quoqdoZMmzy2SAL3 ab0MymxGPWdaKw9nibOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8iGg-000MDR-Qf; Tue, 05 Jul 2022 13:07:07 +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 1o8iGN-000M5q-Gb for linux-arm-kernel@lists.infradead.org; Tue, 05 Jul 2022 13:06:50 +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 AA7ED22248; Tue, 5 Jul 2022 15:06:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1657026404; 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=e1hHCNj4Kb675988zlx5BDvAHEpRvATkmiKil1lNsdY=; b=LD2GMfZiP3JP7EE7cr2hKLIwIP5IkoJeSjdhwmw09repIc55h3Jz6MWIBOIXlBZEewXqS1 wshFCzEs0bUvExctbfbgHH2yhDS3r0v/5QaiRIopU7pEHvJYTMSWvlfc9ErpQNpAVg8Dn/ ASZ4tUAUz1OHkISgnvswN1kfMZLfHXM= 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 2/2] ARM: dts: kswitch-d10: enable the USB device port Date: Tue, 5 Jul 2022 15:06:37 +0200 Message-Id: <20220705130637.1386120-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220705130637.1386120-1-michael@walle.cc> References: <20220705130637.1386120-1-michael@walle.cc> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220705_060647_760577_74083B7F X-CRM114-Status: GOOD ( 10.15 ) 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 --- arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 5 +++++ 1 file changed, 5 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..d0d26e136c38 100644 --- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi +++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi @@ -200,6 +200,11 @@ &switch { status = "okay"; }; +&udc { + atmel,vbus-gpio = <&gpio 66 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + &watchdog { status = "okay"; };