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: 13358858 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 D1F61EE49A6 for ; Sun, 20 Aug 2023 17:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=BS+Z1h3zhIRuCVkdrpD+HqGxRWPMX5UMv0TnujMFkUk=; b=peOECHMT/WF7bC airVZYH5Iv4AsfhUWZPxI3ZSNSRrgcefoJuFPSeUlN5jv/fVFJz+WGTjMWQ3fy9rNRBpdGVe6hGBY lNq7KmBmFtca4akyJEMneqCulT7Y/veUVggrV/ynCFU74USSddJ0m7u36UGzyRnXrI5xWPSGNCJ1Z eNPMxL0iPWQoygON0Mq9ngu+yEqOEELPMn49So/ECLdyd2NbDeeOtZ8OInbI33uuxy+XxWLjeKrvx DfzjXZeTtXwt1myQVzhdsVA+bBoDGryT76mS1azG4Qlpedj29Z6JkywcRCoWf5ArN1xuks/wV0VSm Yg8Q6OsyhDPDFWGIT6WQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qXmfu-00CGpP-28; Sun, 20 Aug 2023 17:57:18 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qXmfl-00CGmw-2y for linux-arm-kernel@lists.infradead.org; Sun, 20 Aug 2023 17:57:11 +0000 Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-34992fd567bso6126575ab.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=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=CvGiXvLF57xYKbXoDKggBoXPAn3xJa9dut7wtsQiq/E2hcreSk5gVEhAWjSZwb2M56 MIfi5GrLZlfqhhceyIgd3DwASOMbu15qrF0Up8Iajdi4O5c+KpSylDRMT0+5Wn6RP8y2 +a4LlvFrXuB91kt0CWsLVJTK42zcLK0LRdaE7AG4hTtWNeGvwnUwEvc3fJEk4/YbRhw1 4Esat3NIcFO16T+VkCw17mRQZmN14rsx2PNzONH7b6JnOFwHdSHqhNRnF7b1tZuIWkP/ whhcJ8bWScHKDYmfOY/+9MJ160RNQsQtAjCAHLuTj2GgO+3NkLPMT278eWLZHYAAoaJ2 4aaA== X-Gm-Message-State: AOJu0YwTmqFUmghM0tF0QBgtZhNLYF+Z4d4nivkSw7gJepiJTtSsnb+A jtO/D47F4E7kMWSdiunY2xcS5KEFEEI= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230820_105709_957618_13D79BEF X-CRM114-Status: GOOD ( 10.66 ) 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 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 {