From patchwork Wed Apr 8 23:56:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 46896 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4854121416 for ; Wed, 8 Apr 2015 23:57:06 +0000 (UTC) Received: by wibgr10 with SMTP id gr10sf13697608wib.2 for ; Wed, 08 Apr 2015 16:57:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=lzD3Uyyl9q/9gJy7rKueDNB6snenLMDHmOkoJ90N2HM=; b=UAxvF/Nywp1CXCBS9G1RnAyOSgSPFi3+ezrtF4NKSUApqEUS7nI0jC+rBwJg6jnmRk fWIGjrZRPm7dOwIFy+J62dlwCQunAHktn/s4euZZ0L9myubQ5P2yxNJQhTZPGmjnTvTC 7ldMw4Ev4r44Y5z51AqZqzSEgryfYmOOn59AC0TbKapj/grFZ2W2F2yHXYgUzVsEp/gk 3ScAO10nqEXKqo5pg7Mcx0eRWNYJmmnWLvsQEiy2zPUcboWGXmCSZOnVFfTnvPkKUE7Y BXNENjw1sklM+gJa+dQ9Vp63V9X7VVQCeMseOzIhpBn8gUjR2QdfT8fdLic08OFSujHL e7bA== X-Gm-Message-State: ALoCoQlMqoKdmc5+Qbo330oeU4fZTUDNmRyqk3RmHsiJ6+IQi/aZj49KgrW7FdBzxBGN0/ibnYnn X-Received: by 10.112.14.38 with SMTP id m6mr5362836lbc.12.1428537425093; Wed, 08 Apr 2015 16:57:05 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.227 with SMTP id t3ls253740laj.72.gmail; Wed, 08 Apr 2015 16:57:04 -0700 (PDT) X-Received: by 10.112.67.107 with SMTP id m11mr25465722lbt.43.1428537424814; Wed, 08 Apr 2015 16:57:04 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id rl7si10041611lac.80.2015.04.08.16.57.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Apr 2015 16:57:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lagv1 with SMTP id v1so77831404lag.3 for ; Wed, 08 Apr 2015 16:57:04 -0700 (PDT) X-Received: by 10.152.197.34 with SMTP id ir2mr1869697lac.36.1428537424530; Wed, 08 Apr 2015 16:57:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.67.65 with SMTP id l1csp153216lbt; Wed, 8 Apr 2015 16:57:03 -0700 (PDT) X-Received: by 10.68.221.41 with SMTP id qb9mr50795655pbc.77.1428537422807; Wed, 08 Apr 2015 16:57:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bb5si18442304pbb.24.2015.04.08.16.57.01; Wed, 08 Apr 2015 16:57:02 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754509AbbDHX5A (ORCPT + 5 others); Wed, 8 Apr 2015 19:57:00 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:53346 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751476AbbDHX47 (ORCPT ); Wed, 8 Apr 2015 19:56:59 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id t38NuV4B030085; Wed, 8 Apr 2015 18:56:31 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t38NuUiV014324; Wed, 8 Apr 2015 18:56:30 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Wed, 8 Apr 2015 18:56:29 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id t38NuTr1002621; Wed, 8 Apr 2015 18:56:29 -0500 From: Nishanth Menon To: Tony Lindgren , =?UTF-8?q?Beno=C3=AEt=20Cousson?= CC: Grygorii Strashko , , , , , Nishanth Menon Subject: [PATCH 1/2] ARM: dts: am57xx-beagle-x15: Fix IRQ type for mcp7941x Date: Wed, 8 Apr 2015 18:56:26 -0500 Message-ID: <1428537387-18776-2-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1428537387-18776-1-git-send-email-nm@ti.com> References: <1428537387-18776-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nm@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Grygorii Strashko The interrupt polarity provided in devicetree is used to configure the interrupt controller(ARM GIC), however, it seems that we have an inverter at the GIC boundary inside AM57xx which inverts the signal input from sys_irq external interrupt source. Further, as per GIC distributor TRM, http://infocenter.arm.com/help/topic/com.arm.doc.ddi0438d/BGBHIACJ.html#BABJFCFB ARM GIC distributor does not support IRQ trigger type IRQ_TYPE_LEVEL_LOW, and only rising or level high signals. However, for some reason, the current configuration(which gets ignored by GIC driver) functions on some platforms, however, on few platforms results in infinite interrupts hogging the system down. Switch over to rising edge for GIC configuration which is also aligned with trigger point from the RTC chip and the internal inversion. Fixes: 5a0f93c6576a ("ARM: dts: Add am57xx-beagle-x15") Signed-off-by: Grygorii Strashko Signed-off-by: Nishanth Menon --- arch/arm/boot/dts/am57xx-beagle-x15.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-beagle-x15.dts index fe141c47d647..57279e3b439b 100644 --- a/arch/arm/boot/dts/am57xx-beagle-x15.dts +++ b/arch/arm/boot/dts/am57xx-beagle-x15.dts @@ -455,7 +455,7 @@ mcp_rtc: rtc@6f { compatible = "microchip,mcp7941x"; reg = <0x6f>; - interrupts = ; /* IRQ_SYS_1N */ + interrupts = ; /* IRQ_SYS_1N */ pinctrl-names = "default"; pinctrl-0 = <&mcp79410_pins_default>;