From patchwork Tue Aug 27 15:03:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13779649 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012035.outbound.protection.outlook.com [52.101.66.35]) (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 41D721C6F65 for ; Tue, 27 Aug 2024 15:03:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.35 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724771031; cv=fail; b=TnIZUOBlEfJdbG7np0ANDbjr3uuK65thKrQnRV0WDLisRj1+g60T6uZnDsijPDmsY6OdhoT4zQg3xbSa7GiExMYpAyWr5nLnj3ogJs96UgKk6+4uwvE3xjo1UoTbB9HwahMvs3CJDZT8JYGkkSj4I4p6MATIuZN0cNqsJj0AN8s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724771031; c=relaxed/simple; bh=dR5npUataXwlZi9jVr2vfcTfgo8b68rXXvIm1HbgjFM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=eo0mpqUneQWBOwPSkTjPYGi0j37+v663f+jjZezo1zMqgwl14USuNu6oWFmejP3nVHF8BckMTHlqf5iiMRcWqahdXw8lbRfVtuWG2RGJadmt/g6oapPZqwrtUVCy5XmeluL94kSg4WdW5b6f77zDWj/AfOuAq+wGohVkRsTJuWI= 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=PqLbVV0R; arc=fail smtp.client-ip=52.101.66.35 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 (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="PqLbVV0R" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OtOIcv1zJQoyc5GrBXyzBAEzFRahd/j5FA43otcRhbLw5tO0MWV2QCax77lI9bNR1TmEfQSmJj9d2YLMt8/SkjzA0ByWO20oXITl3/AKEswd4EyVxyj1dNnXvkMeUyUzj1XFTBkrCW3IWN8nJpzqdYq8bZGZNfUS+4R5F80AuGkvRYH9fO6bHj71EGqyhf+xGml398LfLKJYMOcmdbeja0v0NwLRn2Ina66ytCbRrSXlWNyCCXcjaeP9F+6IqMpyNiWFjLzxMDmBP90mCsEBVDaV3OSIHovTH0phLrev/YRAs6B00XVFKiAfcYHois26t987a1+2wtwuyz1DGt78Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=d2+VeRURX5Uo1LkpJVfrqFjRTofj8M2iHOLQhvrXpyg=; b=mIn+fB5m4EAn1jI/QDJ+eNoaAAAzsBPMpKqZIMDTxmT+lvTmmvWRgTICjWlQwgZy9iDH5iciJvn73BG55N7SsLqQioGtE59+NwJLSHS8yoJdOpDjOgYK35ykfLFh11KEqpPK3lvzZwJEJaqdtnJZCVwZ+otsioWS4Vkt8ZH7bEIRP87GDMaNYOCIth8/jwwFJs1nQcpFu6jzJ65SuWe1hlwde64pTzpsX3aH6Tzs9YPfQ1UX8VGXUTSk4/SYfLINlbM/ZcN3URyqZd2DWq8VlA29bCDNzgIj5vD9Drq9KFCKtQzRsfuhnBQ+MHM6IQd8EwtkASsltVbX49HmVhwjIQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d2+VeRURX5Uo1LkpJVfrqFjRTofj8M2iHOLQhvrXpyg=; b=PqLbVV0RsK/7h2qE8k8YQGxauhaVGLSnZMT2XYhr2X+TmVlO5MJnfUqO9GkFm9wfyMGca8Ar+CYtiR2FqdL/JK4xRmESlnpvgMfdQl8k/TYnAAGq2zFdNQet+gZEZjQS61qLC3Uqez+IGoyt/bVemC/FtzMLo96NynPE2bnH6PAi66/m0hCmFoG88R6bRfNUFJO03FV6muaU6QQAPuZwi+94NvCsHJYRnlOczbH58WqNPtXFp6qiv0KYC4hM5j21eywqxYon6HyjkQ3QUh6R5RAe3bPfV8/2sgef42xcXsWBSMCtRFO7zMRlrII0qMiiZR4sM0LFxKByssjzuRV4Vg== 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 AS8PR04MB8295.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Tue, 27 Aug 2024 15:03:41 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.7875.019; Tue, 27 Aug 2024 15:03:41 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH v2 3/3] arm64: dts: imx93-11x11-evk: Enable sound-wm8962 sound card Date: Tue, 27 Aug 2024 11:03:17 -0400 Message-Id: <20240827150318.1001050-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240827150318.1001050-1-Frank.Li@nxp.com> References: <20240827150318.1001050-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0141.namprd03.prod.outlook.com (2603:10b6:a03:33c::26) 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_|AS8PR04MB8295:EE_ X-MS-Office365-Filtering-Correlation-Id: 61e58a4b-3e60-4a19-aed4-08dcc6a97002 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|52116014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: 8jn/M5J5ixmWbdeg2Obj3kB1IZh3XpZp2wqKIcEAWIC6e3KP593LcYhdsU5WRHuMq5bxCOspFB9GDh+W5CQJFWcZjSiYZY6BreP5u3HJ8uzYqzGqTsMqPYEELUiEOrhKn6KRDubKtnKYv0AgKGOTAjIMoc97UgbH9KV/S59mdnsLlAnAJBQXNKdDBc9sqvh+L8CISp8DVKZvqFi/HvSAiTC5HWbP89NiiBbY00Agmx3gh7N+1NkkM2bqJBgU+nqMq0sN4sU29X/DngrnK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I57/VdUPtZmfnOB5EsQaJRSST+7LTC5OAMFK0q/hMRXkRuTI4RLT+E3ZumzjOyG3c/UEWJUBCrxFaOmIv7oHLs3mWn7mtPjUDDAmZ2os4= 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:(13230040)(7416014)(52116014)(376014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xz0JreTbMS3Iye9jtGwLLRHv4uRMALL4PMlKjmDqOdID62QBl2A9vmqY6P/xPBNVEEV/EqEkNq9pDp9jA4RAVzeMRIeK6CFIp+ZdlWbf7svOBTeED5DKF0vMa6IMTHN2Ayo9VGCtBYRE+iOaQEglOatqLdMPhC2yqR03fHFzAGpQrnMVW5Ac+vXVfiyZMauzjsCvfJNsJVR1/SORnDme0PbIaXsINcocrc6IRvLwH7nAEV1ThCPnbvFAtISzwVOqfUrNgqdBcln6uj8nfRBBH987BpQ2ddxZR5o+8xlnF0smPSC8V5KPfA/b+r50imkJgkXJyI/C7BqfsmlEt9JZUAcuQe8/2xTuKzJdwgN/EnA391PFUY0B/Gx5Qavl3VIVbDfVA7YkttwMeNA/nqgqyoXXCMsYlp5mpS7nRMTzgn1eh+ASEyCmuMVQf33EuNfTt/pd0w6pL6iFuXqfHPPb2ir2+41KoRHBVmVgT50cb9QlHD9eN7y6gnTtVpvWM3kgkBBGwbuKvJdLGngbXDdWoGy6CL/Dg8b3DgByuS94UTKLyxdWuWmn+cyk2O1jCrF4NBPh2t2hTmSlYbu0ymew9ZlXSB4O8AIXMZMA/EN92lxNXGC8SwNRHdW/LlYn6baBFbECtADFodVWhRTGjRIeaNIs4wy3LyNuYQvGtD1Na8hcp3Nvd8K4MHLTkmj7ZehtPAxExvVmqV3YPnz/Wi1+o/ikOG9NY3qOI/5MI8VuyvZPlNWQ30oW6I5zPaqCDaD0CRW1xqhI4ANqBGdH5IcFr1epG/haV2nRtt/MTa+63722VpkPTr8sAUP24T1eIRN8nY6kS+LriDFnUxSx9HesUdgDJwWyQPXVsy8nMPg2pAMZUZ1ZUJh/SIXstLbH9P5ZdWv7LLtjBBWcPPL76uQMWUZYzJ3NTMJ7TpSjJuBfV6JI0fQ1UmxzRfip4MBSadPWxdobr4dlgKW6SzHVSg5+EgEZGkkBng1wXhcRE9WFbL6trGW4H/QIS9qrTSHmjV202qwhssALk2YP+ll0U/M4BiTicdcZdmEh32+dgCQnrDn9xdcdYSK/yTfvdi/XqBb+kS7HcrVYB48FIoAdFnbA9U4yOU+cOl7wrlagnAvkRnWg4OevlLmIboirUbJ8ieX4lCLOckDH76Ullmc5EZ6CC7kZjYaX74lSwGUWle99ZjH9w0tWx5LzxIzpdjEjFyq+Nr0iOoHWqv/uGyVkZHBmArC/JXmLGnxy7qeeUet88+VUb/z8eNRv9rV+2qDcza5U+E2TMVASTCxykjU32/o3R7EbTaBv8VFy+dRPQOMJsy4lI/pyL23jMRXRLuYK69fGY3N00TRDxQKChhobe8p7gKL17LHlMOYhB8vsTOEigRiCYxolMDP3nCq+OQxM0pTwMNxLcJeAavokk4w+iURKL6tnVwIstGRoY7PiFyIt+Du5qZykYcCNpqNgpXWRsrFEM7hu8T3DUDig0DmuMhtXC49tWLAy+SVhqNPw67gBpUwj4XlwYH7+AfTDaTr1HrMjnunOREYCsd4d5rp2BB/VMY72IBxO8avhhv1R6X9e+sY= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 61e58a4b-3e60-4a19-aed4-08dcc6a97002 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 15:03:41.2736 (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: M6f0zlcLEVsq4myLU6/UU3B3bd3i5susi3E6W6KyMl0tAXdL4nUM69z7+U+L7b6atfhJFrWJ8bfgpoIvdjs52Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8295 From: Chancel Liu Add wm8962 sound card which connects to sai3. Signed-off-by: Chancel Liu Signed-off-by: Shengjiu Wang Signed-off-by: Frank Li --- Change from v1 to v2 - change sai3grpsleep to sai3sleepgrp to fix CHECK_DTB warnings --- .../boot/dts/freescale/imx93-11x11-evk.dts | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index f20d281531734..2fddde128350e 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -69,6 +69,15 @@ reg_vref_1v8: regulator-adc-vref { regulator-max-microvolt = <1800000>; }; + reg_audio_pwr: regulator-audio-pwr { + compatible = "regulator-fixed"; + regulator-name = "audio-pwr"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&adp5585gpio 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_can2_standby: regulator-can2-standby { compatible = "regulator-fixed"; regulator-name = "can2-stby"; @@ -127,6 +136,22 @@ cpu { }; }; + sound-wm8962 { + compatible = "fsl,imx-audio-wm8962"; + model = "wm8962-audio"; + audio-cpu = <&sai3>; + audio-codec = <&wm8962>; + hp-det-gpio = <&pcal6524 4 GPIO_ACTIVE_HIGH>; + audio-routing = + "Headphone Jack", "HPOUTL", + "Headphone Jack", "HPOUTR", + "Ext Spk", "SPKOUTL", + "Ext Spk", "SPKOUTR", + "AMIC", "MICBIAS", + "IN3R", "AMIC", + "IN1R", "AMIC"; + }; + sound-xcvr { compatible = "fsl,imx-audio-card"; model = "imx-audio-xcvr"; @@ -217,6 +242,28 @@ &lpi2c1 { pinctrl-0 = <&pinctrl_lpi2c1>; status = "okay"; + wm8962: codec@1a { + compatible = "wlf,wm8962"; + reg = <0x1a>; + clocks = <&clk IMX93_CLK_SAI3_GATE>; + DCVDD-supply = <®_audio_pwr>; + DBVDD-supply = <®_audio_pwr>; + AVDD-supply = <®_audio_pwr>; + CPVDD-supply = <®_audio_pwr>; + MICVDD-supply = <®_audio_pwr>; + PLLVDD-supply = <®_audio_pwr>; + SPKVDD1-supply = <®_audio_pwr>; + SPKVDD2-supply = <®_audio_pwr>; + gpio-cfg = < + 0x0000 /* 0:Default */ + 0x0000 /* 1:Default */ + 0x0000 /* 2:FN_DMICCLK */ + 0x0000 /* 3:Default */ + 0x0000 /* 4:FN_DMICCDAT */ + 0x0000 /* 5:Default */ + >; + }; + inertial-meter@6a { compatible = "st,lsm6dso"; reg = <0x6a>; @@ -458,6 +505,17 @@ &sai1 { status = "okay"; }; +&sai3 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_sai3>; + pinctrl-1 = <&pinctrl_sai3_sleep>; + assigned-clocks = <&clk IMX93_CLK_SAI3>; + assigned-clock-parents = <&clk IMX93_CLK_AUDIO_PLL>; + assigned-clock-rates = <12288000>; + fsl,sai-mclk-direction-output; + status = "okay"; +}; + &usbotg1 { dr_mode = "otg"; hnp-disable; @@ -758,6 +816,26 @@ MX93_PAD_SD2_RESET_B__GPIO3_IO07 0x31e >; }; + pinctrl_sai3: sai3grp { + fsl,pins = < + MX93_PAD_GPIO_IO26__SAI3_TX_SYNC 0x31e + MX93_PAD_GPIO_IO16__SAI3_TX_BCLK 0x31e + MX93_PAD_GPIO_IO17__SAI3_MCLK 0x31e + MX93_PAD_GPIO_IO19__SAI3_TX_DATA00 0x31e + MX93_PAD_GPIO_IO20__SAI3_RX_DATA00 0x31e + >; + }; + + pinctrl_sai3_sleep: sai3sleepgrp { + fsl,pins = < + MX93_PAD_GPIO_IO26__GPIO2_IO26 0x51e + MX93_PAD_GPIO_IO16__GPIO2_IO16 0x51e + MX93_PAD_GPIO_IO17__GPIO2_IO17 0x51e + MX93_PAD_GPIO_IO19__GPIO2_IO19 0x51e + MX93_PAD_GPIO_IO20__GPIO2_IO20 0x51e + >; + }; + pinctrl_spdif: spdifgrp { fsl,pins = < MX93_PAD_GPIO_IO22__SPDIF_IN 0x31e