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: 5519231 Return-Path: X-Original-To: patchwork-linux-arm@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 9F93EBEEA8 for ; Fri, 19 Dec 2014 13:21:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5A9E20120 for ; Fri, 19 Dec 2014 13:21:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 14FA72011E for ; Fri, 19 Dec 2014 13:21:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y1xT5-0000e5-Ih; Fri, 19 Dec 2014 13:19:43 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Y1xT2-00005f-7a for linux-arm-kernel@lists.infradead.org; Fri, 19 Dec 2014 13:19:41 +0000 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> for linux-arm-kernel@lists.infradead.org; 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 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+P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Tw9vuFr8o492xJCY91T5NInZme0R82ze7kumfWAco7o/VF5r4+ krNA9rBJmhiDbLeWlZg/665cl3VnracXxBRdv+LO4x0bMkWJpTgj0VCLuag4EQBj9i8jtgIA AA== 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-20141219_051940_441211_541953DF X-CRM114-Status: GOOD ( 10.96 ) X-Spam-Score: -5.0 (-----) Cc: linus.walleij@linaro.org, kgene.kim@samsung.com, tomasz.figa@gmail.com, s.nawrocki@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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, }, };