From patchwork Fri Feb 16 14:25:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 10224821 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 B32BA603EE for ; Fri, 16 Feb 2018 14:25:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A565F29489 for ; Fri, 16 Feb 2018 14:25:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99AC829492; Fri, 16 Feb 2018 14:25:50 +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 3974429489 for ; Fri, 16 Feb 2018 14:25:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034268AbeBPOZt (ORCPT ); Fri, 16 Feb 2018 09:25:49 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:37403 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034273AbeBPOZs (ORCPT ); Fri, 16 Feb 2018 09:25:48 -0500 Received: by mail-wm0-f66.google.com with SMTP id v71so3461851wmv.2 for ; Fri, 16 Feb 2018 06:25:48 -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=cxXeLnjumuxX3Ug6STWqzqSKNFaFNAYNT3sHRqjGxy0=; b=C4/gVfO6OR5Y/ZXzExmF1ffoxI4Xw40DmR9oP5avCQv+YYmZ73QfSozF+sD7Q7fZaA wtVdrJGhetGzS0uzSo32yCGkKkZf4JJ1Wpke9Ev5XDEKm5wYFDk2IiS0nryOapx1et4/ WOzxiWnVAU9yZd7KN9+47GT8Nblup8z9bIkZbLDH9pMBWdTMar/vXdR+RW/XAwm566Lb QZKgGzGXtIpH446X7EpAxfey+w6D3fQromWCyhNtxocysjEhhBPffw/0duSNGqIhtGuX 2e3k/i58DMRRPyyLHJxQ4RnIxnYk5L9XMERS0CKsF1sw40b2pCmVNzYamkV+QWLtoJtr nv+A== 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=cxXeLnjumuxX3Ug6STWqzqSKNFaFNAYNT3sHRqjGxy0=; b=msetF884ptl6s6VGRHpC8nSyVlcbBcD/bRllFsFJTVNyZRHwNvPkc9iGUzJ4lfm9H5 N4h0/z5Hh3yeLrKUOqxg0ekRCpywxJDSc4qHiVIGOXdMgvbxSZ5hLEAtQpxUVis/f7bX H9Cb+xfgQcPS2p4JFlezvSKTup/BgSSF6gUx9kDCT7NcCVAJ3FMOys/cOH126iM7yXew bLrM3okf7bbohN5X/WjLfelaXyHQ38FqtqR+NFjVSCkheBJLU2NIMbaTU4IbPmCDDOPU fa5Lpwcnt1eDCOrT2DwoVdz9a14yH90ZrMT3lAC+UjkG0x4VBnwPB3Gh9P8r/zWbg8PG yxMQ== X-Gm-Message-State: APf1xPCktFOoA3BSccZA1fXh4Cc8d6r1Vayx7FAeNMr+SOLElVjfXrID efVIGiSwoLCna1JZn5ljGD4k04I= X-Google-Smtp-Source: AH8x227LxCbdinPVkJR/etH0Qo1AAYWZZKFDmKXgNB2OfVe8sEXps1i2uP9GsgLi80xs1Z3txx6jPg== X-Received: by 10.28.129.138 with SMTP id c132mr4856892wmd.159.1518791147558; Fri, 16 Feb 2018 06:25:47 -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.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Feb 2018 06:25:46 -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 1/3] pinctrl: sh-pfc: r8a7795: Add HDMI pins, groups and functions Date: Fri, 16 Feb 2018 15:25:40 +0100 Message-Id: <1518791142-14054-2-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 R8A7795 SoC. Signed-off-by: Takeshi Kihara [uli: fixed typo in comment] Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c index 18aeee5..7e7bf86 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c @@ -2128,6 +2128,22 @@ 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, +}; +static const unsigned int hdmi1_cec_pins[] = { + /* HDMI1_CEC */ + RCAR_GP_PIN(7, 3), +}; +static const unsigned int hdmi1_cec_mux[] = { + HDMI1_CEC_MARK, +}; + /* - HSCIF0 ----------------------------------------------------------------- */ static const unsigned int hscif0_data_pins[] = { /* RX, TX */ @@ -3955,6 +3971,8 @@ 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(hdmi1_cec), SH_PFC_PIN_GROUP(hscif0_data), SH_PFC_PIN_GROUP(hscif0_clk), SH_PFC_PIN_GROUP(hscif0_ctrl), @@ -4305,6 +4323,14 @@ static const char * const du_groups[] = { "du_disp", }; +static const char * const hdmi0_groups[] = { + "hdmi0_cec", +}; + +static const char * const hdmi1_groups[] = { + "hdmi1_cec", +}; + static const char * const hscif0_groups[] = { "hscif0_data", "hscif0_clk", @@ -4672,6 +4698,8 @@ 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(hdmi1), SH_PFC_FUNCTION(hscif0), SH_PFC_FUNCTION(hscif1), SH_PFC_FUNCTION(hscif2),