From patchwork Fri Feb 16 14:25:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10224825 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 48B87603EE for ; Fri, 16 Feb 2018 14:25:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39BD429489 for ; Fri, 16 Feb 2018 14:25:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EC5529492; Fri, 16 Feb 2018 14:25:53 +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 D04B129489 for ; Fri, 16 Feb 2018 14:25:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034308AbeBPOZw (ORCPT ); Fri, 16 Feb 2018 09:25:52 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35133 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034273AbeBPOZv (ORCPT ); Fri, 16 Feb 2018 09:25:51 -0500 Received: by mail-wm0-f67.google.com with SMTP id x21so3455638wmh.0 for ; Fri, 16 Feb 2018 06:25:51 -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=CfpqbqF4IJHbONSkLiP3GNU45YuZvuBJiIDk68uxku4=; b=p9myIwgfb6pbIj0IdF1PUHsdit0/sfWiB7csIquQvI4hxRzTYKavnfyTik6eGzPwVq VKinayrcNTQJ9qoTqg+n1Q8XwsQanwIA5oMWcEY/lUINXzpRpMU1CLtAEM+R4amYKgs3 xjwjOxuBQsPVYNrmp7iwxcvtyQZyOSxEhjcRgXFIXHfKa5fE4VJ9YBRScg4N+nzVEzhh 0HQUwq8iYMvj51rNLwUjaRg29Q+d4eIoW7zxgwPP0fRPt0QCQfnD5Xllq9mxaFOTP/sR C0CcQGd8vYfHtKeYoE2gRQyMuWaZrtXdC7U6T0dHp7sRKKe75L5NhUWKJKAbHqXYhNI1 dCyg== 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=CfpqbqF4IJHbONSkLiP3GNU45YuZvuBJiIDk68uxku4=; b=QVHA5tYapBNm2z/xXr4B/pMXQOiGLE+fy0yppxbZYSeULLG0LFq0cfEn+tNEX5i977 PizD6ibgGwkkOyjDAV7ZLgRjHATLMlCUXvk7JwoqcoYe/uf4jXGj+AsEF5XVsC3dGvjN PVPSRMeu6CtW7+4aOQ973ZgePNZq7d378BbOcHLtkgZFepsVQy8A9bshn3hlP7IjqSXc vHjuqtDA/IUPEaVqF3AIYxN8aYmcFjpbtdq61npHTt7/3L+tKVJrOWn6fdYticAqZUcs biBiHr0RT8pcVTcfixcRy6oh6rZTN5++D6ToQCYL7/+k+noICK3BTPnoETf/mtCX2WDk THqw== X-Gm-Message-State: APf1xPDtgelUkE5GR6iOiArY1QzUGG5cXs3J2BML7c7iIUS8DRiQ2+rk 3YqqW1FPHSgGjuzUvST1jBoCG9k= X-Google-Smtp-Source: AH8x226t7GcgRXfk7Zabzo21Q/ZLO2EPV45MORjx3j/1CQvt+lfpvX7kgXAgNkOmpUAZHqoabrvapA== X-Received: by 10.28.212.13 with SMTP id l13mr4876294wmg.83.1518791150504; Fri, 16 Feb 2018 06:25:50 -0800 (PST) Received: from groucho.site (ipbcc3b860.dynamic.kabel-deutschland.de. [188.195.184.96]) by smtp.gmail.com with ESMTPSA id a53sm20995576wrc.52.2018.02.16.06.25.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Feb 2018 06:25:49 -0800 (PST) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, geert@linux-m68k.org Cc: laurent.pinchart@ideasonboard.com, Takeshi Kihara , Ulrich Hecht Subject: [PATCH 3/3] pinctrl: sh-pfc: r8a7796: Add HDMI pins, groups and functions Date: Fri, 16 Feb 2018 15:25:42 +0100 Message-Id: <1518791142-14054-4-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518791142-14054-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1518791142-14054-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 HDMI0 CEC pin, group and function 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c index e5807d1..b15326d 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7796.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7796.c @@ -2129,6 +2129,15 @@ static const unsigned int du_disp_mux[] = { DU_DISP_MARK, }; +/* - HDMI ------------------------------------------------------------------- */ +static const unsigned int hdmi0_cec_pins[] = { + /* HDMI0_CEC */ + RCAR_GP_PIN(7, 2), +}; +static const unsigned int hdmi0_cec_mux[] = { + HDMI0_CEC_MARK, +}; + /* - HSCIF0 ----------------------------------------------------------------- */ static const unsigned int hscif0_data_pins[] = { /* RX, TX */ @@ -3926,6 +3935,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(du_oddf), SH_PFC_PIN_GROUP(du_cde), SH_PFC_PIN_GROUP(du_disp), + SH_PFC_PIN_GROUP(hdmi0_cec), SH_PFC_PIN_GROUP(hscif0_data), SH_PFC_PIN_GROUP(hscif0_clk), SH_PFC_PIN_GROUP(hscif0_ctrl), @@ -4272,6 +4282,10 @@ static const char * const du_groups[] = { "du_disp", }; +static const char * const hdmi0_groups[] = { + "hdmi0_cec", +}; + static const char * const hscif0_groups[] = { "hscif0_data", "hscif0_clk", @@ -4626,6 +4640,7 @@ static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(drif2), SH_PFC_FUNCTION(drif3), SH_PFC_FUNCTION(du), + SH_PFC_FUNCTION(hdmi0), SH_PFC_FUNCTION(hscif0), SH_PFC_FUNCTION(hscif1), SH_PFC_FUNCTION(hscif2),