From patchwork Fri Dec 19 13:10:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmavathi Venna X-Patchwork-Id: 5519211 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 583DDBEEA8 for ; Fri, 19 Dec 2014 13:19:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8477420131 for ; Fri, 19 Dec 2014 13:19:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B033420120 for ; Fri, 19 Dec 2014 13:19:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752559AbaLSNTV (ORCPT ); Fri, 19 Dec 2014 08:19:21 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:37729 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbaLSNTU (ORCPT ); Fri, 19 Dec 2014 08:19:20 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NGT00AJ3ZO5MC70@mailout1.samsung.com>; Fri, 19 Dec 2014 22:19:18 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id D5.B9.17016.5D524945; Fri, 19 Dec 2014 22:19:17 +0900 (KST) X-AuditID: cbfee68d-f79296d000004278-78-549425d512bb Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 8F.D2.09430.5D524945; Fri, 19 Dec 2014 22:19:17 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NGT00K2HZLO4D90@mmp1.samsung.com>; Fri, 19 Dec 2014 22:19:17 +0900 (KST) From: Padmavathi Venna To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: kgene.kim@samsung.com, linus.walleij@linaro.org, tomasz.figa@gmail.com, s.nawrocki@samsung.com Subject: [PATCH 1/2] pinctrl: exynos: Add AUDIO pin controller for exynos7 Date: Fri, 19 Dec 2014 18:40:58 +0530 Message-id: <1418994659-5222-2-git-send-email-padma.v@samsung.com> X-Mailer: git-send-email 2.2.0 In-reply-to: <1418994659-5222-1-git-send-email-padma.v@samsung.com> References: <1418994659-5222-1-git-send-email-padma.v@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsWyRsSkWveq6pQQg82tlhbzj5xjtehdcJXN Ysqf5UwWmx5fY7WYcX4fk8XhN+2sFqt2/WF0YPfYOesuu8eda3vYPDYvqffo27KK0ePzJrkA 1igum5TUnMyy1CJ9uwSujOuvbrIXHBOo+Pq2m6mBsYWvi5GTQ0LARKKlaS8jhC0mceHeerYu Ri4OIYGljBJv9rxjhCma2f2QHSKxiFGi6ckEZghnApPE8S0rWLoYOTjYBHQkWs66gDSICGRK bLq7DayZWSBFYtuye6wgJcICXhITZrKAhFkEVCWWX1/MDGLzCjhJvHl7hhlil5zElluP2EFs TgFnifvfb7OB2EJANVc2vWQBWSshMI9d4kz7FEaIQQIS3yYfAjtBQkBWYtMBqDmSEgdX3GCZ wCi8gJFhFaNoakFyQXFSepGhXnFibnFpXrpecn7uJkZgiJ/+96x3B+PtA9aHGAU4GJV4eDsL J4cIsSaWFVfmHmI0BdowkVlKNDkfGEl5JfGGxmZGFqYmps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665cl3VnracXxBRdv+LO4x0bMkWJpTgj0VCLuag4EQBj9i8jtgIA AA== 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 Audio IPs on Exynos7 require gpios available in AUDIO pin controller block. So adding the AUDIO pinctrl support. Signed-off-by: Padmavathi Venna Acked-by: Tomasz Figa --- .../bindings/pinctrl/samsung-pinctrl.txt | 1 + drivers/pinctrl/samsung/pinctrl-exynos.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt index c88ba35..9d2a995 100644 --- a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt @@ -181,6 +181,7 @@ Aliases for controllers compatible with "samsung,exynos7-pinctrl": - pinctrl6: pin controller of FSYS0 block, - pinctrl7: pin controller of FSYS1 block, - pinctrl8: pin controller of BUS1 block, +- pinctrl9: pin controller of AUDIO block, Example: A pin-controller node with pin banks: diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.c b/drivers/pinctrl/samsung/pinctrl-exynos.c index 2a85cb4..c8f83f9 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos.c +++ b/drivers/pinctrl/samsung/pinctrl-exynos.c @@ -1314,6 +1314,11 @@ static const struct samsung_pin_bank_data exynos7_pin_banks8[] __initconst = { EXYNOS_PIN_BANK_EINTG(3, 0x140, "gpv6", 0x24), }; +static const struct samsung_pin_bank_data exynos7_pin_banks9[] __initconst = { + EXYNOS_PIN_BANK_EINTG(7, 0x000, "gpz0", 0x00), + EXYNOS_PIN_BANK_EINTG(4, 0x020, "gpz1", 0x04), +}; + const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = { { /* pin-controller instance 0 Alive data */ @@ -1361,5 +1366,10 @@ const struct samsung_pin_ctrl exynos7_pin_ctrl[] __initconst = { .pin_banks = exynos7_pin_banks8, .nr_banks = ARRAY_SIZE(exynos7_pin_banks8), .eint_gpio_init = exynos_eint_gpio_init, + }, { + /* pin-controller instance 9 AUD data */ + .pin_banks = exynos7_pin_banks9, + .nr_banks = ARRAY_SIZE(exynos7_pin_banks9), + .eint_gpio_init = exynos_eint_gpio_init, }, };