From patchwork Thu Jan 26 02:19:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13116503 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0B63C27C76 for ; Thu, 26 Jan 2023 02:19:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbjAZCTY (ORCPT ); Wed, 25 Jan 2023 21:19:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjAZCTX (ORCPT ); Wed, 25 Jan 2023 21:19:23 -0500 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2100.outbound.protection.outlook.com [40.107.215.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8EF366AF for ; Wed, 25 Jan 2023 18:19:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V3LidPNSmtqthL5/j/gKRvLLeKVr6syYKULxBW708vVRYzy4mujge9nB1Yknlv0cw0+uROTttqxJevaH+fN5i61Ts4nPH+5S8MRqCIsdZ60gEho4PIdlbhO234AyvYu4kX6WZM7zo3l/ypuIPkF2+1HL9CbACVhDOvIovea7iLdslnnIp0y2TI/7D3BZ0w3hXIOzz3BAYVVFhZHP6bfaUAOdYWNx4YX5GL1ZVNuWSSSQJDmc+Lb9AqWjMFIVHSjMxBRYc7yw1Fw7e9esMrRMauFK3+pVDMzS41Mfb9Y1JvU7FlolWdUR6ZuHkTymZB4oviuSSuMHoIMzuuOX1n8RKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HGGOonQgvbj8u4Cg29RapWDm7cFO12IMbyiyZLWmY9Q=; b=HW8rLYwcAGyAtfbAQ/xzIBo7Ki3w6UC/miZ4N2Bz7X2za/GBGYEnZrbNI8npCx0EwsUkg6uZeASqvFe1KwemNYyovD1gVOZEofw7+rTc3vQYlRNeIrewI0l5x9xSRNFx872DmdTYNanVa2nwd/ons2RCcYRTG1uEzu56hcgLbDzjJSC0kRMtGwk7zJypTyCeTdYDOkJJLjPsICXAMZ9RANTeQjx2kBfcMwjF5q2dZymFfV3Ih37JpED0aBLwj63xJMe3Yovd5boWEnBmWrK/QN3uLZwSZSwRq9VnICLiu8ZkIYs9CT0e23j3iCJYbEiY/QuMhkGrf7qNrf3ikATYwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=renesas.com; dmarc=pass action=none header.from=renesas.com; dkim=pass header.d=renesas.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HGGOonQgvbj8u4Cg29RapWDm7cFO12IMbyiyZLWmY9Q=; b=G7t7IBiQmOfiOe39Q5mZaAeQBEvBfUpB+ZaHqH8HTnfG5VvGT+gkVkgohazHnqmU49M/uha9BIrPtPa2myfbhXjOFmWqhmNfmuIWGlIIBPLnR1DFP3C+0jxZtQrCJ3IaOmGX4NLClWs2wXTO2OGck8EdCJfBVdS2IagLdb6stCc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=renesas.com; Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) by TY3PR01MB11323.jpnprd01.prod.outlook.com (2603:1096:400:36e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.21; Thu, 26 Jan 2023 02:19:19 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4b75:8d8e:d89a:7860]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4b75:8d8e:d89a:7860%4]) with mapi id 15.20.6043.022; Thu, 26 Jan 2023 02:19:19 +0000 Message-ID: <87v8kut4uw.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/4] pinctrl: renesas: r8a779g0: Add Audio SSI support User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Geert Uytterhoeven Cc: Linux-Renesas In-Reply-To: <87y1pqt4vs.wl-kuninori.morimoto.gx@renesas.com> References: <87y1pqt4vs.wl-kuninori.morimoto.gx@renesas.com> Date: Thu, 26 Jan 2023 02:19:19 +0000 X-ClientProxiedBy: TYCP286CA0122.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b6::8) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TY3PR01MB11323:EE_ X-MS-Office365-Filtering-Correlation-Id: 763e278b-105f-4fb4-94b4-08daff43bb34 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G+uQboSFOUEh/ZF8nDDfF3Sb15fj9AzGO225GHhqDInWVPXJLyFUobsgA8V5FhW2H52mu5ipzj/5YC1EBRoH9KUdHaHW4sbnrzctG8iw1e4NB6FUyZhnYRckcV8Ndiwmhn2bom9/YcgIpSQrOfJMV8DSVvURS1SPGwS3Cr4VFpHml3nXfJD0CFTr8hFVn9b9yI8Qf/W9aZC3HFV5vElsPOwBs2q71jghbiNi9HHS4C56gwT1VrMD5EhFO1CaDnRZg9vY+RpYpS9TTniQPXCtqHgM8nsHc4gIxscTnhbzqOInkrp8IwUQaNTYlmRv1SOxD+ulRHYvkCIr3qh4bvgHCswxTaSE5BiH6I5x6YeR5ExjqdXFuyqItUoOG/8xnvi0RMauAd7EeBV6drpnqFT155DilQV4cmNvFtiavSsqMrHGwKPsihIE5khqo7lXa5aHhZKJpol6mzSh37vWFKXQkgDbzW0YIwRm/B/0zwxwdrpiI6+3LdUNYj9dnmLXZ7oebSPQ0wfW0KCHeXqADVQsxydEBypL+ukn6x+vYqhLhXtG8797J83H26wmXuV6om1FNViuqOAKtZY814nYgFqskVBC17tSoSFSQ1Dmojyc4FpboXfJ4nIROM4JHJypCpEh6maX368lF1K426Um2quQuLzabsP/Y5KvKE5ay9ZbxJLTN35UUbGT39igRYj3nkCMA8cfs5sW5W80B5tkmRmJkyMVbblVbwy3KWaQS8KXHd2EKnMWKHlxtcvKE9Yfh1Q0 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB8426.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(346002)(366004)(39860400002)(396003)(136003)(376002)(451199018)(83380400001)(316002)(2616005)(2906002)(38100700002)(36756003)(52116002)(38350700002)(478600001)(66476007)(8676002)(66556008)(66946007)(8936002)(86362001)(4326008)(5660300002)(41300700001)(186003)(6512007)(26005)(6506007)(6486002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: krKIUneArqUmq7f08pWf2P035wcyS84af2W8IOUwRoYZFXydx9vlFU6J8arhBvKKuBGywNdqO7Ry71ZZXSd+JkPLVEpsIu/iuwiPN5NGP4grCDREqVWvXlhDd/prw9LjUVMeR7bA88Jt+/dBvyPK1kcG7oPXCEsYkSt1+VZqVZkTOX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mxsUFr05kaMQxI+gA0QYRw+tO1V/djHtTImCqXyOgZoT0lJo1goqNxVKepQcqBA81UGnqQIAlSE5LfLpOozJXS6Dp/cSAygXfKrCeDDyPm0G+4BGaOj+sSoH3DeY590m2lL2/7Mh+HPnZetqRmMss9IvPinGFomSZZdhd+Vi9eZQgT9/J2610kPX4goOVc+IyRQdbCSEkyEf/lo9X/A6qqv+fukUZXLONbdbdZ8WriX9cH4nGA+cjS8WXv96aDGSrLyxWmuO3Y++rlapO5y8PIfat7LeBkQuSaarILSBdQTpRl5YVs2dMWfEUMc0QYmFLImEtgIAA61nEriYXy6kiMY9udQeXJMpA/Agp2O6B4pPlrqjyFdTdVdpe6xVcMAp6h0OU= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 763e278b-105f-4fb4-94b4-08daff43bb34 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2023 02:19:19.6117 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 20fIPqjg9ahzuenAIQ0Q0pcC0imzORaMob4Z78mJdz2VYGBgaTmgVesiVK73aWZA/i3ZSxJvbbpjfMbQT14tJhtp05RUN+tSsHeEEDtD0m7lcqmy7MhWyLLXjl29xuoI X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB11323 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org From: Linh Phung This patch adds Audio SSI pins, groups, and functions to r8a779g0 SoC. Signed-off-by: Linh Phung Signed-off-by: Kuninori Morimoto Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/renesas/pfc-r8a779g0.c | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/drivers/pinctrl/renesas/pfc-r8a779g0.c b/drivers/pinctrl/renesas/pfc-r8a779g0.c index 7674b2a50f6c..89e993ec0b85 100644 --- a/drivers/pinctrl/renesas/pfc-r8a779g0.c +++ b/drivers/pinctrl/renesas/pfc-r8a779g0.c @@ -2348,6 +2348,25 @@ static const unsigned int scif_clk_mux[] = { SCIF_CLK_MARK, }; +/* - SSI ------------------------------------------------- */ +static const unsigned int ssi_data_pins[] = { + /* SSI_SD */ + RCAR_GP_PIN(1, 20), +}; + +static const unsigned int ssi_data_mux[] = { + SSI_SD_MARK, +}; + +static const unsigned int ssi_ctrl_pins[] = { + /* SSI_SCK, SSI_WS */ + RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19), +}; + +static const unsigned int ssi_ctrl_mux[] = { + SSI_SCK_MARK, SSI_WS_MARK, +}; + /* - TPU ------------------------------------------------------------------- */ static const unsigned int tpu_to0_pins[] = { /* TPU0TO0 */ @@ -2643,6 +2662,9 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(scif4_ctrl), SH_PFC_PIN_GROUP(scif_clk), + SH_PFC_PIN_GROUP(ssi_data), + SH_PFC_PIN_GROUP(ssi_ctrl), + SH_PFC_PIN_GROUP(tpu_to0), /* suffix might be updated */ SH_PFC_PIN_GROUP(tpu_to0_a), /* suffix might be updated */ SH_PFC_PIN_GROUP(tpu_to1), /* suffix might be updated */ @@ -2960,6 +2982,11 @@ static const char * const scif_clk_groups[] = { "scif_clk", }; +static const char * const ssi_groups[] = { + "ssi_data", + "ssi_ctrl", +}; + static const char * const tpu_groups[] = { /* suffix might be updated */ "tpu_to0", @@ -3043,6 +3070,8 @@ static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(scif4), SH_PFC_FUNCTION(scif_clk), + SH_PFC_FUNCTION(ssi), + SH_PFC_FUNCTION(tpu), SH_PFC_FUNCTION(tsn0),