From patchwork Fri Mar 8 15:30:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13586951 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2043.outbound.protection.outlook.com [40.107.13.43]) (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 87C521EEFC for ; Fri, 8 Mar 2024 15:31:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709911878; cv=fail; b=dTi5/0vOUfmrU90VjlNw0lWnp0j4TMV4B5zBGm0LXwnv+0Y2z2iz1rBvMor7G7DPRYetjJQEArkhrLzk244UdVwB5yIPNL26OnmZGzuyCom3bP4uK0XBB0HE7E7iYLjlkBdLItU1VCgibj+5zFDn6RZ3f7iqpVItnsGLX3tLewU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709911878; c=relaxed/simple; bh=1syz/aUeJNCMRuMdqZfLAmwttcSh8oLFScKSrTznruE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ZUPey3RzgEM2PWV3yWwwd4+4HhB4XeOXj4A8vIWmpm5h9YEre3koNyJ/HJ8367z8BLMF36UGxTmGiKhm+08LYFQoX0q+k5WYqKd3bI0/dFE/d2d8JlWsgJCOJ9c1P2HWVplrVMtodX5vybaWH8w4Hke2LgAa3O+2e++xmADlR5A= 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=L3FKXNfy; arc=fail smtp.client-ip=40.107.13.43 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="L3FKXNfy" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=neNRnHjg/4a4TLZbdyOd7LrZl5bO2CxwJLtSqUSnQCuo0999kkxQ1FGmXLbfuCCoixsur79pbr34U37auIksQpk9F9TF45w492lFoDe/5xNYkNTDRelknlyRTwX2voN1crnM4/IVkOhnFlzvEg0+On7byrhnA3otxZXcTNRh/Ep9gff/UJ0YCIhn+KMHqomBNRR306BxTw2LOPNcl/aRfphJmjaStcKeTp0zkAqqgJNv6CXqM5QCeAdJ0qJlsJYw+RDxk0/pe6kgHCizdziCq8Xds9jBHu+WiFgU0TmZqPaEhyJsPkVDzQkTitIStxbL2TJ6+m+3IMyyX+Sgc4n4ig== 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=Z+87M1nJCCt3nFThf9vTFK1j4y9JjuhQ/XCHl3Fycsc=; b=fjFw6dOSWQ250O7p2F/FbDCVD7qupQGbTbmBMdpCBhh7p6JlBQh4z2xHEJJ/F/TJlxhiV5AK//uu41W8fK8XYpRJmQeSZVZRMeDLYpRl1aY938W+5iDy7bgKBwLM/2/oARcdlkdV6kVyiN+cYxeAQpUAq2XF/XHwAwdBjlavQ7omErWqCRe0M8Oo2l8i4Vb9D/Jd8LEkf7pinuApSisu9WmWGgi0orOp1S+6n8521TcAq4PU41khQ/jHY3/NUiveHj7Cbe9I/HnumcJQhrqVwLUcoluoRoAgQ1Qa3Sk1szkkqnv7kAvDIYU/v3cD8L4sjNCxnXAAMFMbV8UjDPN0ug== 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=Z+87M1nJCCt3nFThf9vTFK1j4y9JjuhQ/XCHl3Fycsc=; b=L3FKXNfyc3blx+orlCyKRhQ1vOykZRyUoTLE6F0jek8E3C7+vnZ/M8qCtjR2w6GMj8xCkO8oF1Vug9QKc1keOofnFizD7z/9xvACQsnA3wMSJVSJ1UPPqhi9xmyUfRXvzJttjwgDIrPqQ0xQJCASIujeAo+ai0rU7KhNZ9Ny5CU= 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 AM9PR04MB8116.eurprd04.prod.outlook.com (2603:10a6:20b:3e7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.29; Fri, 8 Mar 2024 15:31:15 +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.7362.024; Fri, 8 Mar 2024 15:31:15 +0000 From: Frank Li Date: Fri, 08 Mar 2024 10:30:50 -0500 Subject: [PATCH v6 1/4] ASoC: dt-bindings: fsl,imx-asrc/spdif: Add power-domains property Message-Id: <20240308-asrc_8qxp-v6-1-e08f6d030e09@nxp.com> References: <20240308-asrc_8qxp-v6-0-e08f6d030e09@nxp.com> In-Reply-To: <20240308-asrc_8qxp-v6-0-e08f6d030e09@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 , Conor Dooley X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709911866; l=2330; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=1syz/aUeJNCMRuMdqZfLAmwttcSh8oLFScKSrTznruE=; b=4Gdozk6s812gUZ7B9+kOzH7asdjjzQc15SPHqAwXofsXpYSLxyUIATldM5WvxGxKcsLh533v0 X/iUSB8EagiD5MogbS/6oBQc2Sa+7KRImPTtLFQGB1PyvZCI8AXhVcf X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0151.namprd05.prod.outlook.com (2603:10b6:a03:339::6) 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_|AM9PR04MB8116:EE_ X-MS-Office365-Filtering-Correlation-Id: 34dea3be-65a7-49fa-ee57-08dc3f84cab6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 50scybt/cjZ+tCVVWuvgyOhZF4OFzjFd0kzG6XTyMBhlvmB74XFQFSvEqtqBrK45cQipx2IL8N+AA6/KbgnCYsKjM+zOTrIpSGmkVGXApnWnY/BJ3ZzK4+9O4MLwn9yym1tWara6ye3Nj0rDDvvViecolhUwGVo6I8Xm81XY6GLvxqGVO6Kh6qpzQdq3LWO9HGquTp0cR7QNd2T2aQfWDeFyQDaeInMfI2gn4FMJLNBTX5QXy2a1Rt3txzYFiyG7j6Nx5964DYedLoPMTo8LDCx7e8fWsBf4tpIlF7PtCUo6zq/pyuPlVB/++m6+1B45YwyzcLjYTJNhVSH5747eKq80ZmrqB4fDykSPsh0dXJxkEQCM62h9Xw+VgcntyhjvRXMA23fdf6y2PwxZPwUC7BEdIrLi1FoGtSGj23yiHUkWFHQ6ui8sOcmisdahNuOp7nLY8Vwx0M8Ifzd0nnKFNYAQ9ZWziAQMWMEzmLhsZDMEH/DuUijmYgC6WrfRG8Bptf6llzR5qiINqAJbysvFjgp3h+6hCV64LLw7rkJUbrkXD8napROsai1/XviQ6GTPy6JBe5I76sz/RFB5hBS2BPHwVYky8hlTlCotsDeTzqwq2z4/wdZG2xs+Gch2ffZUPIx/lz4013oqoKDQa1UHRP//4XZpYQHQhTRuvVnlpxRJXSqwUo868JewpZCOtuDk/x8bLSw6wrpVSCEXOYBK0AyFeTFDDtLQllLXJkOsmr4= 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)(52116005)(1800799015)(7416005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?V90BpsY2BjwR8KxRmicN0UJHyKED?= =?utf-8?q?88X0eq7lluuoPDrssUxD5m6dgdIEz5p/pUq00Fo8iB0phLE+Wi/dV8deNWKKwDON4?= =?utf-8?q?s96db9eWVya06LQFvr8oG0qUHzm49qRVSHl5GetjdBGneuZQLE2/slYOpWpVXhLoA?= =?utf-8?q?iXY/XyTtb28GnND9HD47y8BdHJ64nkEHiZ8vrbwgnumCwBEUgU1vEJgVEut1McHAb?= =?utf-8?q?4/sB5zjSY/21lcZLi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Z5Sf6bQniP5r+07eSL4E/hU5wHK8DIpbbklyJbbrDq2znxy0EfGO8gPY?= =?utf-8?q?drNjhCBB9KakKh3QSLNd+Mznn1lAu9aMgRbkv+Oo2UEnv51KAFkbVL3iGNGXaIGhy?= =?utf-8?q?PZ0FEHpbumMV5Ukqg7Tq2b3YHjLqoS42yx3MYPHBMVp4GGDnK2Zj4eAgus2Gq9bfQ?= =?utf-8?q?1hDJc8A1yTlOEbgZxWetBDTqkqTmrYg57OzGp7V2Vqx+bX8bgbxJcKzbtY8+UgfQn?= =?utf-8?q?rymiHGQwMSc7HI4590lJYt0YrRf3ivRHvPSAvH5uNxhHS6yyzaEJocuiouWtXpy7i?= =?utf-8?q?Dpqto1QSBi+wnQWSlsWL/qtOmYxhHt8xJxeYvbDS/jvqMTq1sjlgLg5LEKHyHX18T?= =?utf-8?q?M9wBgL2BASwEKe4vzQjj475IMSMjKXmdnWhWnBudOIdYwUKgwaxu1WQ2ivLiLLILm?= =?utf-8?q?Mlr7m4KmfHOu?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34dea3be-65a7-49fa-ee57-08dc3f84cab6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2024 15:31:15.0038 (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: EsMPNUmzfA2gtjk0u5oxQgrD/MPKvCN1NQ8kmQS9wXrEgRgvfVS/qbKRyqtdEPWvm8Am6IWY23mq/S/R3JNLPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8116 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. Acked-by: Conor Dooley Signed-off-by: Frank Li --- 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 {