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: 13582808 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 66A85C54E41 for ; Tue, 5 Mar 2024 17:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=BMyxdcVwUeulu98Vgp7APeed6OQtvjJ59vyC5xoSfhc=; b=s5N7/2fq7+xPwFkNDxvsfv4Fdk xDREFM2R/HziJX3p8ze/MsX2/ghvi4B0xBdOMXIZbGQEm7gVNhDL2NTDVYqG8wqazuGO0o+Kua3v4 LWLAkp3X7Tg1GXuvI/aghqZxF2ZQGvUfeJGF5TTtnsoHNKSGSvwKuCNp87VY1XNn+FyszEzt27uBS 3Rx+iLNFEdu+zaLbkAtMLlxMfQyae/+YakcRoxFk7/g+dSO/cMZnEgmLCx9OLloaTzGLNvbp6nhPp SYJHAXZiYrBCNNtCTMegPPBo1ln8R7OQsrvAsYNPvcOzTyQM61Zo7R4iItQa6N3/Hwu0Z+9vF9+LQ B8ceOrvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhYfd-0000000Ehg5-0YYv; Tue, 05 Mar 2024 17:33:41 +0000 Received: from mail-db8eur05on2061d.outbound.protection.outlook.com ([2a01:111:f400:7e1a::61d] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhYfY-0000000EhaN-3C5h for linux-arm-kernel@lists.infradead.org; Tue, 05 Mar 2024 17:33:38 +0000 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) 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?T6AeC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WLEVdio0jW6KO+HO25ftF3eKIS5W4sXCWk9BkT0bsxALociGQUNiPSDIg?= =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240305_093336_844066_994AF9E8 X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 {