From patchwork Wed Jan 11 01:08:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 641295 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 76CE9C54EBC for ; Wed, 11 Jan 2023 01:09:33 +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 BDF979026; Wed, 11 Jan 2023 02:08:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BDF979026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1673399365; bh=u68BLaNkMbOv6tVxbSybtd62QTtu6XxbFJGTZK7cFSM=; h=From:Subject:To:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=Vu3vfyMdEpptCHbdn/Bmscmd0rVuk9h4qHDyBfn/23vmlgUvaQIgzgo6RUILHnukw KIWMiurqKiXUFFXQ9/6aYRkjo7q/xlikWOT1701sEk7AmInwDCB4aiTKLd60f1owHL Rqsh+4VX2p6aIIGtDn58UYDSrr+NJTpc6iEnQkEU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7387DF804D9; Wed, 11 Jan 2023 02:08:35 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9A2ECF80549; Wed, 11 Jan 2023 02:08:33 +0100 (CET) Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2106.outbound.protection.outlook.com [40.107.113.106]) (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 9836DF80544 for ; Wed, 11 Jan 2023 02:08:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9836DF80544 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=FCHT3MkR ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i9cW70k9YK8QamEFudMxmhleGPiOCebLTR0WVR2WwLg3w3miqyLNZ316SV7kNhLoi2J/1P+rSlkfmqM9ZE/SYSkk/LOWuE45VYbY6G52QYdhxR3nW88pb6OsVK7JUTFpjRf2HysWYygiIAlUjYTZNiAW/CRsChYZdIGF31iGw7WVrbPs/wsd7ne99VmmITKrh3J8MTkqaFJneERBx48WZBWXvi20Kiv6hNNVFxFnRWnRRGVaHEwjbZvfNfq0Fsi5fUzZ3wGyw7XtVfCJ3C8hVUNgLqCaGOGK/7QK/c4yfj8eE3KhHPqxLnDkVMPVHB0DlZJAOnnRbBZ1cel62YNphw== 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=QpzF8+fS8UpMehVlspcEvom6qEwYTt0TDSZVUZyrf1w=; b=m/3Rqm+S+tA60FIVRWhknvJoRJB3DwR8uJ+LrLD1Xla5FH7FEFMgDwIKeeI01Uvk4W5X9co5zPL7wVuW8CbgwL9vMwVl1HJJSZKJGNOWvoNNU+C9oZYwtDcqKTXcFUc9/rGo2CYh4CTNKoNJvAuqMT4zrsmfESnB51ivqBw5vuhmYULchKcGKO6ri/79C04YcGSNnZfI0tRcFDV+fHX+usiryeNrneGjWF0NeQqbXxXjh/JwySU6MgiAYzVHX7NaMduQuob+Mehy68vY7QjQ32axq6GaD+/JSE3GA7SDRNJvq2ZQ/t/cqmxw8g4OmRpahk6iLxEed4NelVqyvlAJIg== 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=QpzF8+fS8UpMehVlspcEvom6qEwYTt0TDSZVUZyrf1w=; b=FCHT3MkRb87LcGI9AEY7ZLcPTHvoWeGaSv1PbqURRWgUc/zG5TnRe8HI8YXs3ab8vYx0mk2BRJwaMEP15VCsYKFXefcvtV0e/4xhfAYHT0BzyFm6n3oY7bDtHLh4Qd3lymG8L4/uSJA93qu7sXKRCuxrkxxbzYz69ssSvI/gRDc= 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 OS0PR01MB5970.jpnprd01.prod.outlook.com (2603:1096:604:c9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Wed, 11 Jan 2023 01:08:24 +0000 Received: from OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::3cd7:a7b5:ea86:9ae]) by OS3PR01MB8426.jpnprd01.prod.outlook.com ([fe80::3cd7:a7b5:ea86:9ae%4]) with mapi id 15.20.6002.012; Wed, 11 Jan 2023 01:08:24 +0000 Message-ID: <871qo1j2t4.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH v2 01/10] ASoC: dt-bindings: audio-graph-port: use definitions for port/endpoint User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 To: Mark Brown , Rob Herring , Krzysztof Kozlowski In-Reply-To: <87358hj2ub.wl-kuninori.morimoto.gx@renesas.com> References: <87358hj2ub.wl-kuninori.morimoto.gx@renesas.com> Date: Wed, 11 Jan 2023 01:08:24 +0000 X-ClientProxiedBy: TY2PR02CA0065.apcprd02.prod.outlook.com (2603:1096:404:e2::29) To OS3PR01MB8426.jpnprd01.prod.outlook.com (2603:1096:604:194::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3PR01MB8426:EE_|OS0PR01MB5970:EE_ X-MS-Office365-Filtering-Correlation-Id: d14cf40e-5593-4a0c-dee3-08daf37056a9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZmNOfkV5vaE2tESwkHtcWnNXd2MfRgIBoWjOz9JGotxT0/Xfs4P8BEKUM5PTcN1KHawq5F7abv0406as3QRLUTJaBu7OoklOw6Dmya4lfvqmg4O9ujFPijyTflETK3jNIhYZbP0cpMd3AWOS/XirIXYTHAb1SAbkcNc55fnDA2xy0bsV70NF7wGVbTW9EIxwsjbLgkvBhaPjdRp0j9Hr4arfDHpzeEEpIADwA8gyEhUbe5oyHXlxZizBooQw1H0ivPGSR61159QBCiHwP88TxgAuwSuuPP/+ViSwMPxjv2HcwauvOUdwDTXbj5dypz5J/g0LOUzfy+78GYtzAkNy4HW5EpWIvzcvRU88DIXAiZgVd5Xiu15CL+dRbPqt1DSm40YLxHkY+gGYITWStt2vOGT5L9XVMG5ITQyF6t2sAwbO4xjHvESHg4DrzlcBwuZOV60AVWU2wFjagWDOZP9jouPWAXsCr5Sah+XjfoXGqaiFyeoLJD3XlDcol8VK/9r3wE+ToIr1mWC7S7yp0SAEwwVAaPgqXzTEMeQUG47RETLKngzTsxr7konieQ48mV3wqZFgP6Cpt5KTctCBq/5lbXfnXtMccKkyciLuwygqzTXeUFr968q0cGF+zQIkOSvEF4O1nOqZIvIv31kncBmuXbsRARu9WCp/3NNKAASVerottCCsvK3UY+VLFQM7lZJvcdRB28r8C91sM5BHayFbTA== 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:(13230022)(4636009)(366004)(136003)(346002)(39860400002)(376002)(396003)(451199015)(52116002)(2906002)(41300700001)(54906003)(6506007)(316002)(26005)(186003)(6512007)(2616005)(83380400001)(66556008)(86362001)(8936002)(66946007)(8676002)(4326008)(66476007)(5660300002)(110136005)(6486002)(478600001)(38100700002)(38350700002)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1kfHWXBC4r0pmPJ66Jf9Nse1blRljqUrx/gQ8NnS7EFfJUCtyK6mWsce6AELHu3My/MF2xiWhsqHVlPKHo/epxH5RXQgA+MZo74iTPPbgI8GIFzcGOHAwcW41eGYD1pAECHc8MPOKPZcWznPsW3n7JIg8Kh5jtsEfJMc9xjgLbPI4MxJqTHG+f7Z8pKeANcJVlquv/fdOGDlTfdOu/UIbFVYZdMWzfP2Zjb6rq5/U/CiCR/upyxEnZoewKPACPOYBCZVe3eaa0nP0k9n3PXSM3dhlzUBrZcB3srDdnshjnllrRo5DVmjvUtz98NCKz+jaVI6tM4L7/36fwECh5gGGqm3B2JJyV/tILpQQeqwdiBZFy3nNX0PD4g1X8a0t25kJGGDKByDNf1TC0cbUK5vQ3KKrKj67+iAkYOfCm1Gqwypd654SXpVrAw/Ved++AlioRFzmq7biFHQ25ZtjiNMc3g9qrrvWPC7IHB395FUytXZOnhoxnvrW+QeLpP+bGlA2na3mK9polrlx43jve6pS2xH27jZJdg2cZvkd2ghcmV8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GA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: d14cf40e-5593-4a0c-dee3-08daf37056a9 X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB8426.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2023 01:08:24.3300 (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: Ca5f4E3YYS/zE8cf4qXPOXkZdmOqo2oMQJzzQWN42XqAN4jNs7XE+MBOlRioJExZUoTy9Xco1d8h6ZigPL73M+vtdXQoE7u4IX0nzFz2gZv5vFqmuOXr4iHBYuW5Ntmr X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS0PR01MB5970 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: , Cc: devicetree@vger.kernel.org, Linux-ALSA , Geert Uytterhoeven Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Kuninori Morimoto Audio Graph base driver might need to add its own properties. In such case, having definitions for port/endpoint is easy to handle it. This patch adds definitions for port/endpoint. Signed-off-by: Kuninori Morimoto --- .../bindings/sound/audio-graph-port.yaml | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/audio-graph-port.yaml b/Documentation/devicetree/bindings/sound/audio-graph-port.yaml index f5b8b6d13077c..fa66b73abcaf2 100644 --- a/Documentation/devicetree/bindings/sound/audio-graph-port.yaml +++ b/Documentation/devicetree/bindings/sound/audio-graph-port.yaml @@ -11,25 +11,22 @@ maintainers: select: false -allOf: - - $ref: /schemas/graph.yaml#/$defs/port-base - -properties: - prefix: - description: "device name prefix" - $ref: /schemas/types.yaml#/definitions/string - convert-rate: - $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate" - convert-channels: - $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels" - convert-sample-format: - $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format" +definitions: + port-base: + $ref: /schemas/graph.yaml#/$defs/port-base + properties: + prefix: + description: "device name prefix" + $ref: /schemas/types.yaml#/definitions/string + convert-rate: + $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate" + convert-channels: + $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels" + convert-sample-format: + $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format" -patternProperties: - "^endpoint(@[0-9a-f]+)?": + endpoint-base: $ref: /schemas/graph.yaml#/$defs/endpoint-base - unevaluatedProperties: false - properties: mclk-fs: description: | @@ -100,4 +97,12 @@ patternProperties: minimum: 1 maximum: 64 +allOf: + - $ref: "#/definitions/port-base" + +patternProperties: + "^endpoint(@[0-9a-f]+)?": + $ref: "#/definitions/endpoint-base" + unevaluatedProperties: false + additionalProperties: true