From patchwork Fri Feb 16 14:26:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10224827 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 8B53E603EE for ; Fri, 16 Feb 2018 14:26:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D55D29490 for ; Fri, 16 Feb 2018 14:26:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7222E29496; Fri, 16 Feb 2018 14:26:19 +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 EF3DA29490 for ; Fri, 16 Feb 2018 14:26:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034310AbeBPO0S (ORCPT ); Fri, 16 Feb 2018 09:26:18 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:32826 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034273AbeBPO0S (ORCPT ); Fri, 16 Feb 2018 09:26:18 -0500 Received: by mail-wr0-f196.google.com with SMTP id s5so3108911wra.0 for ; Fri, 16 Feb 2018 06:26:17 -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=2iKEZiX3Tr0kFMFXQRarXVuL1utgEzmsQnBdHXwx9yE=; b=H2ZOmcYOhXgPgXr6CnpzPIBGLXdXoTJOKZS7eUvIM0ooznw7z1YyNeqHilqBufPfav NF4pvoFD4VTLuBb1kKwY4YS3JVVjlf8vgUreTvAWQ2ftptmZGsfeyGKJqrVkyMOmgIFG 17o1k370dRnkACXJfJ1FdmQZT86gD5YX6vg3fViiSHecTj2fO8gdMIhzEnl6ApTucFQC j/qOlp6TF0TmgvR/HvTUsHtQsdk0NnFFll0LjgUKP7OAOfercYLcrRMEGc0VjsS+uWef hHfiCXVZ45eUPoLk7B14O9BPnS9+mxHp2fEH+5Kkpe5E+4ZmjBxzsyB9RuAvP/x0Xopw d8ag== 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=2iKEZiX3Tr0kFMFXQRarXVuL1utgEzmsQnBdHXwx9yE=; b=ElendIYK+yzXqOUrBfT6CGYeBgOUVwL5zWvGajjJXaGEydCfnY90aQhrc7hfwdpbwC ycfW/BfJ85pa/RBRvzHRM0APk/RBz+DGvvurZi3K0nHC3VlXqv02ybMCdfK8Af3p80+D WvEK9JPxhR4tOs3UEkwFNmBYhb6Lb953B7JMR2GVnq8yGOdF5bCZhVAkXnV1eUaDeiUH vd6U7knQPSaPizMjZ5wcKiTzyzqaQ48/EXml5YTKC5hrHt7IQAloQ8QYFCv1zhrfXzPa FZ+6SnUT4FDzXMrWom7vDkwNfSiO5t6ojv1OVUvr80pHi38iasBaguzhAAlrjQuWi+ui ORyA== X-Gm-Message-State: APf1xPBut6ECT+lrkGw5gZvfN5oLg63Wa9MguO7kn8bmXP3Xe7x/VrNo 4GxOqHU0iiTg68hBRiBnsDUfDMw= X-Google-Smtp-Source: AH8x224aUeyLVKjt+lV7dGaMFqOlgiEmL2HJQ76/NR2PxrbYWvkV4Ff68eiZE/v51taMSiakLPZtfA== X-Received: by 10.223.184.36 with SMTP id h33mr6396935wrf.15.1518791176568; Fri, 16 Feb 2018 06:26:16 -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.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Feb 2018 06:26:15 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, geert@linux-m68k.org Cc: Takeshi Kihara , Ulrich Hecht Subject: [PATCH 1/3] pinctrl: sh-pfc: r8a7795: Add TMU pins, groups and functions Date: Fri, 16 Feb 2018 15:26:09 +0100 Message-Id: <1518791171-14162-2-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 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c index 18aeee5..100eda4 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c @@ -3840,6 +3840,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 */ @@ -4190,6 +4220,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), @@ -4639,6 +4673,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", }; @@ -4705,6 +4746,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),