From patchwork Tue Feb 7 01:12:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 13130839 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 50CFBC61DA4 for ; Tue, 7 Feb 2023 01:14:10 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 5CD41829; Tue, 7 Feb 2023 02:13:18 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5CD41829 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1675732448; bh=56jhDpr0iyVevLgp5dFaJYry6XjQzlJ0lkR1kosXqmk=; h=From:Subject:To:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=qlYDiNYU0CHsSo4DbWs5GFTrjrJLgQHb+zlF8/62F9MOf7oEFUIT4ljLO5rGpz3Cf Zhyq3z+iHgttXiG9ImAUmX4vKA/kk0HoaoCEAYzl4AVO07M/gJTUrBRjUwZDVfqd+b rLvjE7MfE1/+fcSoo6rR8NHDYUAtc+Wh4+ca4ns0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id B4F6BF80533; Tue, 7 Feb 2023 02:13:10 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 81CBEF804FF; Tue, 7 Feb 2023 02:13:09 +0100 (CET) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on20708.outbound.protection.outlook.com [IPv6:2a01:111:f400:feab::708]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8FA25F80543 for ; Tue, 7 Feb 2023 02:13:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8FA25F80543 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=renesas.com header.i=@renesas.com header.a=rsa-sha256 header.s=selector1 header.b=R42AGVYv ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L4m2ES8XxJ9YkwCm9x5ES/kentJ+jSwQxP1sNKRhwn5HEE7Zm+BTCmsQwrZVCSl2isHrCCVYKA2oCl4AbCXvh4EwXl3LFz2297RqUB6ADu385yLAxBY2LysTwB9ZzwZagzsYYdXYpBr8gxTBeCJCzM4q1nsHR+RE6MjJMxrOflMOqx6cWFzdVZjMepaWoHwE14RsXEK1mOx65ai1zJK6pE7zIJCSWO2vNrO2LbaK6wKYTqig5/nWtC1zRKgAX6UgrBbDTwRJKhNOm3QjMKq4xYokPXwoH2lwAXB9pK9pbAzsUJSmYUvrDTYi4QOOYkigAhf/c7NDFXkVNvHclxmU2Q== 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=Bp2rQ7+3wxvjhH5SupJEbllbd6+3Z/j6z+fz8LdNweI=; b=NpGBzwL4jMMySlzQByOIcyeQPlH2F+zMZW9/A90xfvnsqWBaez0pAQZWGJaLLD3X49mC37xAGxR5Q4jEjS8Ql5UuRJFjFOBtgA54uqUfQvrmIll1a+ur3Bizq/v5Z5sfGPcZoP8L9E7NPsSoExB4rdcKtIb4hTh/fT+sZ1bUKHulYGsJXHhAQBIJvtAPf6F0rokWLg5u1j4MMKMovpFjAYnlFlb8hfAil23DaWEYjbUrcYgUff5Dhk+Vd2wM1jtbt4lwNH/oXq6KuiQ2UyIdpF29hlCZ/UG/lpdhWIFxIpbVcpFHi7N690UZAsUVw+2KeYzVkAHgne9JleNbMWyjlA== 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=Bp2rQ7+3wxvjhH5SupJEbllbd6+3Z/j6z+fz8LdNweI=; b=R42AGVYvOVDL3f+KTcJMPCTQxaR1ciBWH4BuEh3WkdisnjbylGmqyFm9kby6RjD283wMwbKPmdNF8I/a6PwFEevyzRIyx3RAt1r+gOgbkNf4Yh+B5GziQbsUPeSqTl0lVE6k0I4AjIYqMwb84p6WjTSAq2bGtde9l8FREQXyRmI= 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 TYCPR01MB11511.jpnprd01.prod.outlook.com (2603:1096:400:379::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.35; Tue, 7 Feb 2023 01:12:57 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4b75:8d8e:d89a:7860]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::4b75:8d8e:d89a:7860%9]) with mapi id 15.20.6064.035; Tue, 7 Feb 2023 01:12:57 +0000 Message-ID: <87o7q6uvl3.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH RFC 2/2] ASoC: dt-bindings: renesas, rsnd.yaml: adjust to R-Car Gen4 User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Krzysztof Kozlowski , Rob Herring , Geert Uytterhoeven , Linux-ALSA , devicetree@vger.kernel.org In-Reply-To: <87r0v2uvm7.wl-kuninori.morimoto.gx@renesas.com> References: <87r0v2uvm7.wl-kuninori.morimoto.gx@renesas.com> Date: Tue, 7 Feb 2023 01:12:57 +0000 X-ClientProxiedBy: TY2PR02CA0034.apcprd02.prod.outlook.com (2603:1096:404:a6::22) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|TYCPR01MB11511:EE_ X-MS-Office365-Filtering-Correlation-Id: 55935fa9-065e-4492-7c89-08db08a87295 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uMlDOQs5YywBxAsjmH6WmTjkpGfnjUd20+a6D9IStzY4m6/8EHnjE4QJZVReFPEnZYOqH8SoRGIzO3VfUv9L1AyLbaJ//HK8yR2IuHt74uKsuEQ9XUdup8HVj0tZfX9VO3L3PQyhnZdwvYdOzOMYZNpXuTrNchZ05av4voKsObr7CF/yS0eMXSDNWPmjuEMvnzOqS6FdetduUiC1Qwb+xP3Tr5AkgmGdBEXFuzFugMvl5j9GX4IJvgnZNXhKqn0qzGBuH2DzDGHKuIplj6HfsF/7AgHva3mHhaqTUZhunfmxEdB7iQWPIWJTtdSsC9sCj0RHV4fUu2xOT0t20kq1MycZqcoT6Po8DkDO7di945wd9wrYH5HRMkii+TkBjLDZSWv84e230MmmB6dYugbUW+aJuUU3AjJcRfMKgCO2FXDrgdPjsQRkDvGzYkcJzYcd1u8IXGff9RReQrxma6WLMqJznow/VMGES0CKbfVfvsz8De74D/k5zc6/cI2BUzlCezmNiFTPwtdoHPN47r4PjvzOo7fml9hFmV9NdD8xmcOPoUGxquxqO/ZyAGmTQ7MxY87RTtTeqY+pC5r8rH+Ng7hiiitDGAfZm/UoR1i1/AEz9ekgylq+oX9ImbUn8Xi39sTgAapN424pTXlqyb7J1yKEmWydBfftreZtqLaHoRZKCHMPVQvEek6PLigBaVdszf9QYaxmovhf/i3RpPmlbx3v71QWOKG39hSe4eiUvNSFJTlcLd/ku8yCWfNckENDwCfBc3cO072G8YIQF7vweQ== 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)(366004)(396003)(346002)(39860400002)(376002)(136003)(451199018)(6512007)(26005)(186003)(478600001)(2906002)(52116002)(8676002)(66946007)(83380400001)(66556008)(110136005)(316002)(6506007)(66476007)(966005)(2616005)(6486002)(41300700001)(8936002)(5660300002)(38100700002)(38350700002)(86362001)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +H4jsnE3ZJc/VHIF50qoFXTb3xkjJwxfACundXr5sXdA4RoKL6McXhDuUaCNrB2tCkIG0l38LGZI48Ji0we8jH0WZKhf09D/sP2m3o6D8liyg+L6iSLpEj/1o3TXEUA5SJGz/CRRKFYsLFuDiUb9fRaq0w++Bz1heE/vv9wps4ijQEbTMTyAT5aWDpYDzOLXuH6V5kiug0PDGpNC0fwSe9IJZgppzzVcGghdkn20wfSBW8PSOAIHVKz99sS7JR7rnjfhqun5DntdyaKIL0LKzQ2GBGgCtSRHzMmHEGZqSjljm8bynzTCizmTMR99brQnb6NDO+1IHNNygJQr+AiPsTc/Oz5C5YeiA6KC03GY6G4Smg/UCDcu7fn2UBRM4nQUhlPyirTD1p0lNf3L1x90MVei6y6a1s+/1Tb9wXX14C8E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THi544a3PVeeYOAYNFIkVeHmRNBTu2J8lDruJlow1Lpy9HujUm+KIHKcf2Uoil+AogeevojQETObWd8QD6VQS34W5qgycaIbqaHdm6uIbLOTBRqq66XiZuDtj8IuHBneh7EWW8SonxAQNjgzd8= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55935fa9-065e-4492-7c89-08db08a87295 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2023 01:12:57.3921 (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: 07Z4TjfC1kqUDzPl2ZNW37hXrgkE4WVjRst3ULC7voE680gj5IwpXYXOJ4RsuUdAY4Jf7tt+a8fgA4lHoha1HqJ9HsJFYkznb+307+tN7hhVH1YtpjTK1e3HifaExlbw X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCPR01MB11511 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Kuninori Morimoto R-Car Gen4 is not compatible with Gen3, this patch adjusts to R-Car Gen4. Link: https://lore.kernel.org/r/CAMuHMdW_QHmODAKvn_GwHHUWw-=z4Tdq0NkhdK2u2piG_YgB-Q@mail.gmail.com Link: https://lore.kernel.org/r/87zg9vk0ex.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Kuninori Morimoto --- .../bindings/sound/renesas,rsnd.yaml | 83 +++++++++++++++---- 1 file changed, 66 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml index 223f4859780f..77b82bddd04a 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml @@ -99,20 +99,6 @@ properties: minItems: 1 maxItems: 31 - clock-names: - description: List of necessary clock names. - minItems: 1 - maxItems: 31 - items: - oneOf: - - const: ssi-all - - pattern: '^ssi\.[0-9]$' - - pattern: '^src\.[0-9]$' - - pattern: '^mix\.[0-1]$' - - pattern: '^ctu\.[0-1]$' - - pattern: '^dvc\.[0-1]$' - - pattern: '^clk_(a|b|c|i)$' - ports: $ref: audio-graph-port.yaml#/definitions/port-base unevaluatedProperties: false @@ -256,8 +242,17 @@ properties: $ref: /schemas/types.yaml#/definitions/flag required: - interrupts - - dmas - - dma-names + allOf: + - if: + not: + properties: + compatible: + contains: + const: renesas,rcar_sound-gen4 + then: + required: + - dmas + - dma-names additionalProperties: false # For DAI base @@ -305,7 +300,14 @@ allOf: - scu - ssi - adg - else: + - if: + properties: + compatible: + contains: + enum: + - renesas,rcar_sound-gen2 + - renesas,rcar_sound-gen3 + then: properties: reg: minItems: 5 @@ -317,6 +319,53 @@ allOf: - ssiu - ssi - audmapp + - if: + properties: + compatible: + contains: + const: renesas,rcar_sound-gen4 + then: + properties: + reg: + minItems: 4 + reg-names: + items: + enum: + - adg + - ssiu + - ssi + - sdmc + + - if: + properties: + compatible: + contains: + const: renesas,rcar_sound-gen4 + then: + properties: + clock-names: + description: List of necessary clock names. + minItems: 3 + items: + enum: + - ssi.0 + - ssiu.0 + - clkin + else: + properties: + clock-names: + description: List of necessary clock names. + minItems: 1 + maxItems: 31 + items: + oneOf: + - const: ssi-all + - pattern: '^ssi\.[0-9]$' + - pattern: '^src\.[0-9]$' + - pattern: '^mix\.[0-1]$' + - pattern: '^ctu\.[0-1]$' + - pattern: '^dvc\.[0-1]$' + - pattern: '^clk_(a|b|c|i)$' unevaluatedProperties: false