Received: by 10.192.165.148 with SMTP id m20csp2568231imm; Thu, 26 Apr 2018 13:17:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx49u1RoP5CbpGDlJ8gruH4WZUt1v5q/jexHFeb3+R52AFfvNwgMCVHjLBYtI1WTJZJQtMJ7L X-Received: by 10.101.85.11 with SMTP id f11mr29075300pgr.252.1524773846137; Thu, 26 Apr 2018 13:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524773846; cv=none; d=google.com; s=arc-20160816; b=B4WxxW4uMnsHdV9rxOCNICTUQ05CRcOYhS4NOTzMzrGMPJi25KenOUOMdn9+ahMgRV QP6y7d2NUq7WNpAUhCHemGncPI4Iz07tdnQuxMoSpcUCqNVDEPYFSP0Ft3D0v1wPp1AQ JPZgS2NEDIVxv+irgineFjK2JKSDw0LAlUga1JOuGYBc1BIqtz/izlYAWUVp1/9alrV5 vMJva97CLaAR+B70sMEuzyv/7Ex3SUZ3f4UtEfUeiuHfJJ+hVgiqKL/ukG/7uAO2MIeT 5HqlsFCjXgTtJJxXIMLTWcl4emyedqnqW6z8v6NmV3f9xsN1+81dQaY2SneKpuNJSsVu ZM5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=QS1LCTxqM2bRb/bsWXxNp7xvh4RVlWB7tWgtBZP4PbQ=; b=nSxpMxSE5ZbJH5q9wuGP9Uz/MdvZZMZJ+5tMQvWJtRZAbA2LckGmnjQ35cmtH1QYlE 7S64JVGsFW/rtHSO0rR2ydbDTiaV11vVcmwnzQf/2S/Vkkq5+TnYWbSKV+/9qWkpIYHD RTkqKbRtA+zxsC874GqvIOdIC7gx1mkxckKGXonyNPjjbUE3AS9w4xAtfjv585rAY0qx zavGt3HPjOZuNHXshruwiB4qNSQuBDh5lyDoBNjzt7zeciwr1cYY63uD3cuaIGT2WoH+ JyQ8smZi4C8s3L5vefnkOoynckF87Gru19Cm2Su23rm8pNY00146YhJJj96CAqmtjrfm oTNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Vjs6X4pk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si3799195pgv.218.2018.04.26.13.17.08; Thu, 26 Apr 2018 13:17:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Vjs6X4pk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753881AbeDZUPv (ORCPT + 99 others); Thu, 26 Apr 2018 16:15:51 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:59326 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751615AbeDZUPt (ORCPT ); Thu, 26 Apr 2018 16:15:49 -0400 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B1B353E45; Thu, 26 Apr 2018 22:15:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1524773748; bh=LWzLUL6D5i/G6aL3kramoblzlirH/aF9oI/8vNFKbFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vjs6X4pkEwDjYuKbso0ld0Uhn0EqeiojbJfLWkBq2Oq091My0AtPV1la4qp2/AgU+ YcIrYXMHEmjNmv5omFn9Wus9ZsRxt83UvjvdhfmF46vYHmDkC6vWvD0CnHqUOQ4EBM E/hotZhx5LdPJhjKlekqlqAn6pnJFiv3BqCYQFyM= From: Laurent Pinchart To: Kieran Bingham Cc: linux-renesas-soc@vger.kernel.org, Takeshi Kihara , Geert Uytterhoeven , Linus Walleij , "open list:PIN CONTROL SUBSYSTEM" , open list Subject: Re: [PATCH 03/17] pinctrl: sh-pfc: r8a77965: Add DU RGB output pins, groups and functions Date: Thu, 26 Apr 2018 23:16:02 +0300 Message-ID: <2121989.nfLzmt0Wff@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180426165346.494-4-kieran.bingham+renesas@ideasonboard.com> References: <20180426165346.494-1-kieran.bingham+renesas@ideasonboard.com> <20180426165346.494-4-kieran.bingham+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, Thank you for the patch. On Thursday, 26 April 2018 19:53:32 EEST Kieran Bingham wrote: > This patch adds pins, groups and functions for parallel RGB output > signals from DU. The HDMI and TCON pins are added to separate groups. >=20 > Based on a similar patch of the R8A7796 PFC driver by Niklas S=F6derlund > . >=20 > Signed-off-by: Takeshi Kihara > [Kieran: Rebase on top of tree] > Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart I expect Geert to take this patch in his tree. > --- > drivers/pinctrl/sh-pfc/pfc-r8a77965.c | 116 ++++++++++++++++++++++++++ > 1 file changed, 116 insertions(+) >=20 > diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c > b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c index 3771b2d10f39..f5a37d3ea753 > 100644 > --- a/drivers/pinctrl/sh-pfc/pfc-r8a77965.c > +++ b/drivers/pinctrl/sh-pfc/pfc-r8a77965.c > @@ -1662,6 +1662,102 @@ static const unsigned int avb_avtp_capture_b_mux[= ] =3D > { AVB_AVTP_CAPTURE_B_MARK, > }; >=20 > +/* - DU ----------------------------------------------------------------= */ > +static const unsigned int du_rgb666_pins[] =3D { > + /* R[7:2], G[7:2], B[7:2] */ > + RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 13), > + RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10), > + RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13), > + RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18), > + RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5), > + RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2), > +}; > + > +static const unsigned int du_rgb666_mux[] =3D { > + DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK, > + DU_DR3_MARK, DU_DR2_MARK, > + DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK, > + DU_DG3_MARK, DU_DG2_MARK, > + DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK, > + DU_DB3_MARK, DU_DB2_MARK, > +}; > + > +static const unsigned int du_rgb888_pins[] =3D { > + /* R[7:0], G[7:0], B[7:0] */ > + RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 13), > + RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10), > + RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 8), > + RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13), > + RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18), > + RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16), > + RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5), > + RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2), > + RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 0), > +}; > + > +static const unsigned int du_rgb888_mux[] =3D { > + DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK, > + DU_DR3_MARK, DU_DR2_MARK, DU_DR1_MARK, DU_DR0_MARK, > + DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK, > + DU_DG3_MARK, DU_DG2_MARK, DU_DG1_MARK, DU_DG0_MARK, > + DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK, > + DU_DB3_MARK, DU_DB2_MARK, DU_DB1_MARK, DU_DB0_MARK, > +}; > + > +static const unsigned int du_clk_out_0_pins[] =3D { > + /* CLKOUT */ > + RCAR_GP_PIN(1, 27), > +}; > + > +static const unsigned int du_clk_out_0_mux[] =3D { > + DU_DOTCLKOUT0_MARK > +}; > + > +static const unsigned int du_clk_out_1_pins[] =3D { > + /* CLKOUT */ > + RCAR_GP_PIN(2, 3), > +}; > + > +static const unsigned int du_clk_out_1_mux[] =3D { > + DU_DOTCLKOUT1_MARK > +}; > + > +static const unsigned int du_sync_pins[] =3D { > + /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */ > + RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4), > +}; > + > +static const unsigned int du_sync_mux[] =3D { > + DU_EXVSYNC_DU_VSYNC_MARK, DU_EXHSYNC_DU_HSYNC_MARK > +}; > + > +static const unsigned int du_oddf_pins[] =3D { > + /* EXDISP/EXODDF/EXCDE */ > + RCAR_GP_PIN(2, 2), > +}; > + > +static const unsigned int du_oddf_mux[] =3D { > + DU_EXODDF_DU_ODDF_DISP_CDE_MARK, > +}; > + > +static const unsigned int du_cde_pins[] =3D { > + /* CDE */ > + RCAR_GP_PIN(2, 0), > +}; > + > +static const unsigned int du_cde_mux[] =3D { > + DU_CDE_MARK, > +}; > + > +static const unsigned int du_disp_pins[] =3D { > + /* DISP */ > + RCAR_GP_PIN(2, 1), > +}; > + > +static const unsigned int du_disp_mux[] =3D { > + DU_DISP_MARK, > +}; > + > /* - INTC-EX -----------------------------------------------------------= */ > static const unsigned int intc_ex_irq0_pins[] =3D { > /* IRQ0 */ > @@ -2756,6 +2852,14 @@ static const struct sh_pfc_pin_group pinmux_groups= [] > =3D { SH_PFC_PIN_GROUP(avb_avtp_capture_a), > SH_PFC_PIN_GROUP(avb_avtp_match_b), > SH_PFC_PIN_GROUP(avb_avtp_capture_b), > + SH_PFC_PIN_GROUP(du_rgb666), > + SH_PFC_PIN_GROUP(du_rgb888), > + SH_PFC_PIN_GROUP(du_clk_out_0), > + SH_PFC_PIN_GROUP(du_clk_out_1), > + SH_PFC_PIN_GROUP(du_sync), > + SH_PFC_PIN_GROUP(du_oddf), > + SH_PFC_PIN_GROUP(du_cde), > + SH_PFC_PIN_GROUP(du_disp), > SH_PFC_PIN_GROUP(intc_ex_irq0), > SH_PFC_PIN_GROUP(intc_ex_irq1), > SH_PFC_PIN_GROUP(intc_ex_irq2), > @@ -2922,6 +3026,17 @@ static const char * const avb_groups[] =3D { > "avb_avtp_capture_b", > }; >=20 > +static const char * const du_groups[] =3D { > + "du_rgb666", > + "du_rgb888", > + "du_clk_out_0", > + "du_clk_out_1", > + "du_sync", > + "du_oddf", > + "du_cde", > + "du_disp", > +}; > + > static const char * const intc_ex_groups[] =3D { > "intc_ex_irq0", > "intc_ex_irq1", > @@ -3139,6 +3254,7 @@ static const char * const usb30_groups[] =3D { >=20 > static const struct sh_pfc_function pinmux_functions[] =3D { > SH_PFC_FUNCTION(avb), > + SH_PFC_FUNCTION(du), > SH_PFC_FUNCTION(intc_ex), > SH_PFC_FUNCTION(msiof0), > SH_PFC_FUNCTION(msiof1), =2D-=20 Regards, Laurent Pinchart