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: 715209 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 28155EE49A4 for ; Sun, 20 Aug 2023 17:58:40 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D5B3B1EF; Sun, 20 Aug 2023 19:57:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D5B3B1EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1692554317; bh=8Dnlvdwn8HLCEL4DDM2Oj1woISavzoCV6oVbVukMwJk=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=ISxr8RhCe9ToNw0NNryWuCt3omwl5KLjcX/hG7Ub+SxlTDvz1t0dSbKYfR5VwRRyQ aWqUsE51lpOa2aPCA8Lk1QpTaRYDG4rBgkt8WDrNil9jfBwiDaS2V9GmKD/Hg4M58H ckA1JupNSH9OtPyLpY4cIA/EQFmndf+qBkRdDClo= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 56B80F800D1; Sun, 20 Aug 2023 19:57:19 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id E86DAF80199; Sun, 20 Aug 2023 19:57:18 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3AB07F8025F; Sun, 20 Aug 2023 19:57:14 +0200 (CEST) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1BD90F800D1 for ; Sun, 20 Aug 2023 19:57:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1BD90F800D1 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=mhZ2LEg+ Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-7920f16433fso41793939f.1 for ; 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=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=A++MTeEmiUTMgCZwvWL2oDVnRdxDcQHg+qE9mVvYR8EDwD69cUBDvp0e5XCdfmLAzf +yzCaKP77U9OUXMDt+iP/aH1MP/msePvz2jpgoN1ATIzjd3TNfrN35qYleGfIGspu1U1 HCHKG0/rMzznCXZ+J/WOZTHf72p/sT9nWneLGP6u/5vge15TJIvkXzg7gU3XT6zkoIs3 kifiQi/lgKAYh5OJaC90uyyOB7UtY5NyaK6MFfTLagrBIJVfqzxMr2LnVfUM0NFrRWfY 4EmC91TR1TvysdLDSSZp0dVG6Mk+5Aty+P4gptMA9NwqE0RcnAUVwxGjpFb663jCtgcn y/Ow== X-Gm-Message-State: AOJu0Yx60xiFzV9E8Q6WL0sfDx9hEuWzaNktytKqfLNNE+Rx0d1fyprK jIO9nRpkp3P8ylla5+jK6sY= 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 Message-ID-Hash: 27QSXKEUZWUDU2OBEIM4WW3CRHLUAAUJ X-Message-ID-Hash: 27QSXKEUZWUDU2OBEIM4WW3CRHLUAAUJ X-MailFrom: aford173@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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: 715208 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 350FBEE49A4 for ; Sun, 20 Aug 2023 17:59:09 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 5E0CE850; Sun, 20 Aug 2023 19:58:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5E0CE850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1692554347; bh=Obejx1ffuhLnKN5qTDeu4ICGt73AWmm70PRrK8+/9sA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=iCoI/8PYqbvg3tyVHD5smdl9WcB0BVmV43dSXTuzh7OZ4Aw4znvbRWuD9uZengxTt zyaONvtVZmTqShvX+zIm1zTsT+YWsM/smxzKAPMeFpSt1NxF+UuXiTqC6eie7z8TIe fyJ8BhMjpF6gNf/0oMWrRu7/0xIYCVlbcQRWtR1E= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5B362F80564; Sun, 20 Aug 2023 19:57:22 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 1823BF80564; Sun, 20 Aug 2023 19:57:22 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 351BEF80199; Sun, 20 Aug 2023 19:57:18 +0200 (CEST) Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E0294F80027 for ; Sun, 20 Aug 2023 19:57:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E0294F80027 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=im5B+GZC Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-34bbc5b5381so4500555ab.0 for ; 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=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=QJWP7IvZpDgrGN8NLHvdVC/W/Vhx1JZ3ZB9QWWexGJPmTqr5xlbs+2YNw46fiNxNRa mMYxjey0IkGho9B8jHL+W4MsgI6qFdmnq+ikjMoLq0e7ZLxTtuRPCmDa3TL30pHyiebC H3SDnD7CHsLOv5dN8K7WaeZr7GpHGbU0Ad6+t8SQnWR/8W5shQOCfLuW7RbVBUCyrNzL kjvpF4Rwml6WtmkN1mNfZPJ1bGTTYdGOp6K0Rcw41DMn75kdO3UveRIHGitLzLifmddZ eUMuBpP7XMTGuhW9BeNT6e2jj/pWnoD7r8Y+CD2NNHsQZhPB1sQho2XGO3mbCEXTwYHb PX0A== X-Gm-Message-State: AOJu0YzsL0H5f5LUWaWvCbie9yA+jKLg80DBTaSBA5bAIC9JSoKVDUIG x8FNaDCX3NRYuAnBTihnHGo= 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 Message-ID-Hash: Z6QBPCUYENLF4UI323EKSXYCFVIEPTRU X-Message-ID-Hash: Z6QBPCUYENLF4UI323EKSXYCFVIEPTRU X-MailFrom: aford173@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 {