From patchwork Wed Oct 13 11:12:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 12555787 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64842C433F5 for ; Wed, 13 Oct 2021 12:39:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1A03560527 for ; Wed, 13 Oct 2021 12:39:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1A03560527 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id: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=YI120YQOkheNnkNWKrLkV9dybmkzZxi7aHIW9OjB4P4=; b=ScAUT1rSwZWgYl yqC0vEeWrjbgbFUsLUszbEVA2d7eTJ4g8Ko77g2Q8Vity7/reccGeB/cBIEABLCf9mr0OnIz1DsKI 6a4yQgxXWQWeWI9FcE3NphnwB98x7lwWWg5F+qTAS2KkbeLAI6THTJ04BOSvx78dgBS8KdTNcux1q Q3G3eZ4fpl+vDGIhGocWTox//94eRwa5BfdhMv+Z6CTJsdzW76k5YQo4PX8VvOwiZVk1tQ77wuYeS hLOG3BU8jovGdtrr2eJVynSx3MSwPRN/StKPZcCQ0lMI2oSAmnHSK1ZkSk9HX+uQijU+NAEJUj4WV gQZBjo5ulvk1pBTegAAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1madUk-00GbLp-ER; Wed, 13 Oct 2021 12:36:31 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1macCS-00GESk-2S for linux-arm-kernel@lists.infradead.org; Wed, 13 Oct 2021 11:13:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634123612; x=1665659612; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=MMVC8Cj/r5CWKskBUeOs3cYU/+tk7nMQILUJfgpN5dw=; b=nS9s0UOlPr9JgSg8pRePRFZGtIJDxs/ZdKT7t1OZBl0MJpJeeAMIcqdx BF7XLavqe4MEbvslVkUiqrLH+oka2TzWzNPBh+zWjpBlmKZy64OEp1Dl9 ImUnCLbwIHBNSvVe/omlac345cl3JPJpuO2Qu4GzeOHTOiWDDxlFmDW9i rxrGSwXdULLbhDshHQ46JGy9iO85ZUGUyKr3PiL6lqaGZrKwjERUtlUKm MxBLsO0r2HWi5tU1Hy358GMX7aqgJCuO8TOHbe1rX0NpXT0AqKGJv9LOs 2a7a3LFqNTq3vSL/DqSLmXYTBMrBwLTG14c7HOman3CpmYxL78un/J0fh g==; X-IronPort-AV: E=Sophos;i="5.85,370,1624312800"; d="scan'208";a="20020842" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 13 Oct 2021 13:13:25 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 13 Oct 2021 13:13:25 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 13 Oct 2021 13:13:25 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1634123605; x=1665659605; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=MMVC8Cj/r5CWKskBUeOs3cYU/+tk7nMQILUJfgpN5dw=; b=FQShdrDXyqWNWqsBq6C2fyyU42LoHylnMpB5layNRCS1rrO/viB4XSbY Mv5T/tFv1u3zMYjpkhElS7bBsUzpsFaKyZigyMgV2Arp54PwKAiBvELXJ rTS/P3czj26GVbii0nKNR+xlzJyz39IpTrIS971zJqop6Yn9jPuZKxOAt KqlMVMUCufmGRKraTPApxx/m4QKPO5Z6rU/Ilb3upMovg8I7jCT7m1cTS +eGGb/HK3qVzbne1xUc893E3M3W9gEguWFK7mu3QhP+MkweNspD3as/9Z aQkB+yuR4d1emY4IQVLloz+pCnF5xS2VviOg6YlgXsZCgWu0wEdgvt8Sf g==; X-IronPort-AV: E=Sophos;i="5.85,370,1624312800"; d="scan'208";a="20020841" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 13 Oct 2021 13:13:24 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.121.48.12]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id C42A5280075; Wed, 13 Oct 2021 13:13:24 +0200 (CEST) From: Matthias Schiffer To: Rob Herring , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Matthias Schiffer , Markus Niebel Subject: [PATCH 2/3] ARM: dts: imx6qdl: tqma6: add ERR006687 hardware workaround for "a" variant Date: Wed, 13 Oct 2021 13:12:01 +0200 Message-Id: <20211013111202.6231-2-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211013111202.6231-1-matthias.schiffer@ew.tq-group.com> References: <20211013111202.6231-1-matthias.schiffer@ew.tq-group.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211013_041332_467292_E2CDD4E6 X-CRM114-Status: GOOD ( 13.20 ) 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The TQMa6x "a" has a workaround for ERR006687 implemented in hardware. Add the required pinmuxing and related setup to make use of this. As board DTS files based on the TQMa6x SoMs will define their own pinmuxing for the FEC ethernet controller as well, we can't apply this pin group unconditionally; instead, it is the responsibility of the board DTs derived from imx6qdl-tqma6a.dtsi to include this group. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx6qdl-tqma6a.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-tqma6a.dtsi b/arch/arm/boot/dts/imx6qdl-tqma6a.dtsi index b679bec78e6c..bfb67da64b96 100644 --- a/arch/arm/boot/dts/imx6qdl-tqma6a.dtsi +++ b/arch/arm/boot/dts/imx6qdl-tqma6a.dtsi @@ -4,6 +4,12 @@ * Copyright 2013-2017 Markus Niebel */ +&fec { + interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, + <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>; + fsl,err006687-workaround-present; +}; + &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; @@ -26,3 +32,17 @@ pagesize = <32>; }; }; + +&iomuxc { + /* + * This pinmuxing is required for the ERR006687 workaround. Board + * DTS files that enable the FEC controller with + * fsl,err006687-workaround-present must include this group. + */ + pinctrl_enet_fix: enetfixgrp { + fsl,pins = < + /* ENET ping patch */ + MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1 + >; + }; +};