From patchwork Thu Mar 28 14:51:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13608690 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 937AD12EBC7; Thu, 28 Mar 2024 14:52:07 +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=1711637530; cv=fail; b=S6oTfaO/mgoQBo4N/BuT0ZCe6Z18lodA8+Mpgq41TF7irKtw8bcKJ7dFo5VyJE1elunTzdbd4UIGhZUgR4ksxGd4c7MrPpuP7LOm7wKmUDYxLe2T4jhUYoqv79pX3iSPJ8Kl9/dVs/5KYHN2Keuqc3pcsxqKYjemJMl4PR6obUU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711637530; c=relaxed/simple; bh=5AQAE5dWJbXSqcy+ov29FdUsFdWZq+xuhOXEYciHU4c=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=UlL3H18kJ5ARGUAc2J0uTOPChEC/hAqn/ubk5rG7mEniOaQoVFCeZJSyVXF2UlfbrT4jlIvWctrj/BouHTxLtR7SzM/HoEzQBQr6mmkXC8jJDBnkqJWc192/OQqyncHFOUvIG8KdAFccGR4iVXP0vl/JWSn/jqSd/jbagroOuYE= 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=Feg8jvTX; 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="Feg8jvTX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SRxNnnFCPk8RDnaF9mysv1l/0B2JhvNkx00AAX5dNW8wwGMb9sIYTr7lJNc05IDSOKhiNYD7uTLFVEFEvVaWUa1rPdwGKw7adQ8FYdQird1+H+09S6CyBLvew8wut8RSE6BsDmLlvzvt8SCgTSn/8R32RM9h/5nPkl58jiyQOtdnY+yn++9aNtLzDukLOSrUuTFFDuuzoikYzTuVrHHkma91ocHki6K8kO3WKsG4byaEV88NB3Ki61vVW2BVhiPNlMiiM9FcHxpdPd5VZ7GXH/S6T1mZl/8B8jNZke/4CmkJMRDkfvTP4WEJ3KQKs7CXd8FB+q2Ht2l6DQ5pfOrFEg== 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=HvENGwJP2gMBFra8Km4XlKJNg5mfEvWuvadotCz1KUM=; b=kXTY0WxxT7GlEGn9CmxzsUJDxpZ/ncPfUkCFyan3DtNz0NOoVS9G1tebT8RqN7CyMaC3lSVCTr0zZxtJGR0K4Qw1bwlujBnf1LVvGDeRsD7o92U404c8FkEy5m+zweP9EIVEQnhpndjhLL9vdvTSxeuMNRXsXqAOaamHs6EfD0LDg5/Nkq5SS5DsEqMb/XkRW2twmEc6BApJNN/6ol2sXrYHTfa9yr/Yq1qKr8wDt2Vq9L9v1jbhGN4KJinCl2pHf4jiFrkzArko5oStUc8K5/LdgkDP0+9MN/iLVdugR/Hg7gnbvWgBkDAkcz51xAxGKJ1GGq8Q3MU+3AIxSItZ1A== 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=HvENGwJP2gMBFra8Km4XlKJNg5mfEvWuvadotCz1KUM=; b=Feg8jvTXdjLsGvE+WmLu+8kmQ74Z9KrMRTsWKqX1/wIqnI5sd/HrTGqHdLaY0sDh8jniYpre/ZqIHpoXshiAt1mMwW6s6bnqhIGEmhfmfMGCci9NvBmClAYCF5BRZyQD7Vik2TQXQo/xrmjEOmOoG4z5jbXVlUujNdHEuuJWPr0= 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:03 +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:02 +0000 From: Frank Li Subject: [PATCH v8 0/5] arm64: dts: imx8qxp add asrc and sai Date: Thu, 28 Mar 2024 10:51:32 -0400 Message-Id: <20240328-asrc_8qxp-v8-0-801cd6bb5be2@nxp.com> X-B4-Tracking: v=1; b=H4sIAPSDBWYC/23Oz07EIBAG8FfZcBYz/BvonnwPYwwF6nKwrWCam k3f3elehMTjMPP7+O6sppJTZdfLnZW05ZqXmQb3dGHh5uePxHOkmUmQGqS03NcS3t3XvnJpvEf rlNMwMbpfS5ry/sh6faP5luv3Un4e0Zs8X/9L2SQHbqQYQ7BpFAFe5n19DssnOzM21TrXOkUu6 mgGZaaovO+d/nMKTOs0uYBiHBxoNIPonWld19Oc/40KlaUVutg7bF3XE8klcBNG2iQYemcbJzp nyYEIyUjU3mLT8ziOX3Rsy8q4AQAA 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=4470; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=5AQAE5dWJbXSqcy+ov29FdUsFdWZq+xuhOXEYciHU4c=; b=ade1vPh3soiyDwgXquGscQSxzdV56lwGSIOwg/46hLR+ZAtyw86gT4hRqTMZJdg0ED/sxJ1CS oIUjQtESEpCAH1L+nlKXfH/FfUq3jK+a4QvkSN8Oocl0tKdVFcNoWf1 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: 21f6a07f-b3d2-43f6-9049-08dc4f36a0ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NCmk9qHtwEcbDYRzEV+C8MT83fsW9CSCGUcvDXbUVQ7MQdi99xn+f2CDxVHzFScleA4xVs6j7PKrb5Hv6FqK6Cmgb6qss9BhGMGIVtP4VD9OzJeOoX+eJH6TAwonTaHihXay11Yh3x+Ry56k2sLyk3kCbBAFvFLygTFNTYJuBuwyg8VqlAPtJtLE9jlzt5I5hL+L01az9jShgBgPv850Qci1YzzCUEy9ba2RlWcpWzNtZaLCEFNU9h2VtTTd4kExbQ5GFHgW70NxgJlu5uvf9D5vj3lUi45j9PccvprufoV0RQ+omi8mMobdTeHLcICYRJaK9gDf93Q8YpBbvnveVOYfJzRpvNKwfB6ZVwijyfjIsi/q425N1BwmzuHg6ETrORn25RQ754z62+a+u/ldm1Vg3pnDT3b/shqMN7OaAIxCFuOuTiK8CcRrYXl/zfJ+HdHrm6BHDNNHmf0cEorA14poos10EuqNe0cQgxqYfS8Wgum3kCVDG0+poE0BHXGCcE1WJLMcEJrxzfGIexrAf4tb3VyZhoiF+4kdQvmKluSpvI8mCoE2oo9bYk450AuJakjLB7LHmHBRiZIGPO0+aGyYI9XuboFUTlW2ldyBH87IAVNyu/4nkEtG8i6Mzd4eFnQG5ez9FnrCnZ4cdWMeOGyai9dDGTQsxWG3fmX8Y7TCUmPABSosh6peY4GX76Er 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?W/jZQRJFH3YFlsqF2XIyeVUkqgkV?= =?utf-8?q?itSpKvwyFFIgZd3cXfi/ZqgHuUbB3N2Mr/xh/FV7izJ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pJL+iBPd1+Wg1H1?= =?utf-8?q?SPAnvXKNrf62JcfHfz9R2Bxi4HaR8UfdgsnObJulpWsNAy40O0o+7cCWUJ8LsNf+N?= =?utf-8?q?vIZ0aOdXqnvRI6QtrhkO55aa/atlxnKIKOZzCla5mqH4OtGlqdS7s4RjKEgZHUtWn?= =?utf-8?q?4ztoBVr+iatOHsJzLwBPhCJDW4Z++Zvw2SrjDolKpdAK4kFsVradKbY/MCPO4+VnB?= =?utf-8?q?URGUla9Wf+ll+pXDlsitUBiHXP/xTOqiABwt9+iam6loXKbaHdeawx0jiluoma3r4?= =?utf-8?q?kdlSl5eOFM9z78X/hWWFONqxNfktcCgQc0iyCteEItPkuRPIDM0FY0yJHBTEpv3GK?= =?utf-8?q?24RRX4ipc4dfTe1xKMhzF7jxefQ1utR/z9mT2Vadsuajbd3sLGjMPOiB2vOUFP3eO?= =?utf-8?q?Jy2jRG2KSx1DOIMYkqi33RZpQ4XaTqIV0W2ma3cZXn2rx/Bo+6L5Wob4P0vSAuzRl?= =?utf-8?q?1yIfHnW9ZicXc9LSliYT1BS0WDMjtp/WlwnWjDt6MdQNv4oK+eqQzVq8G/lAQ/loG?= =?utf-8?q?MqTwnckCss/+BLpVMFp6sd3A2vn8GT8wgIsFZ0VWw5F80/UkWx0L/45KOp6675K4N?= =?utf-8?q?v7DtSvSuKT1d?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21f6a07f-b3d2-43f6-9049-08dc4f36a0ec 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:02.7582 (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: hl2htKe2JWNe6jiFU/NMGyvXFhpkVqEtqKLNw1HYfkdj3Ffkq3Zqd5Xso57ZQVOkNC0Ie983mkmdpXV8wGWn5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8880 Update binding doc to avoid warning. Change from v1 to v2 - Fixed dts DTB_CHECK warning Signed-off-by: Frank Li --- Changes in v8: binding: - Add rob's review tag dts: - Add fixed patch to fix sai0 lpcg index - Update other node lpcg index - Remove extra space after = - Link to v7: https://lore.kernel.org/r/20240318-asrc_8qxp-v7-0-01ce5264a761@nxp.com Changes in v7: - Using rob method for dma-names - Drop conor acked tag form dma-names and interrupt patches - Fixed warning for interrupts - Pass dt_bindng check make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=fsl,sai.yaml LINT Documentation/devicetree/bindings DTEX Documentation/devicetree/bindings/sound/fsl,sai.example.dts CHKDT Documentation/devicetree/bindings/processed-schema.json SCHEMA Documentation/devicetree/bindings/processed-schema.json DTC_CHK Documentation/devicetree/bindings/sound/fsl,sai.example.dtb make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=fsl,spdif.yaml LINT Documentation/devicetree/bindings DTEX Documentation/devicetree/bindings/sound/fsl,spdif.example.dts CHKDT Documentation/devicetree/bindings/processed-schema.json SCHEMA Documentation/devicetree/bindings/processed-schema.json DTC_CHK Documentation/devicetree/bindings/sound/fsl,spdif.example.dtb make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j8 dt_binding_check DT_SCHEMA_FILES=fsl,imx-asrc.yaml LINT Documentation/devicetree/bindings DTEX Documentation/devicetree/bindings/sound/fsl,imx-asrc.example.dts CHKDT Documentation/devicetree/bindings/processed-schema.json SCHEMA Documentation/devicetree/bindings/processed-schema.json DTC_CHK Documentation/devicetree/bindings/sound/fsl,imx-asrc.example.dtb - Pass DTB_CHECK, below warning exist because binding doc still be txt. from schema $id: http://devicetree.org/schemas/dma/fsl,edma.yaml# arch/arm64/boot/dts/freescale/imx8dxl-evk.dtb: /bus@59000000/amix@59840000: failed to match any schema with compatible: ['fsl,imx8qm-audmix'] - Link to v6: https://lore.kernel.org/r/20240308-asrc_8qxp-v6-0-e08f6d030e09@nxp.com Changes in v6: - Add interrupt description in binding doc according to rob suggestion - Link to v5: https://lore.kernel.org/r/20240307-asrc_8qxp-v5-0-db363740368d@nxp.com Changes in v5: - using rob's suggest logic after fix maxItems. - sort dts nodes. - remove spdif1. Add later when do 8qm upstream - Link to v4: https://lore.kernel.org/r/20240305-asrc_8qxp-v4-0-c61b98046591@nxp.com Changes in v4: Combine comments' from v2 and v3. I hope I address everythings. - Krzysztof's comments - add reson about why change - rob's comments using rob's suggest logic to restrict interrupt number but for dma-names, still need use oneOf to cover 3 case - [rx, tx] - [rx] - [tx] oneOf - items: - tx - rx - enums: [rx, tx] - Conor's comments - add power-domains required for imx8qxp and imx8qm - remove dmas descript, not allow use index to get dma-channel. Current no user using this method. - Link to v3: https://lore.kernel.org/r/20240228-asrc_8qxp-v3-0-d4d5935fd3aa@nxp.com Changes in v3: - Fixed dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/sound/fsl,spdif.example.dtb: spdif@2004000: interrupts: [[0, 52, 4]] is too short from schema $id: http://devicetree.org/schemas/sound/fsl,spdif.yaml# - Link to v2: https://lore.kernel.org/r/20240227-asrc_8qxp-v2-0-521bcc7eb1c0@nxp.com --- Frank Li (5): ASoC: dt-bindings: fsl,imx-asrc/spdif: Add power-domains property ASoC: dt-bindings: fsl,imx-asrc: update max interrupt numbers ASoC: dt-bindings: fsl-sai: allow only one dma-names arm64: dts: imx8: fix audio lpcg index arm64: dts: imx8qxp: add asrc[0,1], esai0, spdif0 and sai[4,5] .../devicetree/bindings/sound/fsl,imx-asrc.yaml | 14 + .../devicetree/bindings/sound/fsl,sai.yaml | 6 +- .../devicetree/bindings/sound/fsl,spdif.yaml | 35 ++- arch/arm64/boot/dts/freescale/imx8-ss-audio.dtsi | 285 ++++++++++++++++++++- 4 files changed, 327 insertions(+), 13 deletions(-) --- base-commit: 8552c902efe7ef670b6961fb8885b67961aeb629 change-id: 20240227-asrc_8qxp-25aa6783840f Best regards, --- Frank Li