From patchwork Tue May 5 04:07:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 6333801 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6D01BBEEE1 for ; Tue, 5 May 2015 04:05:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8FB9120173 for ; Tue, 5 May 2015 04:05:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 939CF20265 for ; Tue, 5 May 2015 04:05:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752735AbbEEEFd (ORCPT ); Tue, 5 May 2015 00:05:33 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:13045 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752659AbbEEEFc (ORCPT ); Tue, 5 May 2015 00:05:32 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNU004T7ZD6OBD0@mailout3.samsung.com>; Tue, 05 May 2015 13:05:30 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id C9.79.24422.98148455; Tue, 5 May 2015 13:05:30 +0900 (KST) X-AuditID: cbfee68f-f793b6d000005f66-a9-55484189bac1 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 91.9C.25346.98148455; Tue, 5 May 2015 13:05:29 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNU00HSMZCTGR70@mmp2.samsung.com>; Tue, 05 May 2015 13:05:29 +0900 (KST) From: Pankaj Dubey To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: robh+dt@kernel.org, kgene@kernel.org, yadi.brar01@gmail.com, k.kozlowski.k@gmail.com, k.kozlowski@samsung.com, Yadwinder Singh Brar Subject: [RESEND-PATCH] ARM: dts: Add missing irq pinctrl for max77686 on smdk5250 Date: Tue, 05 May 2015 09:37:35 +0530 Message-id: <1430798855-27271-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.2.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLLMWRmVeSWpSXmKPExsWyRsSkRrfL0SPU4HEfi8X8I+dYLZ7/+8Fu 8fqFoUX/49fMFpseX2O1mHF+H5NF694j7BZzfzeyWsyZ/o7JgdNj56y77B6bVnWyeWxeUu/R t2UVo8fnTXIBrFFcNimpOZllqUX6dglcGS+m7GEruMdTsb3rA2sD43GuLkZODgkBE4lLdzay QthiEhfurWfrYuTiEBJYyijxddYjdpiiIxNaGSES0xklbtzvZYZwWpkk3nfMYgOpYhPQlXjy fi4ziC0ikCmx6e42sA5mgcWMElfe3gTbISwQIrHj8SkWEJtFQFViy47dYM28Ah4SHw8tZIZY Jyex5RbIai4gu5td4u/2q0wQDQIS3yYfAmrmAErISmw6AFUvKXFwxQ2WCYyCCxgZVjGKphYk FxQnpRcZ6xUn5haX5qXrJefnbmIEhvLpf8/6dzDePWB9iFGAg1GJhzeCyyNUiDWxrLgy9xCj KdCGicxSosn5wIjJK4k3NDYzsjA1MTU2Mrc0UxLnXSj1M1hIID2xJDU7NbUgtSi+qDQntfgQ IxMHp1QD47HzF/9HybfvtAn74XSd5+yvnsYGl92lfXaJHmZmT3a8PGFhm2jBHZI6R2QxM28S lySX959a+S8Zr28KH3+6fvozY71HlombP/pPKL2sfE7sqsPpSx8Xq19tEtj1fu3BeJGo2u96 Zgy7AtotgqUbG6eviytc5XqEnyfwxNQu3tytrjusPmxmUmIpzkg01GIuKk4EAMmedItgAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOIsWRmVeSWpSXmKPExsVy+t9jQd1OR49QgzuXzCzmHznHavH83w92 i9cvDC36H79mttj0+BqrxYzz+5gsWvceYbeY+7uR1WLO9HdMDpweO2fdZffYtKqTzWPzknqP vi2rGD0+b5ILYI1qYLTJSE1MSS1SSM1Lzk/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy 8QnQdcvMAbpHSaEsMacUKBSQWFyspG+HaUJoiJuuBUxjhK5vSBBcj5EBGkhYw5jxYsoetoJ7 PBXbuz6wNjAe5+pi5OSQEDCRODKhlRHCFpO4cG89WxcjF4eQwHRGiRv3e5khnFYmifcds9hA qtgEdCWevJ/LDGKLCGRKbLq7jRGkiFlgMaPElbc3WUESwgIhEjsen2IBsVkEVCW27NgN1swr 4CHx8dBCZoh1chJbbj1in8DIvYCRYRWjaGpBckFxUnquoV5xYm5xaV66XnJ+7iZGcKQ8k9rB uLLB4hCjAAejEg9vBJdHqBBrYllxZe4hRgkOZiUR3qMWQCHelMTKqtSi/Pii0pzU4kOMpkDb JzJLiSbnA6M4ryTe0NjE3NTY1NLEwsTMUkmcd46uXKiQQHpiSWp2ampBahFMHxMHp1QDo+rE k34WjgaB3Y/yw+YcVxMTydFYweI70+XYxp41NuFy37nFep9va1I5o/6BJVs6o3SVe5/c3K0y J+t0DL2fyi3frl+tGDDrAP82A63rvs+tr04TOPLk5tVAj7rb1w4lSG+c9cBh+VHRZu3ESLbl sx6m7tl3uvVJ7qcvywv9Ph2cX95zZeJ9NSWW4oxEQy3mouJEAAnqWwCqAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 From: Yadwinder Singh Brar This patch adds pinctrl configuration for using configuring gpx3-2 as an external interrupt from max77686. Though max77686 RTC is enabled and gets probed by default, it doesnt work as its unable to get interrupt. This patch makes max77686 RTC work and also configures it as wakeup source. Signed-off-by: Yadwinder Singh Brar Reviewed-by: Javier Martinez Canillas Tested-by: Pankaj Dubey Acked-by: Krzysztof Kozlowski --- Initial version of this patch was part of following series, though they are not dependent on each other, resubmitting after rebasing and detaching second one from first patch in the series [1] [1]: http://lists.infradead.org/pipermail/linux-arm-kernel/2014-November/303652.html arch/arm/boot/dts/exynos5250-smdk5250.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index bc27cc2..4fe186d 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -131,6 +131,9 @@ reg = <0x09>; interrupt-parent = <&gpx3>; interrupts = <2 IRQ_TYPE_NONE>; + pinctrl-names = "default"; + pinctrl-0 = <&max77686_irq>; + wakeup-source; voltage-regulators { ldo1_reg: LDO1 { @@ -410,3 +413,12 @@ }; }; }; + +&pinctrl_0 { + max77686_irq: max77686-irq { + samsung,pins = "gpx3-2"; + samsung,pin-function = <0xf>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; +};