From patchwork Thu Mar 28 14:51:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13608691 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2075.outbound.protection.outlook.com [40.107.7.75]) (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 942D68626D; Thu, 28 Mar 2024 14:52:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637533; cv=fail; b=mkhqumcUk1VBx8wqNKyYPf9m2n/wr0hwHn8vZmyZTijlb7aPPswnvXJfE4nlwv9VryGje3ypQTgCkHjDpjUvUuxiLuUkeAH1gNpHKvasg8HGrZeOos4gcCNw+w5BEEHldnygLyfWu4s8acqzYsscxsYMUXaib8YZD65/4vi0D/g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637533; c=relaxed/simple; bh=1syz/aUeJNCMRuMdqZfLAmwttcSh8oLFScKSrTznruE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=TZ2pWQloH1kgIfVPd2DNz1Rz/JEcOVG3MlojMxRk/TOYRQrIaeEYw9vZj6MattrK0EC9fgNVZayjaFlUw1jPL+sC6MQnbtdXiIm8K45xYFmAoklBeAjZ2Z5Gqqpq+0TtXVHX1ey+RN+tYUX5qEgmzxMxpYlQ3lrwTeeQrVh8N40= 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=OGCYxWau; arc=fail smtp.client-ip=40.107.7.75 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="OGCYxWau" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YGJkAYHvEynnV3sHHp1szx9QOknstQCpQF1Gmja8HqKaHHkOhXumtC+5yY15dYOjl9qn5k/F8O7j1Oz3+QcP4WwyUn8jGERbdSUNn31mgHhIK3GKAH4kIE8dUlSTnzy0Csh+/JENCyBx5IBPOweP0hMeOutawURPpsJ3ugA+CfQDXHfG7FP9kv4VlEgnovgMz02NB1KTviCDUqBYM6POXg+OBozfLiPWx0ZY8yuedPhy7zzJ2cqqUI+a8Qfr1ZyxaU41umg7joYQN4vU/A/y+Mkfdtc1FFxwS1XYukH6mSo4xj70Lf9aHFieaK37DpTI0UdVhb2Qek0jcp4aQKO35A== 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=nJRv3MxgI+8BLi5g0D3uOWM4wSxEGKdVJXAIwCSJz8NiuaXbRmWNYhYNb1tyrhM296mxfU8yUQUYd5oQX0I5veIVyjbMtktxi7j6T/qnbVqPGXi/DrZnMg7nSebTj4N+6TtNzIZxd5eeIw5msSOH4DPjvQTgQen2PGVqFOniZxE9NuQbp2FHFuTaoiChwi98v7if7fQjo1vk1IK2d9RKKrLIB/IhHidnBb0U3tGR8bWTj8jxEGhaSsMcyknFdJLSRK/jA3FpDOMIJoHJDSPfP9HA3LJaglZKhfDLEA9DGQL8biLTPHPgI/nzLbtD19Ufg4N+iP9MCkNrEoyZtV5Ijg== 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=OGCYxWauxCfZGD1ncOJnx1BDgLvApjX3DQl3vYjqAUb+Z3a2HSSWVALnz5rjbYxOJ4qFaQF/o4Po80p3dro8V5cVgjTm/k7G6bK6hWeNQ+sVYGWOQmGk/axkpTMfggJSfrsY1XHf39TyS8ETNfB5w1tpeQzSh4KYSHnaVp+GBxI= 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 PAXPR04MB8880.eurprd04.prod.outlook.com (2603:10a6:102:20f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Thu, 28 Mar 2024 14:52:06 +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.7409.028; Thu, 28 Mar 2024 14:52:06 +0000 From: Frank Li Date: Thu, 28 Mar 2024 10:51:33 -0400 Subject: [PATCH v8 1/5] ASoC: dt-bindings: fsl,imx-asrc/spdif: Add power-domains property Message-Id: <20240328-asrc_8qxp-v8-1-801cd6bb5be2@nxp.com> References: <20240328-asrc_8qxp-v8-0-801cd6bb5be2@nxp.com> In-Reply-To: <20240328-asrc_8qxp-v8-0-801cd6bb5be2@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-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1711637518; l=2330; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=1syz/aUeJNCMRuMdqZfLAmwttcSh8oLFScKSrTznruE=; b=wBTzCPY9EsFE47/fc3zDX+LAyqVqegaso1VroFc0+c5Zsdi2yGYofjfC7uTmaon6AAK4z6+FW 6whJ7OeiSTyBLzh6pOFUydgU+nuplUrD1J4Vpq5n7vfEwTUKEkA3EYZ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR11CA0087.namprd11.prod.outlook.com (2603:10b6:a03:f4::28) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB8880:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ebe12f6-cf34-453a-1ce0-08dc4f36a343 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AGE9f86TcDV5WY9qzedqRk4hcza/98aGaVHngnnC86QkosK9/40S1MmIHVfzFTfBoYj8eIzRWqxMI3v0wr+TWFFRkSA2eOzafPPSuJNk+vBVmEOsCAUQJ3KRhx06Ci8jz7Mqr1Q4ROy4MKlmVnMYD/OkYjj6wWWZtg2qeMtgruYquXeequa9I92aZdGTVOnJT3db0BAF2kd9bqawPrtWxCbi6y41dDzbzDDswfpEMvYMKsVJdOcNlB/SNKp/MpexiFN6N82ThgF5htKtI4Gy1qweUFn12sVbJ0dqBKSkP/jrq2K3XaFFnFrurhjs+CcMsHc+LKtRUgDPVtqmpBCHKclSfC1z6WAhGpPDBsr52QmiyoIQ1+v+BP9bA0cFdz+ezk3/3iV/bCc4Qf2qGFRdjru8Z0YCFdt0uPOfzPCCq0FD0ddcL01frK45jTc0Y9dTJiwbk8EoBXRP3BrKIwubo94hY0hwx3qx2knFWH3Q6UwKgeuXTZtsefF+2kNg/Ml8lcRt+T0cnKZT0YZaQuGBoKMdte59Uf+W/Ln0m1fQns+a3EZ1e+he6r0bFvZsOepAJeX2EK6vdXRzFm3wnNXm/LVWqfIePMm23JU8ARchCdKNqBhdOISfIDYj6fiJvNe2TZQ8ZfqiHg/BGfiFN3lnk/Ojm+J8E0/YaAvbWwJiN0RKf9fM8Ucj08aB+bsFW2Y5/RN4vqlzbVNn1aZk0fWaWQy8WEnzrHaW8kVE+4flc5k= 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)(366007)(1800799015)(376005)(52116005)(7416005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?R/J+ssneUCN2b02XY+L3x0VMKJBu?= =?utf-8?q?F6FujTnY3bLCQssDANvD5P2t32KNgiorze06l0uwbpBQMGcH4LLBYXZJgtFD9O0VT?= =?utf-8?q?nN0bo0Pw0Niy85pmphXfqPNu3H0SCeBEeJYtrj9gcORgkI7EV3uFu6zRTOMu2+YiL?= =?utf-8?q?Ramik3xqFxHzSrOSKDlml51m7yXVDsSWDTH/NHgpDh3r9sK5C/IphRKGdw0euvJID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utf-8?q?hjSnN2hmbccTWfugLQcHsxULsXBH0taYNjE/BL1Y9wlHb6PegnXvGQUpCajrMvJa3?= =?utf-8?q?Vq7bLr1gF/PI23IEewk8UAvtVwz8AzOHV6rix7DKwhYOzAuGsZvFJ4prZclaK/oDt?= =?utf-8?q?oEUn56Pgdrr/5IEPhwk8JAfZSM/+ner6MZ/NuFDzpJBsHq/PtO2MOLqUolz4MDLhi?= =?utf-8?q?0uU2b7BWVusLC/gL1YU2neHj4vXq32gK4W/ZEPDecaxnxPB3U8T6N7UN4znjdItXl?= =?utf-8?q?lEZDOMhb4TZkiUE6K7ScWbwWbSyAiKSdbemmANT/Um0Z6ZINhag8V1tvyyEN3sxk+?= =?utf-8?q?cW/B5N2Al/QqaO6X3anU5ZzKI/mKDoKS7wsAiPh5V7L9ndI+G8Fx6ToS1XVN2loiK?= =?utf-8?q?xsT1Uu7buJCS3tqbHE831/M4bzXauH99WMob7nTWDQmUciimtyMWI3GVFB9XsKt+S?= =?utf-8?q?YQmQ4uaZJGxU?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ebe12f6-cf34-453a-1ce0-08dc4f36a343 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2024 14:52:06.7140 (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: Acdp5POrWKiYKnTYj0+1S6ym1vEL3qXB41vEnb3kcxhYgMsWqEcQpQwMqJbnkBDQ8wCXGjWn843i4ZTtU4TASA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8880 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 {