From patchwork Fri Feb 16 14:26:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10224831 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 550E3603EE for ; Fri, 16 Feb 2018 14:26:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 479B729490 for ; Fri, 16 Feb 2018 14:26:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C9612949A; Fri, 16 Feb 2018 14:26:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7F4229490 for ; Fri, 16 Feb 2018 14:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034312AbeBPO0V (ORCPT ); Fri, 16 Feb 2018 09:26:21 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35930 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034273AbeBPO0V (ORCPT ); Fri, 16 Feb 2018 09:26:21 -0500 Received: by mail-wm0-f65.google.com with SMTP id f3so3471718wmc.1 for ; Fri, 16 Feb 2018 06:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=G5M2GFI5Hf6pIPH3gzNJP0fuIawuOJz7spQc7XV+NIE=; b=lCy9rOEFvCP9KAsOg2CMxUoS7v/JmCx4X6MBraYX6Jx2XuFL61pt7FWcQ+0Q7I50qj 934k8tu3Na31pefbZrFlEqRmvrQDjQLfcuEWNErF4Yums3x3Ia2pKkXA11C1LHuvT9/u 85XmeMMqSnzBY4XSjtozqa+TtYp7jMeu9temdmhuxsfjLSorJd/2kdq4Sju/oIO2pCTT stAMqCxisbzLKTtTG2ffDcFigmEQBTM+nyBCZiQXUL8KUmrEfbUEPlcGWThvUuFRc70n PA0Z3u61v5LIf+oIH7yrAUV5ukU7rjIsd6hhupAE2lgN/QstwNdnPWAiWIiOtFLGzKYR fCdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=G5M2GFI5Hf6pIPH3gzNJP0fuIawuOJz7spQc7XV+NIE=; b=jESXMGRbI/jkEVpH9L1TFkBcyaIlZvJApkRbCLOBhIAqoMBadji9UTfYrni1nBBBfC Ng2E3Q3sc1YelbAlnlzxkcsD6kw7udroZl8qnNoyCegkKY6avHS36X+Y1w/rEIf5FwSn 0Ded5NHTMtgpiPIyLTTghZYkF8Ox/3b9mpIxwyF63TyMUn7aYq1lupqE1QlJL0AupECJ lT9h8piIo+e2BCAy+6jdmzv/IjEyPtCYIbwp3oy6N3BdhV1E1tv8yyR2vMDO9lxn4vob MW+jMSTvlzsXmHUu9vtHiZO2C8bT+vCZPIYGgEphIlPyqknhH7QBBM4l54Co3a+sjI3g wJNQ== X-Gm-Message-State: APf1xPCDZH2UbjMpxU+woOmjGr5wjyksMjIf9BZgX9a1IhpcSyY2ZgbF hgx2pJvHKuPx+euo4mtZ/SpdU8A= X-Google-Smtp-Source: AH8x224g6oHfc1xkjP9pmhzWjcYws4aIYM9kWM7fdlCtb/jurjeXxeLb1kR4J7iGGyc7NRULRTi9CA== X-Received: by 10.28.135.142 with SMTP id j136mr5316899wmd.33.1518791179550; Fri, 16 Feb 2018 06:26:19 -0800 (PST) Received: from groucho.site (ipbcc3b860.dynamic.kabel-deutschland.de. [188.195.184.96]) by smtp.gmail.com with ESMTPSA id e15sm12735791wmh.39.2018.02.16.06.26.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Feb 2018 06:26:18 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, geert@linux-m68k.org Cc: Takeshi Kihara , Ulrich Hecht Subject: [PATCH 3/3] pinctrl: sh-pfc: r8a7796: Add TMU pins, groups and functions Date: Fri, 16 Feb 2018 15:26:11 +0100 Message-Id: <1518791171-14162-4-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518791171-14162-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1518791171-14162-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Takeshi Kihara This patch adds TMU TCLK{1,2} pins, groups and functions to the R8A7796 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/pfc-r8a7796.c | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c index e5807d1..f32483c 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c @@ -3827,6 +3827,36 @@ static const unsigned int ssi9_ctrl_b_mux[] = { SSI_SCK9_B_MARK, SSI_WS9_B_MARK, }; +/* - TMU -------------------------------------------------------------------- */ +static const unsigned int tmu_tclk1_a_pins[] = { + /* TCLK */ + RCAR_GP_PIN(6, 23), +}; +static const unsigned int tmu_tclk1_a_mux[] = { + TCLK1_A_MARK, +}; +static const unsigned int tmu_tclk1_b_pins[] = { + /* TCLK */ + RCAR_GP_PIN(5, 19), +}; +static const unsigned int tmu_tclk1_b_mux[] = { + TCLK1_B_MARK, +}; +static const unsigned int tmu_tclk2_a_pins[] = { + /* TCLK */ + RCAR_GP_PIN(6, 19), +}; +static const unsigned int tmu_tclk2_a_mux[] = { + TCLK2_A_MARK, +}; +static const unsigned int tmu_tclk2_b_pins[] = { + /* TCLK */ + RCAR_GP_PIN(6, 28), +}; +static const unsigned int tmu_tclk2_b_mux[] = { + TCLK2_B_MARK, +}; + /* - USB0 ------------------------------------------------------------------- */ static const unsigned int usb0_pins[] = { /* PWEN, OVC */ @@ -4159,6 +4189,10 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(ssi9_data_b), SH_PFC_PIN_GROUP(ssi9_ctrl_a), SH_PFC_PIN_GROUP(ssi9_ctrl_b), + SH_PFC_PIN_GROUP(tmu_tclk1_a), + SH_PFC_PIN_GROUP(tmu_tclk1_b), + SH_PFC_PIN_GROUP(tmu_tclk2_a), + SH_PFC_PIN_GROUP(tmu_tclk2_b), SH_PFC_PIN_GROUP(usb0), SH_PFC_PIN_GROUP(usb1), SH_PFC_PIN_GROUP(usb30), @@ -4601,6 +4635,13 @@ static const char * const ssi_groups[] = { "ssi9_ctrl_b", }; +static const char * const tmu_groups[] = { + "tmu_tclk1_a", + "tmu_tclk1_b", + "tmu_tclk2_a", + "tmu_tclk2_b", +}; + static const char * const usb0_groups[] = { "usb0", }; @@ -4658,6 +4699,7 @@ static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(sdhi2), SH_PFC_FUNCTION(sdhi3), SH_PFC_FUNCTION(ssi), + SH_PFC_FUNCTION(tmu), SH_PFC_FUNCTION(usb0), SH_PFC_FUNCTION(usb1), SH_PFC_FUNCTION(usb30),