From patchwork Sun Aug 20 17:56:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 715226 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EF00EE49A5 for ; Sun, 20 Aug 2023 18:01:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231538AbjHTSBf (ORCPT ); Sun, 20 Aug 2023 14:01:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjHTSBc (ORCPT ); Sun, 20 Aug 2023 14:01:32 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22FD5120; Sun, 20 Aug 2023 10:57:07 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-7920f16433fso41793839f.1; Sun, 20 Aug 2023 10:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692554226; x=1693159026; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UXY/Krf60fo7q+81YL5YMclpFtMXwbOMF3FlcrEqWFo=; b=mhZ2LEg+30bcqlPupOeWQyaJcyeOtTdxUUQByAJUQ0ZzU4l6oZzyLsY2N02UlVU/Le twL5BuPsuNJK32HF1G5daDI/Oynwul+3RXyhYJK3+XyXx6t24IaeWyFwS9PTdlEZyYi5 8zSeZF3Nw8SN1hVXKRTEkgc9Rf2c6RyZJ4V3Sys+XwE2OmegtUwEFdPElE00Q0gQjYk1 /RAz9/zLVdwOy0+vQugkySE13Rk7Yr8txyddPRS12525+ZsjYiu+uWdxtrvlyInFpkGV Gm/+RVQDcVtymWL0Grn0HXATp3g0EO5IdM90xMsw7SMwRM6IHwMo+khGCVGTsFKmmxhj FFTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692554226; x=1693159026; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UXY/Krf60fo7q+81YL5YMclpFtMXwbOMF3FlcrEqWFo=; b=J3ssvUCNl1Pc8KT1wPNSP/vNKFD/UqjWIKbtl7HApEKUXfA0U0u7TVQwMFoga0KJLq vimoPE58xOwMZdI4M7bviZdnwdX3xbdty8ynPBab1p6kjRewRnwpmsef2tJixZdxnn/+ ZyQQlH27LbLj0v/Kz1UYvb9+lCdQbl79e0xPJIKfpS8ydD+1AVRHuz74fJGyy8tGTt6m capD31oZDZso+yAXkw1NIEd+yF3eb9UYepS/5y+fVfLiIMAVphHo9d04PxkNvq5GMfPy wKDSl4NnL2G+pgSDwxFn3ZT2/KEuV8qwuFyioaYXx5D+taXQ1U+qQScN34MHonXI7xqG eP4A== X-Gm-Message-State: AOJu0YzovFuSyAfZrESKOOch/qxbo+40dxomUZbDC87sGl56YGQVtmht /w72QbtvhfLIUraxszBM0Tehqs0ICto= X-Google-Smtp-Source: AGHT+IFrfP5c5XIMgf3S3xbbTbPNs+f9WD+0g5o9TE7WqZLcxF+SnWESznNvSWXbIC4K02+UoMwEPg== X-Received: by 2002:a05:6e02:1be9:b0:34a:9320:b7c4 with SMTP id y9-20020a056e021be900b0034a9320b7c4mr5584188ilv.6.1692554226129; Sun, 20 Aug 2023 10:57:06 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:4e93:5643:7a4:7606]) by smtp.gmail.com with ESMTPSA id gn16-20020a0566382c1000b0042b3a328ee0sm692448jab.166.2023.08.20.10.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 10:57:05 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Shengjiu Wang , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ASoC: dt-bindings: fsl_easrc: Add support for imx8mp-easrc Date: Sun, 20 Aug 2023 12:56:53 -0500 Message-Id: <20230820175655.206723-1-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The i.MX8MP appears to have the same easrc support as the Nano, so add imx8mp as an option with a fallback to imx8mn. Signed-off-by: Adam Ford diff --git a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml index bdde68a1059c..2d53b3b10f2c 100644 --- a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml @@ -14,7 +14,11 @@ properties: pattern: "^easrc@.*" compatible: - const: fsl,imx8mn-easrc + oneOf: + - items: + - enum: + - fsl,imx8mp-easrc + - const: fsl,imx8mn-easrc reg: maxItems: 1 From patchwork Sun Aug 20 17:56:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 715571 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84164EE49A8 for ; Sun, 20 Aug 2023 18:01:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231563AbjHTSBf (ORCPT ); Sun, 20 Aug 2023 14:01:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbjHTSBc (ORCPT ); Sun, 20 Aug 2023 14:01:32 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56019121; Sun, 20 Aug 2023 10:57:08 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-34992fd567bso6126565ab.1; Sun, 20 Aug 2023 10:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692554227; x=1693159027; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=k9/VjGyT9xu6/XWCD38HhKREDTKPLKBqFGrqkI0zss8=; b=im5B+GZC1uxApYsNl1L/d6/bMjyk/GD49WVdS2Ksuk+CNTS65K4bucYPA9lYvysQY1 gX1l2DLllCxq9D1BTKKtQbqCdzTthgQybq2hQLUxhJFU6lsZMGTi4lymWBVU0HSq8hUA QJDiFBmxyFoN9fNP8mv/mNZmEIus7hfEYnhkPiRK5ObSYdfyaCVO6LetR47cmuQ+Tu8q qyxTPI/39FMJGlorfhrXK1QWIIm8XdmMspDAsrft3kcZu1dGz8RCMGvwCxN10MDIpLSK h5tpgTlQaD+CAL8i+56QMrL1+q9KIjdFXlBsvh4ytQgxflKR5I+jYT4Cml0rYV6/tbEo /2NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692554227; x=1693159027; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k9/VjGyT9xu6/XWCD38HhKREDTKPLKBqFGrqkI0zss8=; b=L3t/QMTnp4U6YgupgTY2ewtUR5cJdHPIAKceHdvaTkQVAiMuJ7gReyhW3aSGl94B9M Vfh359hxPrEYoshoPfZXl6a2LSfHevk0uNegOr6PAFA2ht3YbVllIfaJx9h4yzjj+4HJ pcLrx8+1XKqqY4GsJD0FK/VbCmyoKloa6dWIj/XMEvr3/mlkjaDoGrkFuj0b7R67EP1q pKR+0KSBTnxhj9GSND4Mjk4uTcwDmbPrsN1GNjxCJvfDihfUu2k25Rl9WHmF1pjWHqkb NMK3YAofkEiTUh8K7De5Adm+ZQnWfmCOv3gxrgxOaDvEoHMH+Asih2HFBuDkkzRCosj5 q2+w== X-Gm-Message-State: AOJu0YwcD3I1s2TY21aZT6dg1Q3Ln/oRs4L638HspXmCIAyj9WuQLgLi DBYUionXo8LvAhUNd0KpVYoSCbu9dv0= X-Google-Smtp-Source: AGHT+IGYnv01pqaU6lCB6Z8CIerZ0oYODmvzGcgMvqwE0F7fHU54qcMVI458fWYQekMpwe9GYvOrqQ== X-Received: by 2002:a05:6e02:1d96:b0:34a:95f9:650c with SMTP id h22-20020a056e021d9600b0034a95f9650cmr5574836ila.10.1692554227545; Sun, 20 Aug 2023 10:57:07 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:4e93:5643:7a4:7606]) by smtp.gmail.com with ESMTPSA id gn16-20020a0566382c1000b0042b3a328ee0sm692448jab.166.2023.08.20.10.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 10:57:07 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Shengjiu Wang , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: imx8mp: Add easrc node Date: Sun, 20 Aug 2023 12:56:54 -0500 Message-Id: <20230820175655.206723-2-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230820175655.206723-1-aford173@gmail.com> References: <20230820175655.206723-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The i.MX8MP has an asynchronous sample rate converter which seems to be the same as what is available on the i.MX8M Nano. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 83d907294fbc..3167706d81e1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1459,6 +1459,26 @@ sai7: sai@30c80000 { interrupts = ; status = "disabled"; }; + + easrc: easrc@30c90000 { + compatible = "fsl,imx8mp-easrc", "fsl,imx8mn-easrc"; + reg = <0x30c90000 0x10000>; + interrupts = ; + clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_ASRC_IPG>; + clock-names = "mem"; + dmas = <&sdma2 16 23 0> , <&sdma2 17 23 0>, + <&sdma2 18 23 0> , <&sdma2 19 23 0>, + <&sdma2 20 23 0> , <&sdma2 21 23 0>, + <&sdma2 22 23 0> , <&sdma2 23 23 0>; + dma-names = "ctx0_rx", "ctx0_tx", + "ctx1_rx", "ctx1_tx", + "ctx2_rx", "ctx2_tx", + "ctx3_rx", "ctx3_tx"; + firmware-name = "imx/easrc/easrc-imx8mn.bin"; + fsl,asrc-rate = <8000>; + fsl,asrc-format = <2>; + status = "disabled"; + }; }; sdma3: dma-controller@30e00000 { From patchwork Sun Aug 20 17:56:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 715225 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1D34EE49A6 for ; Sun, 20 Aug 2023 18:01:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbjHTSBg (ORCPT ); Sun, 20 Aug 2023 14:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231149AbjHTSBc (ORCPT ); Sun, 20 Aug 2023 14:01:32 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0A62123; Sun, 20 Aug 2023 10:57:09 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-79225651b06so33777139f.3; Sun, 20 Aug 2023 10:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692554229; x=1693159029; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tixiGJ6i1PZ9SXymw91nUfc5toP1B5evyHhJBDgTIcE=; b=KzURO5AJkuZp/OhmQyOo1d8V2X6FoW20Z2nCtaLzHqQ/RX/RTlAGMgkZD7GdeZgKR+ Ofo8EXRQHmBcqqEqBcGxbq0vc9/Wq+gP8746e/ve+o9RTCqdD2855yUU4QDlYDxH6Pfn B9opvvhUnEM/8XhpnpYZqTbFSCXaqRdvap/t0ht5PwRu0tWEBINVRmlMLhViBKZC7xYH 8dJb4MzFDJPWqjIoLsRb7MMwYKUaDNDYMqBLXhGwVJMjM2H7E4qzjjuXAsp3HL9NuRuU 17yBWhiLjJTwY7WEI3L0D12VQAI+OnW6M4c2Re3Odzsg8gUQFv/Ootq2Xs7t6uq/AZV9 5X5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692554229; x=1693159029; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tixiGJ6i1PZ9SXymw91nUfc5toP1B5evyHhJBDgTIcE=; b=PytFoU3bf46h7Vjt35c6uwwH7RWegVoReWNxRHwg9Mwz2eghTr3AzQCzAu0MLHYeIL kpID/GehtyYnEu6X22IYohil8hTOGMZ58Lpl1Kpoh1KNgfwTcYkoBUx3D6t1R8HOYyxd R2ZVIIAoPCeuQKoeEnuOtdTDloD6CAI4b0Fj2x51q87F7iFF/fbci2FM3XT3nC5NN9n/ 859e8YqhemDYFPAQdyQjSA624qkNqGSGclVjC7QYFBchz0BCTNMdeD3kR7Cr8LFNZRGI KSoqP+hxlicdwmnwNooYY00t9iPcGCZD7B0h8fKg0ndMCrWnVaR5UDHUSulmFgAG8JWj XKDA== X-Gm-Message-State: AOJu0YzMaYgwVfRvw3ysWqUb8hypB3lUQJNErFpWPG455bi+gYyFQ41e VJIViDQCbaivzLYsmeqfuA8= X-Google-Smtp-Source: AGHT+IGWLY4seK8Yz4fCltg3UPUf1L7ZFcoSQFhnD7/SFAe5DcEU6KPIaA2isCb1s4XdIKKKXj4hGg== X-Received: by 2002:a6b:dd16:0:b0:791:8d:91de with SMTP id f22-20020a6bdd16000000b00791008d91demr6510760ioc.13.1692554228984; Sun, 20 Aug 2023 10:57:08 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:4e93:5643:7a4:7606]) by smtp.gmail.com with ESMTPSA id gn16-20020a0566382c1000b0042b3a328ee0sm692448jab.166.2023.08.20.10.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 10:57:08 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, Adam Ford , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Shengjiu Wang , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: imx8mp: Add micfil node Date: Sun, 20 Aug 2023 12:56:55 -0500 Message-Id: <20230820175655.206723-3-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230820175655.206723-1-aford173@gmail.com> References: <20230820175655.206723-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The i.MX8MP has a micfil controller which is used for interfacing with a pulse density microphone. Add the node and mark it as disabled by default. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 3167706d81e1..a6f5b8526698 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1479,6 +1479,27 @@ easrc: easrc@30c90000 { fsl,asrc-format = <2>; status = "disabled"; }; + + micfil: audio-controller@30ca0000 { + compatible = "fsl,imx8mp-micfil"; + reg = <0x30ca0000 0x10000>; + #sound-dai-cells = <0>; + interrupts = , + , + , + ; + clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_PDM_IPG>, + <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_PDM_ROOT>, + <&clk IMX8MP_AUDIO_PLL1_OUT>, + <&clk IMX8MP_AUDIO_PLL2_OUT>, + <&clk IMX8MP_CLK_EXT3>; + clock-names = "ipg_clk", "ipg_clk_app", + "pll8k", "pll11k", "clkext3"; + dmas = <&sdma2 24 25 0x80000000>; + dma-names = "rx"; + status = "disabled"; + }; + }; sdma3: dma-controller@30e00000 {