From patchwork Tue Jan 18 20:29:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12716868 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 8F6F6C433F5 for ; Tue, 18 Jan 2022 20:31:53 +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=6C8LM+bogWym5bnRG9C2In5uYvvgILwDDRhUwXAumn0=; b=N0WTXHbem9lcBG cQOQwgqhZwAepQtWug0YPHizXt6aDB2MsrYvWFyec69B1hdOZTxiaLOBPR5KRHMCd482KEHaVcQVf A0sT/SSkvnBBQMlAkZbC8199bUGmHPkDcnzHRbVMWtlG277IcnnbjPU3mG6SORwTBEJU1R5Pj6vz9 KNF6Ui/LM/bdXAaV5+TPZN6/k07nTNoIfQLlxU7Jv+uBv08HSoXeJAHWeklMBI8oXSDcWH+V08DVC 6JZV1biv5P0Np5hzQGcB1pA2/cp/plsa46gcZMF+DEL8SbdbWb6A0Fm70DFk3FJKhjDanQxOf5PMl dFEjo1IMPqfWWdhXwzJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9v7t-002swi-MI; Tue, 18 Jan 2022 20:30:45 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9v7V-002ssH-Nd for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 20:30:24 +0000 Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id ECE9183866; Tue, 18 Jan 2022 21:30:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1642537818; bh=z0LKj8J2oJNauqtllHBFxWfOlMBoPHJKePdS7OlBdJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UGNpKW3ZvpDIvROlrZc20Gp86vGuMWx9/ycQ5mDashnSuYXlSkAQ5b+Eigoq7vZ1g SWve/kP3l5PgEhQ0EX48ziY5FJjsnjFF4kJr8pbi+a91QTWk7J/LNKUVI3+vH3GAc6 ymQOMwz21AHZJU+ixNlyAB+dbCVft8TNxldtrHQ5x8RG9D76zn1T9cmePGDjPrv/ui Ubv8/Mo2GTeblhKDHgtZVXJDx9gRxwB2U1KiKXLkduB70f5zunVaTc7a5Yl4csg4fK J2yaZSVyd++TzY5Yyewq0TkiFSdZCL1/WAMBNgECM2MkBR2PH9sDLTm8C/zF4enGQW encUuPmFB22xQ== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: jneuhauser@dh-electronics.com, Marek Vasut , Alexandre Torgue , Christophe Roullier , Gabriel Fernandez , Patrice Chotard , Patrick Delaunay , Stephen Boyd , linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 3/5] ARM: dts: stm32: Add alternate pinmux for ethernet0 pins Date: Tue, 18 Jan 2022 21:29:56 +0100 Message-Id: <20220118202958.1840431-3-marex@denx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220118202958.1840431-1-marex@denx.de> References: <20220118202958.1840431-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_123022_118433_D1F3BBEA X-CRM114-Status: GOOD ( 12.62 ) 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 Add another mux option for ethernet0 pins, this is used on DHCOM when the ethernet PHY 50 MHz clock is generated by the MCO2 on PG2 pin and then fed back via PA1 pin. Signed-off-by: Marek Vasut Cc: Alexandre Torgue Cc: Christophe Roullier Cc: Gabriel Fernandez Cc: Patrice Chotard Cc: Patrick Delaunay Cc: Stephen Boyd Cc: linux-clk@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com To: linux-arm-kernel@lists.infradead.org Tested-by: Johann Neuhauser --- arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi index 3b65130affec8..2cd2ac9beaf20 100644 --- a/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp15-pinctrl.dtsi @@ -338,6 +338,40 @@ pins1 { }; }; + ethernet0_rmii_pins_b: rmii-1 { + pins1 { + pinmux = , /* ETH1_RMII_TXD0 */ + , /* ETH1_RMII_TXD1 */ + , /* ETH1_RMII_TX_EN */ + , /* ETH1_RMII_REF_CLK */ + , /* ETH1_MDIO */ + ; /* ETH1_MDC */ + bias-disable; + drive-push-pull; + slew-rate = <2>; + }; + pins2 { + pinmux = , /* ETH1_RMII_RXD0 */ + , /* ETH1_RMII_RXD1 */ + ; /* ETH1_RMII_CRS_DV */ + bias-disable; + }; + }; + + ethernet0_rmii_sleep_pins_b: rmii-sleep-1 { + pins1 { + pinmux = , /* ETH1_RMII_TXD0 */ + , /* ETH1_RMII_TXD1 */ + , /* ETH1_RMII_TX_EN */ + , /* ETH1_MDIO */ + , /* ETH1_MDC */ + , /* ETH1_RMII_RXD0 */ + , /* ETH1_RMII_RXD1 */ + , /* ETH1_RMII_REF_CLK */ + ; /* ETH1_RMII_CRS_DV */ + }; + }; + fmc_pins_a: fmc-0 { pins1 { pinmux = , /* FMC_NOE */