From patchwork Tue Nov 17 03:19:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 7632131 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3CD60BF90C for ; Tue, 17 Nov 2015 03:19:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C80B20527 for ; Tue, 17 Nov 2015 03:19:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6691220525 for ; Tue, 17 Nov 2015 03:19:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752410AbbKQDSO (ORCPT ); Mon, 16 Nov 2015 22:18:14 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:35426 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752175AbbKQDSF (ORCPT ); Mon, 16 Nov 2015 22:18:05 -0500 Received: by pacej9 with SMTP id ej9so89174510pac.2; Mon, 16 Nov 2015 19:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=zNQ6Sdbz1q3i98k2oGTdMDnVeqY1ejRLdYH1C48TRL8=; b=wLvdu3EBTWI8pqc8mHnq4e4H8+7pL07ac7T1EFy8fBDZ4Q8VLvE+al25ZmKYfodIrh prNbyPf6flNCXLeAHssbqkxvQcSJUyeRaNMcvNl2lGLXxItzcZNXlQwB+M3bwNMR9jN4 4Rn3OcrEsT0oxmw7DnrFE7o/IrA1BKFhfHzjDiQZgL2zUvfxuNjGTIjLs2lIn4cqY5nH qxUGBB9dvxALBbpIqk9DfAlGOKpkOIfJxzXwH3QRL7Um/q9TWF+nws/ydVEDkUyx6HAS P+wETN5jMLNhuQwWoM32O0DMf7wd37vfQ1qBbtnsCuKtIbzVAKEAqYnLo8woS8/gf3ln cN2Q== X-Received: by 10.68.68.233 with SMTP id z9mr54699673pbt.76.1447730284244; Mon, 16 Nov 2015 19:18:04 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id qj4sm39226204pbc.21.2015.11.16.19.18.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 19:18:03 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: linus.walleij@linaro.org, linux-kernel@vger.kernel.org, koji.matsuoka.xm@renesas.com, linux-gpio@vger.kernel.org, horms@verge.net.au, geert@glider.be, laurent.pinchart@ideasonboard.com, Magnus Damm Date: Tue, 17 Nov 2015 12:19:12 +0900 Message-Id: <20151117031912.24924.37315.sendpatchset@little-apple> In-Reply-To: <20151117031832.24924.60685.sendpatchset@little-apple> References: <20151117031832.24924.60685.sendpatchset@little-apple> Subject: [PATCH 04/04] pinctrl: sh-pfc: r8a7794: Break out ODDF from sync Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Break out the r8a7794 DU ODDF (EXDISP/EXODDF/EXDE) signal from the sync group into a separate unit. This makes the sync group fit with the r8a7794 ALT board that only uses HSYNC and VSYNC signals. This makes the r8a7794 PFC similar to the existing r8a7791 PFC DU implementation that also groups together HSYNC and VSYNC without ODDF. The groups "du0_oddf" and "du1_oddf" are added and the "du0_sync" and "du1_sync" groups are modified. Signed-off-by: Magnus Damm --- drivers/pinctrl/sh-pfc/pfc-r8a7794.c | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0016/drivers/pinctrl/sh-pfc/pfc-r8a7794.c +++ work/drivers/pinctrl/sh-pfc/pfc-r8a7794.c 2015-11-16 22:27:10.190513000 +0900 @@ -1615,21 +1615,33 @@ static const unsigned int du1_clk1_out_m DU1_DOTCLKOUT1_MARK }; static const unsigned int du0_sync_pins[] = { - /* EXVSYNC/VSYNC, EXHSYNC/HSYNC, EXDISP/EXODDF/EXCDE */ - RCAR_GP_PIN(2, 29), RCAR_GP_PIN(2, 28), RCAR_GP_PIN(2, 27), + /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */ + RCAR_GP_PIN(2, 28), RCAR_GP_PIN(2, 27), }; static const unsigned int du0_sync_mux[] = { - DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK, DU0_EXHSYNC_DU0_HSYNC_MARK }; static const unsigned int du1_sync_pins[] = { - /* EXVSYNC/VSYNC, EXHSYNC/HSYNC, EXDISP/EXODDF/EXCDE */ - RCAR_GP_PIN(4, 29), RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 27), + /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */ + RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 27), }; static const unsigned int du1_sync_mux[] = { - DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK, DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK }; +static const unsigned int du0_oddf_pins[] = { + /* EXDISP/EXODDF/EXCDE */ + RCAR_GP_PIN(2, 29), +}; +static const unsigned int du0_oddf_mux[] = { + DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK, +}; +static const unsigned int du1_oddf_pins[] = { + /* EXDISP/EXODDF/EXCDE */ + RCAR_GP_PIN(4, 29), +}; +static const unsigned int du1_oddf_mux[] = { + DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK, +}; static const unsigned int du0_cde_pins[] = { /* CDE */ RCAR_GP_PIN(2, 31), @@ -2962,6 +2974,8 @@ static const struct sh_pfc_pin_group pin SH_PFC_PIN_GROUP(du1_clk1_out), SH_PFC_PIN_GROUP(du0_sync), SH_PFC_PIN_GROUP(du1_sync), + SH_PFC_PIN_GROUP(du0_oddf), + SH_PFC_PIN_GROUP(du1_oddf), SH_PFC_PIN_GROUP(du0_cde), SH_PFC_PIN_GROUP(du1_cde), SH_PFC_PIN_GROUP(du0_disp), @@ -3156,6 +3170,8 @@ static const char * const du_groups[] = "du1_dotclkout1", "du0_sync", "du1_sync", + "du0_oddf", + "du1_oddf", "du0_cde", "du1_cde", "du0_disp",