From patchwork Fri Feb 16 14:26:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10224829 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 13472603EE for ; Fri, 16 Feb 2018 14:26:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0482E29490 for ; Fri, 16 Feb 2018 14:26:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED84829496; Fri, 16 Feb 2018 14:26:20 +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 7C7D729490 for ; Fri, 16 Feb 2018 14:26:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034311AbeBPO0U (ORCPT ); Fri, 16 Feb 2018 09:26:20 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34703 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034273AbeBPO0T (ORCPT ); Fri, 16 Feb 2018 09:26:19 -0500 Received: by mail-wm0-f65.google.com with SMTP id j21so5753418wmh.1 for ; Fri, 16 Feb 2018 06:26:19 -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=sk+sR5wNxLxxR+k9OoeDlU6qx+2wPaozkQ7mj+WS1y0=; b=Hr9HsYGXmYCEnTkiR7mRNgrtwav932vseXzILldD1n79bOeEsgIixaC17WUz69ELVl Oep+VdhR8FpcosxadMFO6F6ecupItU4LCQjtcXFXi7sDmTD3nkwkoa0yB0z4/Lek3jaT gn1KC7xQfL1M7q50fHbZrrQYNIirilJ2523xfzqseePzEuBfcmXo/UeHWiZSKuXpmcYL T8eDjU3GvgHApB+aVIPb2ECiAnbX4qPkGdQWs1eljUmv8+CQf7FtkbfIguogcu7yZouC TJTrTMbzUWVKh5JTlx6V3yhzUqqI4uxv1tlHg2SkHZcp3jaDONMwwUlGA2UjySgZ1waB 7XMw== 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=sk+sR5wNxLxxR+k9OoeDlU6qx+2wPaozkQ7mj+WS1y0=; b=p609fIfGDoCMxsJUkT4hQzcbcBkxkFOVD+a5cuIon1d472efQXZWHL4m+xS+ehZuwf UQ/yYaYK8wFMqP2g8ISAHcsk4nzJA0SfKT4sy9HxwV1m1Z003uVj/72OTV4r1lJkBbyt V++HGAcgtHfKk+fyGOwl1HmI5IbslPVBFxNXv9oU2v6DnOL6rCnjxS25iFB05aDctCf9 9I3apQZ8SS1Ncii6elJpCiKKQP5drxKAzHkG54RAHApBpljrAAWhToLH6g4Tg5N/orSU 0YMhw9D7jv79mdiq54XBBYvxZfho22N2l3H+CPLdJ1XvOOYLnRoCAwLQyLXt3PJWC94c V2/A== X-Gm-Message-State: APf1xPAFrrnWaUYjSO2cxDu6n8Z5PE3g6+gj8BxmO8ybLJbK2dGx86Rw HLiEt1HEW5kyXHFWnj+ZODaWWM0= X-Google-Smtp-Source: AH8x224pZYY9KhhaRJpUhgVqAUojR/A87D6F5acPFRu5UsNC4aH98KwTSU6suWxESEVyf21nmlYcZw== X-Received: by 10.28.88.129 with SMTP id m123mr4885280wmb.64.1518791178046; Fri, 16 Feb 2018 06:26:18 -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.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Feb 2018 06:26:17 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, geert@linux-m68k.org Cc: Takeshi Kihara , Ulrich Hecht Subject: [PATCH 2/3] pinctrl: sh-pfc: r8a7795-es1: Add TMU pins, groups and functions Date: Fri, 16 Feb 2018 15:26:10 +0100 Message-Id: <1518791171-14162-3-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 R8A7795 ES1.x SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c index 292e35d..0f81802 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c @@ -3750,6 +3750,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 */ @@ -4095,6 +4125,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(usb2), @@ -4545,6 +4579,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", }; @@ -4613,6 +4654,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(usb2),