From patchwork Tue Mar 5 17:33:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13582803 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2060.outbound.protection.outlook.com [40.107.104.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4FB9171CC for ; Tue, 5 Mar 2024 17:33:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709660009; cv=fail; b=YWpwZ+S8cxD646ONoTr4FEHf0cIAsBMlmbyXUAEoBj6CZueqUyWaoe3xKzsSoaothXg1lNb3qv5gpb+0vPycWcepkfhcEn4+Md/h5dA5mXEd8VnixldNhVAvZL5qzq9ayCKhMIHu2w5oo60djbQvtZWjqWbDyTuSRDEAdy56oQQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709660009; c=relaxed/simple; bh=/2HWkq3Mm1iUSRkJDy7WMODf+P4negKVy28NKaq5Zj4=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=kvgOPOzPF0I14ICOz6hb0b3pHGWHxf0mQUrkNtKauKzI8TZ0obZTujL3XoG5t6rCktnO+0l9TMOe9zHR4QxlGhHquXYP549aBx/3b8OkxLmX0ZLfHWNhriwXXJf4lrMO6UaVdqbKZrzirDpvLJLJ6Nd8xlow0RR6Y8bJrpqD+e4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=FeEiC1Zg; arc=fail smtp.client-ip=40.107.104.60 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="FeEiC1Zg" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B9o1OU+XjPmAxVsgc38IxUyL83onJxqJL2zFaU/xOmMSuO5zKKjKbqMer611M6aVAC98nCkSeQF1RvzyXKNvstTlsjG5DySgR0TXu8A6l9gCJzcTvQSDsUunJ6WvP+WrqrqYpkDuOx3gTNYm/qpCXEIBvLv6mMl1URqM9q3kuqx0bH5FjvuCN9w3gOo319v4rb+duWhdm72iGRA1T2YX+T0F2vC3Ch7BahDr4VsiSxQFRASk8PRFFDrbEtjZjpwojVLw8A5V3rqChGfvGbSx8AQONVPWSsdyClMJqbu5E+2uNNzw5cnfXv3BkomNRfGIcEfq/t1w7S5XcGEHJsh9xg== 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=W/KHtMUPtsyENuHOeToNttq4guUrlqWCDtHLM1euBe4=; b=lC6vzNiXJAvX5LRPwNkfInJ+7ek/iPvJHwk3AZ+9uXa21qUQla6AR7z/h7HQFRTMaSS1nNq4FI00KswA7fSybUDvnAfwLejfcl98GLrGyfUdUgQbpTDTHpayZVO4nglw3G/PeTg/PdtupbJFIBHy1/APy1eUryfNKCv0WnAylirYnjPRf2ftSpyVfVr5Rctkq+tanVT/cfD14vAesmkJRDadv1oWOlrx1Z9czojWNdVBsp8hMz/sCl4rhStUy8ZFrtOX9R5x9eqh0pt4N9MNdGOGbCC3qlLjZKpIlcnnsHX/M8KA5t9aw+YBnB6lHe0JkGLQiDl/MfHI8UkJ3z2Qcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W/KHtMUPtsyENuHOeToNttq4guUrlqWCDtHLM1euBe4=; b=FeEiC1ZgeQGpmiqF/SoXQJIyu4vgNS5EaqnlHCFFb98OKFge0PhtZ3cNHXkb5nJIyScRBXyKoJz41dE3Z5hZObhroYy9t8VIAAWihKEizNQ9UvkLAlN0R8Oj0MbDdOmwHhfBfESR6rzhXZtRCosAM+xywY0PtkbmzAmUw2N7Sac= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PA4PR04MB7856.eurprd04.prod.outlook.com (2603:10a6:102:cc::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39; Tue, 5 Mar 2024 17:33:25 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6%3]) with mapi id 15.20.7339.035; Tue, 5 Mar 2024 17:33:25 +0000 From: Frank Li Date: Tue, 05 Mar 2024 12:33:02 -0500 Subject: [PATCH v4 1/4] ASoC: dt-bindings: fsl,imx-asrc/spdif: Add power-domains property Message-Id: <20240305-asrc_8qxp-v4-1-c61b98046591@nxp.com> References: <20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com> In-Reply-To: <20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com> To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Shengjiu Wang Cc: linux-sound@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709659997; l=2277; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=/2HWkq3Mm1iUSRkJDy7WMODf+P4negKVy28NKaq5Zj4=; b=Fy/xb3ldFP8wnnjK3P66I7BXsJCCFV9StqD8U6YzXXThNa4w6qfUgK6nEWN7hXcgnc4GXPN7O IHblCcc1q89AocjGYhXlnnKfXZSn0LIbu3+07mQBtf0BHmAPe3B8bXh X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0159.namprd05.prod.outlook.com (2603:10b6:a03:339::14) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA4PR04MB7856:EE_ X-MS-Office365-Filtering-Correlation-Id: 6876ee05-d78a-4397-eb63-08dc3d3a5cc8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ajHuv0FGaYu3siQUOIf3JSE/Q1Fq+ENepyEjo513OLAEqPVbheJyoEHzKLypHDNxoQyeyTsmjbYazaaR6pbyN9sGdv9wL4ObwqQr1YuteNDFdrSeUy7pG8+h9IfoSRFAEqUTkQ8zfUHiljpbrpp2ql4xHZqtDFyefQ/zAGWNq9qoVMLGI9jrm/k84+XdjXMN+AcjQ1EK/TcFKg5lLwOlSgnq9L/3xDwDcTMCtIxq/28CEQ0LacWxh83Ap73yVex3hDgt0BLOAUXLLTKQRdqndZXwK2XMkZ9aGS7eO/w3RtmlTTa6uZMMpWN7XrCbt5erlS2qPjSPVOVkzFK594VN8D9vmM+DbRKX1O5ACvMseB/n11xioDeKX5pWERqumUs+e+U60gSylhew/GTEeikqQSPe6HXdc4bXk02uhRQacCW6nKNUbOIOnwnrtXqxQBhLdYd9ua/CbYjGfGVxhMAScabfYXaGYLIyKskYbCjRdAhCSDBE9/Mz1ZQkDo6OmCb8O464ufBC38+ZXCI/6+ydtkcbX8YFMqYaWUybJYLAqlveK5EVBeggZDaThCl5D3nIfzZUS0R47ai7IivUs9a3H3muM0QgAEryTxUg1tZ3CTYYxlb2V9BNJB2d53DsfXMEUuUbUTT1ECbRPCj0Y8NnBXspIhzXMaSolJfPLU9bHnlCRp03RYV3oGd6eNHr1SIMRygZzA3Zwo8jZqA3tKwQ0H5ntm6Jcil7uKEc5mD+gKY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?axhkHe1fT/mYTbpeY9zfpqT8uaBI?= =?utf-8?q?w7p7o4L2E8XvrNiZh5K+QIKPLnAxQxPco5Ev5YxVwMGYMP6jVNv1s85YpJBv/hk2v?= =?utf-8?q?dyo2aWa/Z8s8sZEA4Z611tOeZbDUUUoQPLjGSKhqn6n7S0XFhLcQ+zh5jmErMxLGV?= =?utf-8?q?iQCWfLPyJhNnm/DpNDBVRHWFWYrg8K8QHwi6JWVCBkoi3hVmaXFuPh2ixDoekwQ3V?= =?utf-8?q?T6AeCQPKFhQYmck0YpOXPAXkD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3eKIS5W4sXCWk9BkT0bsxALociGQUNiPSDIg?= =?utf-8?q?hL1IdMbpXj2+q3Kp21wJKHIv9BTONOLnTjHOE1TCRSzBDxRAyANPqS/yAeL+AI0KM?= =?utf-8?q?c0T/1EHV2JmSRq48wP92hemgwJYVBDZZMcGunMR5DxzMLIxnjrdTArHcYwJQE0q4Y?= =?utf-8?q?rXJS/uMk8DQg3zErScf2JE5VpdUFPfMHF89FcNKXy6sSqovAUIDRlID5aJzkl/G6S?= =?utf-8?q?YaXUAj9eD8+kiCQJKEPNUwyVgd8zoodVxuMyicCQF+w+g8uoVJMpxxqBS5KIqQP6e?= =?utf-8?q?9hugnF3xDRmq7MrIPvAXxTr+MrKcHNXcITx8NqBF/4cLNicOd1pJeiJSLz0MmCFgm?= =?utf-8?q?MoFu44NQdvZQhznAbJbk5Y2RNhBWm+4a73MSKhigKTUkNQHyyzkFBA21DwffpA2k8?= =?utf-8?q?ow5etN73mHPT?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6876ee05-d78a-4397-eb63-08dc3d3a5cc8 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 17:33:25.4739 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vJ5g4NWLeWMZ0FXXyMzGigFBh5ROjnqXe1rDfYJ3junU6KluYaNwN8Lin6Yyf04qJ0MET9JqOHmGi1gp7reRBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7856 Add power-domains property for asrc and spdif since fsl,imx8qm-asrc/spdif and fsl,imx8qxp-asrc/spdif require 'power-domains'. Set 'power-domains' as required property for compatible string fsl,imx8qm-asrc/spdif and fsl,imx8qxp-asrc/spdif. Signed-off-by: Frank Li Acked-by: Conor Dooley --- Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml | 14 ++++++++++++++ Documentation/devicetree/bindings/sound/fsl,spdif.yaml | 15 +++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml b/Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml index bfef2fcb75b14..76aa1f2484883 100644 --- a/Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml @@ -74,6 +74,9 @@ properties: - const: asrck_f - const: spba + power-domains: + maxItems: 1 + fsl,asrc-rate: $ref: /schemas/types.yaml#/definitions/uint32 description: The mutual sample rate used by DPCM Back Ends @@ -131,6 +134,17 @@ allOf: properties: fsl,asrc-clk-map: false + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8qm-asrc + - fsl,imx8qxp-asrc + then: + required: + - power-domains + additionalProperties: false examples: diff --git a/Documentation/devicetree/bindings/sound/fsl,spdif.yaml b/Documentation/devicetree/bindings/sound/fsl,spdif.yaml index 1d64e8337aa4b..56f8c0c8afdea 100644 --- a/Documentation/devicetree/bindings/sound/fsl,spdif.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,spdif.yaml @@ -86,6 +86,9 @@ properties: registers. Set this flag for HCDs with big endian descriptors and big endian registers. + power-domains: + maxItems: 1 + required: - compatible - reg @@ -97,6 +100,18 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + enum: + - fsl,imx8qm-spdif + - fsl,imx8qxp-spdif + then: + required: + - power-domains + examples: - | spdif@2004000 {