From patchwork Mon Nov 22 11:37:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schiffer X-Patchwork-Id: 12693311 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 723D4C433EF for ; Mon, 22 Nov 2021 12:10:51 +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: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=tot6oRSfxhuNJ2LuXKfgl1pu+I9WbxvGXMK4xTaGJgs=; b=PtHPenQBUF4kQ5 vfI6ub8fimvNx1/snyrCCrz0LrsENq9p9m6CqmSiDsB7ZerG9vlUf/+HrkGykNPUJHT1QOxlSTl3w oQ0k2ngRnC5bfryiSbKXNwDCBRC2g8TzI/3XYVlCaLMeMI4exnFtLl2QLTSH3uK7A1KspThJwESF+ FEDkdZ1uqNnUzhwa6NEqrj+OHuV3BZWprQD8b/5V0dawV+UM5i26+hx1Pgzw56JYuvZgHUqYdqflu yaOmOE0WEXfFlOhrDvQbBk/Z+uflkYCO9v0xDAqbzLVpiWprcY60P6cdSyDiZPd1J1hwa7Cn9Maly Bm4dKfEJopbHRBLebZFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mp889-00GG9Z-Na; Mon, 22 Nov 2021 12:09:06 +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 1mp7eQ-00G5sD-LI for linux-arm-kernel@lists.infradead.org; Mon, 22 Nov 2021 11:38:24 +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=1637581102; x=1669117102; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=/UGJ3+fHU7JmClFTUHJ8cW0RVcw4MaeYNHd1GBgQznU=; b=h/Bb8YEoVjVOTXCEC6RdLeTBYIvup8Wr3duZ2W3qh1Lya0ZCAdCLSImR HAgcLr+O9gOPjyioyY2GPtvxSa1x7XLuvvGjyIJdoMWu9vhOz/gtBOIw7 xT0h7Fkcg9ywNxH47Iz1veGqZGIdgXyiBg1EK9jeYjMng+tuMZD88bqiH 2iuHIJRNudrgS3OyllC+VI/szEvOihc8bj9jjAMnEVge8rt5losBhqBKh H5CSdHRb84PfImGaKSB3AtbHBAOhsJZZfJCNyqXoGfgAOPSFEH1bqnEd+ 5wf8kRL6WRit5b1Ix4BS1q++5lZA86TjCC4i+HcG9DAP8/hg5Uzwm8mF9 g==; X-IronPort-AV: E=Sophos;i="5.87,254,1631570400"; d="scan'208";a="20593898" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 22 Nov 2021 12:38:15 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Mon, 22 Nov 2021 12:38:16 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Mon, 22 Nov 2021 12:38:16 +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=1637581095; x=1669117095; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=/UGJ3+fHU7JmClFTUHJ8cW0RVcw4MaeYNHd1GBgQznU=; b=QwbdPh6Ixgm+OjolYFGkVHt8DUJmiuHIom+XVkOKmI/b9zC1t+4+kvOb kayMAREkduzNG37Ix89cL6DwfQktHDuYSDaGSL1tpfXIHtpD+mu9SIpUh FfWCVVw/q7n2nMAhP9ddkTobz5+lwcKiVLF0qKavjYmwB1tBQEFCTa4bd kd/Lyt7xyBoJ0F9JKpPolNFOZ39p8YQ/E67gqW9R8MXdF1zD8hOfpwTd3 zHj3qxrD+EAdtaFWxGJhI+tq6GQ1Y5yBhObtVhNpg0U02gjFWXb5bdp3+ LZ83Uxn7tsSh0GNLgbYWp2dw4w6p4i6bn/FuHnrT0sOtp5rHxGxwYa7+T Q==; X-IronPort-AV: E=Sophos;i="5.87,254,1631570400"; d="scan'208";a="20593897" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 22 Nov 2021 12:38:15 +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 B9DFB280075; Mon, 22 Nov 2021 12:38:15 +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 v3 2/3] ARM: dts: imx6qdl-tqma6: add ERR006687 hardware workaround for "a" variant Date: Mon, 22 Nov 2021 12:37:39 +0100 Message-Id: <20211122113740.2348-2-matthias.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211122113740.2348-1-matthias.schiffer@ew.tq-group.com> References: <20211122113740.2348-1-matthias.schiffer@ew.tq-group.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211122_033823_067799_C15491D7 X-CRM114-Status: GOOD ( 12.66 ) 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 v3: changed commit title 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 + >; + }; +};