From patchwork Wed Dec 11 11:57:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 3325311 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 1B6209F1F0 for ; Wed, 11 Dec 2013 12:00:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E60E320771 for ; Wed, 11 Dec 2013 12:00:07 +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 988172076B for ; Wed, 11 Dec 2013 12:00:06 +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 1VqiQi-0002RW-Bk; Wed, 11 Dec 2013 11:58:16 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VqiQE-0001EV-Rj; Wed, 11 Dec 2013 11:57:46 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VqiPT-00018t-K4 for linux-arm-kernel@lists.infradead.org; Wed, 11 Dec 2013 11:57:01 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MXN00KD956A8K20@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 11 Dec 2013 20:56:34 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 62.64.15387.2F258A25; Wed, 11 Dec 2013 20:56:34 +0900 (KST) X-AuditID: cbfee68f-b7f256d000003c1b-ea-52a852f2d479 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id F3.B7.15903.2F258A25; Wed, 11 Dec 2013 20:56:34 +0900 (KST) Received: from abhilash-ubuntu.sisodomain.com ([107.108.73.92]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MXN0011U55RWB90@mmp1.samsung.com>; Wed, 11 Dec 2013 20:56:34 +0900 (KST) From: Abhilash Kesavan To: dianders@chromium.org, olof@lixom.net, kgene.kim@samsung.com, jonghwa3.lee@samsung.com, yadi.brar@samsung.com, mturquette@linaro.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH 5/5] ARM: dts: Setup the interrupt parent for max77686 Date: Wed, 11 Dec 2013 17:27:09 +0530 Message-id: <1386763029-8516-6-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1386763029-8516-1-git-send-email-a.kesavan@samsung.com> References: <1386763029-8516-1-git-send-email-a.kesavan@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42JZI2JSo/spaEWQQVePlMXjNYuZLA7Mfshq cXbZQTaLzrNPmC16F1xls9j0+BqrxYzz+5gsnk64yGZx6vpnNos5098xOXB5zG64yOJx59oe No/NS+o9zs9YyOhx5UQTq0ffllWMHp83yQWwR3HZpKTmZJalFunbJXBlfFv/mr3gP39Fy6Td bA2MR3m7GDk5JARMJDo3X2aHsMUkLtxbz9bFyMUhJLCUUeJa2zxmmKKGpnNQiUWMEg92b4Fy +pgkOg6tYgWpY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al6yXn525iBMfdM+kdjKsaLA4xCnAwKvHwHihaHiTEmlhW XJl7iFGCg1lJhPeT54ogId6UxMqq1KL8+KLSnNTiQ4zJQEdNZJYSTc4HpoS8knhDYxNzU2NT SxMLEzNL0oSVxHkPtloHCgmkJ5akZqemFqQWwWxh4uCUamCMDeCzmldR9Yx3bfXUP0azPi9q 17irF7nh1NTsm5+d+jSzYn53fL6R5G7K2a1ck2KvxaPj7Pzr2HymovMvjG+aGP/9IZ/cFtBz 7cfLwotPSrYuNfjTsa3mRYLepnc5BiEKz6qNZ2zfP+eIvO0C7zTR6WUTpbOOuB4943GNr/kk 55VLDyWCL9oqsRRnJBpqMRcVJwIAdlE61/8CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131211_065659_937207_8057B919 X-CRM114-Status: UNSURE ( 8.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.1 (-------) Cc: Abhilash Kesavan 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.4 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 Fix the following warning message: [ 2921.671238] WARNING: CPU: 0 PID: 1 at kernel/irq/irqdomain.c:399 irq_create_mapping+0xe4/0xfc() [ 2921.679907] irq_create_mapping(, b) called with NULL domain [ 2921.685462] Modules linked in: [ 2921.688498] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.13.0-rc1-00026-g36cc776 #67 [ 2921.696154] [] (unwind_backtrace+0x0/0xf8) from [] (show_stack+0x10/0x14) [ 2921.704654] [] (show_stack+0x10/0x14) from [] (dump_stack+0x64/0xa4) [ 2921.712725] [] (dump_stack+0x64/0xa4) from [] (warn_slowpath_common+0x64/0x84) [ 2921.721663] [] (warn_slowpath_common+0x64/0x84) from [] (warn_slowpath_fmt+0x30/0x40) [ 2921.731210] [] (warn_slowpath_fmt+0x30/0x40) from [] (irq_create_mapping+0xe4/0xfc) [ 2921.740590] [] (irq_create_mapping+0xe4/0xfc) from [] (max77686_rtc_probe+0x110/0x21c) [ 2921.750221] [] (max77686_rtc_probe+0x110/0x21c) from [] (platform_drv_probe+0x18/0x48) Also setup the default state of the max77686 irq line. Signed-off-by: Abhilash Kesavan --- arch/arm/boot/dts/cros5250-common.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/cros5250-common.dtsi b/arch/arm/boot/dts/cros5250-common.dtsi index 6470536..dc853b9 100644 --- a/arch/arm/boot/dts/cros5250-common.dtsi +++ b/arch/arm/boot/dts/cros5250-common.dtsi @@ -27,6 +27,13 @@ i2c2_bus: i2c2-bus { samsung,pin-pud = <0>; }; + + max77686_irq: max77686-irq { + samsung,pins = "gpx3-2"; + samsung,pin-function = <0>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; }; i2c@12C60000 { @@ -36,6 +43,10 @@ max77686@09 { compatible = "maxim,max77686"; reg = <0x09>; + interrupt-parent = <&gpx3>; + interrupts = <2 0>; + pinctrl-names = "default"; + pinctrl-0 = <&max77686_irq>; voltage-regulators { ldo1_reg: LDO1 {