From patchwork Tue Sep 3 18:54:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13789226 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 AF474CD37AB for ; Tue, 3 Sep 2024 18:58:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6zilZFhDUiv8EbmgNRB2VUCQQacaVHMaE4rzaK8lB/c=; b=2GLN9u8ySwR9ARs+YVZaN++IAv 4ZABGJNl46khxv/s2YNIETnSxbWRsB//MfKVblpn7HOGYZwzp6XrwSYgc40n13DA9rX0iMc7QsXCE c8zo4Hx74mDN3yzaDXcy7hrLJ34jgIPB4W2EDGAetJx+j6+iCtFDavwdBM7GL1ZlzF/Ixrf022Pdq E0Xhlhxj7jwBbP0a+8tqKakmj9IxGHSUV+NGhaaKPT1x6qsLbIPPkduJ54yKJEaWFREpZ7YFGZg0I 8GBbbwyJtCA9znCkjxVb42B66G7blSrjwukIIJGG5+ZDXPIMns4VJJFJUOj4AAAvQkjgN3T6gIp7n 003+KoTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slYj2-00000001X7G-2qP1; Tue, 03 Sep 2024 18:58:00 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slYgP-00000001Wcp-1Krx for linux-arm-kernel@lists.infradead.org; Tue, 03 Sep 2024 18:55:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WibAgVbgn5gpBQL1wdlXPWfyoMkg1jihvlMc19wlFNA8BGWtHHg4In0gAatLo8hMsPtEGZY3+6FOx/xxlSBxcPiDbFB0fTm+MgiDj5GPTjJdbFwhfSA1RPmNm7+rvcUGPxRubjyjZiZ6xV46BLsSTtIsoikjxN+m9MdK+JZ5rHDzHaHi7dtSZXjj3QIsS1w9V9uHYmfI2zzOB1z1JLji9bPyqKs9x9ytUCK+r/c18DtokS6o0VcCXYlR2LtcbQP+011SiS9TBhqD1gAsN4q3EULBaiVoWeAyXaEGpADzeZ8Yor+wFIzR2JZsC+KKjZgo8JaL3dVh2+DN5PtlGd531g== 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=6zilZFhDUiv8EbmgNRB2VUCQQacaVHMaE4rzaK8lB/c=; b=xbEw3kbYSB7qlKFr4ZBdzw4scvqz/cysTB1SQj6s+HMPuco6/82kBT1ON3X3aXeTfqEZWrTXKhyZQyGaTHBZ1+ouAycIKJdxlH000DPwjZpoYHcVzAvpWlAD0NuDalx2aooENqHsdIKLzF0Zu+kybbQdynsdFqQoGIt10ZC7+C67hRpwcjzaBaGx81QFusG3x//av527FH+MoSgKjhaIQqLSsJ1GwNUpIkNXDEvfj2f3plLN0PWCnH576Jz4ayq1Jkilx0ep8kthBvLtyoQ2p3pTxSP3fkXkB6ObxByxrsVIQUYHQ0ESEYcwDbz1WtmSWrahk7TZzGCbXAXAYjntDw== 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=6zilZFhDUiv8EbmgNRB2VUCQQacaVHMaE4rzaK8lB/c=; b=jU6CZF1Jez4267q8FSo4nVUnNcNAmDQmpoTLLzgUjiarn6A6VzbnVg6TykfYpy9ntlBPjx/ciQDnmxtLk5qWdagztxy3JnoE2GbQk4hE7yfOClvMchsTSxLUEidLFqggRjykx3YBy1G7t7ylUHICe0LrwhPYFESIOUUJM5AL9musqJUqo7uJKsefVjgpLCRdr5/Cu81gcQRZE25LNeUt9dp1onM16AVqGjdQV6m1bJ16fn0IUDU8l3+R//bIORYPpBYyukHijJYx4Ph0Nc83rrpIS4RbwZVsipqaQiGhb743cYffAeVrbw8r0ogDQKZnlHL+ZSMV3tHWfigelcFfdw== 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 AM8PR04MB7300.eurprd04.prod.outlook.com (2603:10a6:20b:1c7::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Tue, 3 Sep 2024 18:55:11 +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.7918.020; Tue, 3 Sep 2024 18:55:11 +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 v3 3/3] arm64: dts: imx93-11x11-evk: Enable sound-wm8962 sound card Date: Tue, 3 Sep 2024 14:54:49 -0400 Message-Id: <20240903185450.1486505-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240903185450.1486505-1-Frank.Li@nxp.com> References: <20240903185450.1486505-1-Frank.Li@nxp.com> X-ClientProxiedBy: SN7PR04CA0033.namprd04.prod.outlook.com (2603:10b6:806:120::8) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM8PR04MB7300:EE_ X-MS-Office365-Filtering-Correlation-Id: 4de4b61f-ac61-4a85-aa0e-08dccc49efe4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: o2cKTRgssrONesDmw65koxFRkp/znIEfY30uMw1qWa2WPAeQvf6nT2+DJrkgmio4Xl8k+PzZ+AB613KDfu2yofkLZai3P0XR0aFIS1ekl5flw0k5Wmg7YqcDd+nlF6nSayBY2RQ/Exv3laIrYPo+2ZPuUPSBXtk2SaVYIJ6ccWi5lUgCdyOxZTaP2rc/aui2KRU4nCBJixKMnDR34zKmwfaltfYJ4mgcXInLivie2Aceg2GS7pffpF/E/DuAgivrQUwVtvLuilaYHmWpYLm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5syIEOG5LETv3l7n1ATj6UML7WcjV5QNw9+YagRL/FHSTWb3ODm3giS8UePFKAZ/5N4hp/6o7dqSNHfH8Uu43a7Wu1qMYObrY= 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)(366016)(376014)(7416014)(52116014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DNi8hjRWQoPOAkTEEwswDkQ01t6Oz4BKyqBtO8vWaDdoABfulnlxwXGNfXR+ymWwWkXxEJFDMQTdiEGOynczfolDm/8CWiitaHP61hpZEig6J0GnJ3a/sNp1+fDLxbRBDY7FyshjUl4+82vVqnFaSL/H34ZmSja5CXbOaG9wTkN2gstMqDld/rU9dhzPSHMA0qRCFsXHX8WU1jZMg1LtvfkjDepZ9tS7G0gVm7z2nKwnA3WXDZcWb24Vx8sAOEDiHOIbCm71FrZOsAcPiZhWbUDQSsH+U+wtYNHlPPQ2eWNXyovFGS94qBoYJNXiSsp5pMBYoiAyjdHSUrwncKL6BxwMGGtoZw/9MPWLESr098XIKdDs2SM/De48HDuNS/Vr9DFCm3l2/PGRnZoCcBGT/9m7Z8lpDH/p24ouYj0BFWxUubg3Z5ur4GBFUGBdIP1CJIi/ri9Pw4LJLfVMJ+CJZcdyFivjGb0G0BEa+RFNnpJf3+AGpgdMm+2sQfuojZtB0zn7VUKfdTG6MbEtcV+M38I+dJOioFYkF2geBrJ/7Sn1XoZwkjz8csmJZ+SRgSo8sVHOQ6yYgwgWeUjVcxvUr4lBaFOqrQrPieTHAP3Gd7k5J3Ka3rAnBtCGIbzHn2oZrh4R2qBmFx23KihTvjx5PSi91AZnKwpJEAACFTZ1B6QvmIQY82uWd6LveufuamwZX7XYxpdczJFN6qEz67Jh2Do/MePNZXK1fnxPNojsD4325A4znLKn3wocfGWczAMigSfmoqP2Ak9fXZQ0/nsi/4AFeescg/EDx6iydnUrN5sGrqTeeYz+hOtxHqbF5tCj67xZMiLQj+EaaeNJPpOHxIFoMu7WjPk7RJajq+29v02/rO7VWz2J12dmGO3isD1DKceo0ScDoFq09W6+qL/7DJmioz2s2l4dACOFlP42yqcyvtZ1yEeeUa8vi3FEpTYMxpHX6qj2BVc3aiwPiCC3zEKyOWqvAHGyQnxFw0k85tC7Ywefk/DR3i1lQtlFZOEpfL2DjaZHcQzj71MnJSMxwVuDhLHoAtKi6GwUshSFJ7XNpWR6pAe4q3hsuR7NDxHiISUqwPCY+kcVtAPtphJXdCzMDGY5Qtwa8FkDByD/JuMNqxPk1uvRj9qsSmfBH3SYZYHSmShor8VDIuiOAwgrHjPhN5ksrkMj3wE9+ZLBReD6pGH/a6tOjwL6bmKHxzR+DV4Di3ckVxKU+7UqH3RTasgSnRXzKb96tKZgDoo9WJYuaUmyuwHQTPB7ODPXS+vEbw8eNLxSY8lJJ+j7SaZPGaAP5S4vMS1mC3xm3LFmXbqXDTCPD/vP9mZRQjEIGAOM1MooFmOLVGLpDCrgaR1wMACceO2tnyV3+xLBhBfgbEzy5gsjxQJ5xi+rvilo+WFqeDLy302Zk+41kqQcNw4t6SVkSeKTKykx8+wfzsvtcNA9ihtZy38t5yrdj75X1y/UiJeGM7a/7nNra/D8to96ufFQmNp8mFPz2wmsbElrH+XOyFo/Hfp1QmpnaRDd15vY2FX5fNEgO6p0N4zJ247Eq0SZaRAI6uXN0/u4jasviMPtGCM+3BEin94qsxBi0YM/ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4de4b61f-ac61-4a85-aa0e-08dccc49efe4 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2024 18:55:11.0550 (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: 1fYe5CryloRmiBom2KhAIpQ4foiw8M9db5lv8lPJwm0OzW/pAP2LdnwSuUKmWK8Df+mmV3BjZNhhIk9DnEmwjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7300 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240903_115517_484355_BCCF2638 X-CRM114-Status: GOOD ( 11.82 ) 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 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 v2 to v3 - update label to adp5585 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 76177b723ef3c..05ee64c9de9f5 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -78,6 +78,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 = <&adp5585 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_can2_standby: regulator-can2-standby { compatible = "regulator-fixed"; regulator-name = "can2-stby"; @@ -147,6 +156,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"; @@ -237,6 +262,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>; @@ -478,6 +525,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; @@ -778,6 +836,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