From patchwork Wed Nov 3 11:56:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 12600663 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 4276BC433EF for ; Wed, 3 Nov 2021 11:58:41 +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 094C7610FC for ; Wed, 3 Nov 2021 11:58:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 094C7610FC 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=De4IAvbGNGYA5zdXRg5GtVaRLayqMIERqq2D/d1FkJc=; b=KrX/n2jRlnJgKK UPOnb5jBq6DndeIxNWqVO/CEWMOoBuX+eu7Apk8VZoCTHXjN6LX00XX9RssFOF4qrxLPMCrB6xD1l +6l/q5tj8o59ywrHSW71vQBtczmnyKEVTNATcfPNkfBRc9ygzlD9uEGULWnF7G0+NwWIqfkIv6MZh VeWOOFd3xpKuRGN2uoM/yDjFYbvXijgXQM+XNE4Ul1QWVCcXAkeq2idZVITtvSXJDc7KTP+1VdAIZ kzyl/4nlD1TJX+8uFJc1XK60BWSNTVR404Gq7mJokzYS+yLFQ2x51w7LbdAASAg3qo3f9ely6lJ8V WOL8lNyxVsDGn/eH8nbw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miEtD-00529E-RC; Wed, 03 Nov 2021 11:57:12 +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 1miEsx-00522v-VA for linux-arm-kernel@lists.infradead.org; Wed, 03 Nov 2021 11:56:57 +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=1635940616; x=1667476616; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=AjCatsvsAwdT8YVRiZph5a+q3FYEFUIVNX1Zhj7OUGs=; b=W57xJOC4499n5C4KgsmIweUQp6w0BCIYswHIvn5/Hxtj1r5ACnB4kgwN 0REXQ3f3vDbQ/O2o0c3J9BgsS+o9begBySNGO21gm08MjGXeeeUclRFWt xb1nQzafn7CHqRBGomz5P026L/j3f6w8I/sHiz0wnWuTo0aqlPRhnRzLa OegLb1T0GSTYiBszBoBEtR99D2tZSHxUhHFgRhAJI0xsaPXWNopfcUs5H aXYcTC6g4LpaD4guDltMmxiHvFx44Sg6/vgRe35VJhXhb5UxKCYWZmaHw wxL1uZuHzkCfFqZs0LtXNzBAXlpiRQicaBikUGiGrOJwOEYOaIYVSUHoT w==; X-IronPort-AV: E=Sophos;i="5.87,205,1631570400"; d="scan'208";a="20323804" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 03 Nov 2021 12:56:49 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 03 Nov 2021 12:56:49 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 03 Nov 2021 12:56:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1635940609; x=1667476609; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=AjCatsvsAwdT8YVRiZph5a+q3FYEFUIVNX1Zhj7OUGs=; b=Ps8hRGuzpFm7VUIhVXuOP+PiYH0ryINOttTt0TMeeR8YGiByLVme7AHH Ch4AqYDUOzZ83UxQehzLbdKHM7hZvtQTi5jLQ19uKN308sVeBEixJWqZD wMFNHVXHI46mdQyniuB1jKAXAL5tHUpt5f5jJL0C/s3UwjkcZgms0qpeH kdA1QdPPcir+jlZdHcFH2izkZfFJ8qg0fRnJlw/ADrKGcP9504ZsBRYz7 kuHaSc7Aj4Njn1KseHtipIo19WAcLS+ZWHm9dObW1p2dpi/bpSq1OP9ZU wuXtbzge3dr6QPfZnVVD8Nd15Q3gnxXuVxOPjxnmKwlOdxtB/mllFmmOX w==; X-IronPort-AV: E=Sophos;i="5.87,205,1631570400"; d="scan'208";a="20323801" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 03 Nov 2021 12:56:49 +0100 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 CD7BB280075; Wed, 3 Nov 2021 12:56:48 +0100 (CET) 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 v2 2/3] ARM: dts: imx6qdl: tqma6: add ERR006687 hardware workaround for "a" variant Date: Wed, 3 Nov 2021 12:56:17 +0100 Message-Id: <20211103115618.13927-2-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211103115618.13927-1-matthias.schiffer@ew.tq-group.com> References: <20211103115618.13927-1-matthias.schiffer@ew.tq-group.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211103_045656_364118_3EB08CAF X-CRM114-Status: GOOD ( 12.96 ) 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 --- v2: no changes 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 + >; + }; +};