From patchwork Fri Dec 20 18:47:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 3390801 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0A0529F314 for ; Fri, 20 Dec 2013 18:49:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0FD93206F3 for ; Fri, 20 Dec 2013 18:49:53 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DAA1E206F1 for ; Fri, 20 Dec 2013 18:49:51 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vu57J-0007OA-RQ; Fri, 20 Dec 2013 18:48:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vu56q-0004cn-Bz; Fri, 20 Dec 2013 18:47:40 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vu55x-0004XG-4s for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2013 18:46:50 +0000 Received: by mail-pd0-f182.google.com with SMTP id v10so2848149pde.41 for ; Fri, 20 Dec 2013 10:46:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aCS+Sc5Vd7brcUqJTWMKx85P4r8d72R0mNSPMarrRio=; b=PdD8xUyubQmPzXDobmhhSNxjW8E81WlFuc0M+wlerVJKXf0WxihJIlhs4SrDluHFk4 OsQ0O3aOvOmqmsUEsy36FmAZDoaqiakSpsqxYfko0HPdUuwPbwya9kCPk45IK3pqS2Gk lK96Cmh63vLWzLkEzONtBsWiIO1tOC2p2yVuHZoeTynugKzhgshusKfYbHMMb8iILdTY nfZ7yqRh8FoFCrGRf0XZotO2S1qd6CDqe+3jzEXM/AqaixKJCIJ2pOiLTgny5VO8Hwdo VCJvSJnaTvmDHQGHQKHhI5TsjSb0qHqdaFF7wRftcmVxSaRHKVQwVY/QXTpk1EVW2Z+2 PpBA== X-Gm-Message-State: ALoCoQnhWKkRHfV/PsnK4Rc7Gy2EwbOb8W4PR5VnTfW2I2rWyhPz2qb57Mdes5Hzg0FY0X4nX6n5 X-Received: by 10.67.5.233 with SMTP id cp9mr10124224pad.147.1387565179995; Fri, 20 Dec 2013 10:46:19 -0800 (PST) Received: from officeserver-2 ([63.226.49.26]) by mx.google.com with ESMTPSA id z10sm20852754pas.6.2013.12.20.10.46.15 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 20 Dec 2013 10:46:18 -0800 (PST) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1Vu56R-0004DQ-E4; Fri, 20 Dec 2013 11:47:15 -0700 From: Troy Kisky To: shawn.guo@linaro.org Subject: [PATCH V2 5/7] ARM: dts: imx6qdl-sabrelite: use GPIO_6 for FEC interrupt. Date: Fri, 20 Dec 2013 11:47:11 -0700 Message-Id: <1387565233-16144-6-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1387565233-16144-1-git-send-email-troy.kisky@boundarydevices.com> References: <1387565233-16144-1-git-send-email-troy.kisky@boundarydevices.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131220_134645_280491_D992E7B5 X-CRM114-Status: GOOD ( 14.42 ) X-Spam-Score: -1.9 (-) Cc: marex@denx.de, eric.nelson@boundarydevices.com, Troy Kisky , ra5478@freescale.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This works around a hardware bug. From "Chip Errata for the i.MX 6Dual/6Quad" ERR006687 ENET: Only the ENET wake-up interrupt request can wake the system from Wait mode. The ENET block generates many interrupts. Only one of these interrupt lines is connected to the General Power Controller (GPC) block, but a logical OR of all of the ENET interrupts is connected to the General Interrupt Controller (GIC). When the system enters Wait mode, a normal RX Done or TX Done does not wake up the system because the GPC cannot see this interrupt. This impacts performance of the ENET block because its interrupts are serviced only when the chip exits Wait mode due to an interrupt from some other wake-up source. Before this patch, ping times of a Sabre Lite board are quite random: ping 192.168.0.13 -i.5 -c5 PING 192.168.0.13 (192.168.0.13) 56(84) bytes of data. 64 bytes from 192.168.0.13: icmp_req=1 ttl=64 time=15.7 ms 64 bytes from 192.168.0.13: icmp_req=2 ttl=64 time=14.4 ms 64 bytes from 192.168.0.13: icmp_req=3 ttl=64 time=13.4 ms 64 bytes from 192.168.0.13: icmp_req=4 ttl=64 time=12.4 ms 64 bytes from 192.168.0.13: icmp_req=5 ttl=64 time=11.4 ms --- 192.168.0.13 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 11.431/13.501/15.746/1.508 ms diff --git a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi index 34145d1..e83ffc7 100644 --- a/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi +++ b/arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi @@ -165,6 +165,8 @@ txd1-skew-ps = <0>; txd2-skew-ps = <0>; txd3-skew-ps = <0>; + interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, + <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>; status = "okay"; }; @@ -211,6 +213,7 @@ MX6QDL_ENET_PINGRP_RGMII_MD(0x1b0b0, 0x100b0) /* Phy reset */ MX6QDL_PAD_ENET_RXD0__GPIO1_IO27 0x000b0 + MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1 >; }; diff --git a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi index 4d156f5..24c2c1b 100644 --- a/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabrelite.dtsi @@ -164,6 +164,8 @@ txd1-skew-ps = <0>; txd2-skew-ps = <0>; txd3-skew-ps = <0>; + interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, + <&intc 0 119 IRQ_TYPE_LEVEL_HIGH>; status = "okay"; }; @@ -210,6 +212,7 @@ MX6QDL_ENET_PINGRP_RGMII_MD(0x1b0b0, 0x100b0) /* Phy reset */ MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x000b0 + MX6QDL_PAD_GPIO_6__ENET_IRQ 0x000b1 >; };