From patchwork Thu Aug 31 04:44:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13370902 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 E7889C83F2B for ; Thu, 31 Aug 2023 04:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243398AbjHaEot (ORCPT ); Thu, 31 Aug 2023 00:44:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231208AbjHaEor (ORCPT ); Thu, 31 Aug 2023 00:44:47 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71125E0; Wed, 30 Aug 2023 21:44:42 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-792975085b2so18506939f.1; Wed, 30 Aug 2023 21:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693457082; x=1694061882; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SQ7Elv9ApZLe2GYTI96AHEN7WqsqdKFiYhTU12StZ5g=; b=pIXo8zVz8gAaltN9hGvaJXn+CES04SqUk5XPhMW0e3hR2kktUtLPGTjbkvyJgzOwXe JN6HTuqW9WYBKLOygmZ6gmGI4QkmIrCxR/FZdOLBmJZ6aymqfWcUoyvkERhKj8LbIGxr D41n9JR1gg6Nv7qYzyk4VclbiweU1suEBsdJN3MQd2b/OvZhtW6pojuuFNcRcx78ZO/s c9gVvC2tkuTbrmqkbAGzEzG32LcrvVULcABKTBxo6iTXRKmz3f2P5M8BMrRzhwAExXfV MrddzpKMoYyju30RKtkh/5vlHNEPP+wxdyqPdkI/UYUdrNOtHwZxCKvd5IgfWPNx2824 jNMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693457082; x=1694061882; 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=SQ7Elv9ApZLe2GYTI96AHEN7WqsqdKFiYhTU12StZ5g=; b=inytlywpf5um/Q6OjORoMVj9pxCo6uwsN/BmUdM+YtuWEvXI9YyJBSMqmxyb0DJme9 fuLzAFeFU6xHlq4XEkOHyb/XuUvW8PSa7HBjBy3SjBm6COCD9KGZRA25nV4tm+zq2+/9 +Tzn9WJbH6ePzG/zFpDEDOwremPa0X9ZuLbd9IpQhD2dSY4c08N3mOFJjW4VpQDtGBZ9 zYaCA+4fotSQrj1+HcBytcxD7in8S2decVSVVOopk9lVSNgw1Bybvn76j/sEPSQNLssb aLXH4n2KJAadXxxyzqPzS+saGDpMNQgajV6OiYkTFvtEyVm+UugBvG5mu0KMgFJaR82s qgsQ== X-Gm-Message-State: AOJu0YyjY+A9gxj/pxBD6AcHNlExTfl1HM8vpprAIk2uwCN0RapzE88A w8JFg+hIoaEZhtmOIpjk0XbY+/VSa6Y= X-Google-Smtp-Source: AGHT+IGFuF+jYKTWHbR70wmZ2rnuek30RxIcZaEgwY5pmdU+lyscr+Y78wG/1Z4A6L1TjwTYjbMcHQ== X-Received: by 2002:a5d:990f:0:b0:792:792e:6616 with SMTP id x15-20020a5d990f000000b00792792e6616mr4791076iol.2.1693457081560; Wed, 30 Aug 2023 21:44:41 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:d40b:6175:6beb:6448]) by smtp.gmail.com with ESMTPSA id x6-20020a5e8306000000b0077a1d1029fcsm215006iom.28.2023.08.30.21.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 21:44:41 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: marex@denx.de, aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH V3 1/3] arm64: dts: imx8mp: Add easrc node Date: Wed, 30 Aug 2023 23:44:29 -0500 Message-Id: <20230831044431.250338-1-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@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 --- V3: No Change. The dt-binding update was already accepted into the sound tree, so that patch was dropped from the series V2: No Change. 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 Thu Aug 31 04:44:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13370903 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 1B653C83F31 for ; Thu, 31 Aug 2023 04:44:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245665AbjHaEov (ORCPT ); Thu, 31 Aug 2023 00:44:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242186AbjHaEot (ORCPT ); Thu, 31 Aug 2023 00:44:49 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C916D2; Wed, 30 Aug 2023 21:44:44 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-794c7d95ba5so17652339f.0; Wed, 30 Aug 2023 21:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693457083; x=1694061883; darn=vger.kernel.org; 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=CYCeRF7plttkP+pwt4k2tA+LB4kQ1QS+KcxQIuWcqqo=; b=qsEkvxeOP0ochyr42q7D4r6+AQxuGa8FfRE2Ql/8AfwqgKG+XFobS4dTSTlvygNsnS SxprEGIuGLzdGIcvHjVp11S+f+kCMvWInAunUo9xxYVgCSV9CTgleoTh5PsXO8YAtbvR WN+pdPUgtXyCLxcvXlroEnGR6XwSrLymG1pHH6QjXsU9KbUShMlWnuQEWLliLsjkzd4J 2QgY5SXYQ80JQPOqh8LC/C1hE0G/QNEtEKidpETG9tcUTd2a2w+zFVW1uoBJLTe4cJUN P6//8B8mHtlOHuENJrq3DFB6IXkRn8eP+XGbzGwS1RYlZj8Km5HCMUPiYpBm0vS/ckBi bpRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693457083; x=1694061883; 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=CYCeRF7plttkP+pwt4k2tA+LB4kQ1QS+KcxQIuWcqqo=; b=XD9wapYbOAXhMY5Mv4JeRgdfAOCPtQUDZPvAxHvsdCyymj0k2/7k1MxHyQWjsdFIt9 YJGRzph9Te2ewJRrUqUc/K0Ty0F2xT//5i2ftLKZz3fWYqSTr7+UrnCvAu+2yDJfpLCd 3UaJ64v4UyBNMHLwJEuYhJvoTF4Lg3Mq4SY6Ll+KksOzQESbolSV1++aKGZVMK/2uy7E EZjYwSy4YPhLsUaWH0lY+N3z6lSeY3q0dqbMyK1L5XVv+nxHiivOFjusRTSgKLrwJmlm u6hBgzhc2cKHggrYAIAv+H8jQJi4IgDy4nyNa44C5qKiYF8SsHb6d6TJ5Y+/QxOhqrxU ErhA== X-Gm-Message-State: AOJu0Yz+9Gzb3OpX5vKUFMAz1yZEilmKTqeCS0hkzGZE/K9lWOMGaZyP BboKnNeWnTD+fncoYzsUh4Qq0FFVzZ0= X-Google-Smtp-Source: AGHT+IFw2RAJRYGzSsO0cOfcseEMLaXDAiU7oqL/80x8eXZoUADCXqOjd91aSKM2uC47T1zqd5YU2Q== X-Received: by 2002:a6b:e801:0:b0:791:1b1c:b758 with SMTP id f1-20020a6be801000000b007911b1cb758mr5110522ioh.19.1693457083494; Wed, 30 Aug 2023 21:44:43 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:d40b:6175:6beb:6448]) by smtp.gmail.com with ESMTPSA id x6-20020a5e8306000000b0077a1d1029fcsm215006iom.28.2023.08.30.21.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 21:44:43 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: marex@denx.de, aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH V3 2/3] arm64: dts: imx8mp: Add micfil node Date: Wed, 30 Aug 2023 23:44:30 -0500 Message-Id: <20230831044431.250338-2-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230831044431.250338-1-aford173@gmail.com> References: <20230831044431.250338-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@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 --- V3: The AUDIOMIX_PDM_ROOT doesn't exist and the real clock is called IMX8MP_CLK_AUDIOMIX_PDM_SEL, so swap it out. V2: No change diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 3167706d81e1..341fd0369ce9 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_SEL>, + <&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 { From patchwork Thu Aug 31 04:44:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13370904 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 A76C2C83F2F for ; Thu, 31 Aug 2023 04:44:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245627AbjHaEou (ORCPT ); Thu, 31 Aug 2023 00:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241156AbjHaEot (ORCPT ); Thu, 31 Aug 2023 00:44:49 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CF8BC2; Wed, 30 Aug 2023 21:44:46 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-79266c8617eso17419639f.3; Wed, 30 Aug 2023 21:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693457085; x=1694061885; darn=vger.kernel.org; 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=XO/87gbQyeD3r5BfAmLIA18C/d6yldzKh/4viMrN7iE=; b=mHySLFr0ss8pY95+HrhoiGN+7dwxLzjLdA3agIdpDretyKrP+Q4SNU50fj6Me8DZbd vZavFFDOkd9Tm1EUKW0w9FvPKTL9dYWTNsJ8CPEvnJjkCJG3lQ3mb4uixFofvqQXL85s avlcWr4ExMObMxyFmndcHJEb+840weeIuKB/1TnYvftBQ8oYlw25Z9NiQafEVGXF4anm 3ujcW+btmAkiAj6iEK4Q9c9iu7auDuZxd9iT4e+Zl6NCABHWKCOBtgLSSSi3XHjLDCrU aiUw6vSqQ2NGeN8SeOiY2RmD31n2ExDIz61vNKKm/xLiwkfl1BSHtX9Cv1MRZiAOzUX6 1S2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693457085; x=1694061885; 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=XO/87gbQyeD3r5BfAmLIA18C/d6yldzKh/4viMrN7iE=; b=KVwVt30g8NnzkvinN3oCwJMMYdwoQrS85+nq8fzMDN+RPOQ+zf2j/XEdHJ9Cgpt2cV hhNDDx+O+UmONn2bYO5wzCRgy76FShJOvmWD4t6jvThDR75smQhpxS1TobBPpttLECXs VIDkmJmsl8cy35MHJdNazRQXlH3cFACMZkvxW6SpOumn63aO0BPqJvUSnp8bPnb8PXqo JqScl2tBaYC4ThsTOYIbkIAYOFY1ounuKs4gFo6j8hW0X7i66E6VHQp5wUPr4xMcllCe C4jTwYsNJN1Lc+AQag9EqKpJj1rNwzIbxFew/WXWLVzKCwQBY2xiDGTl6N2T+08k0x/f kLJA== X-Gm-Message-State: AOJu0YzXmtijjIIpIZ1w8X9YEhGlYLe+Acc7SY6Taq0MJ2SkSBwdT6ll NWEtewqbvCWGuteBvh0m8yI= X-Google-Smtp-Source: AGHT+IGkarME/wE2/xF7fz2L+6by6g+X2BL81KcUMeKD+bK+C2N1nmf8y0ZjmtNA8CAWWuKnLZytYw== X-Received: by 2002:a6b:d90c:0:b0:791:60c:4b60 with SMTP id r12-20020a6bd90c000000b00791060c4b60mr4527425ioc.15.1693457085608; Wed, 30 Aug 2023 21:44:45 -0700 (PDT) Received: from aford-B741.lan ([2601:447:d001:897f:d40b:6175:6beb:6448]) by smtp.gmail.com with ESMTPSA id x6-20020a5e8306000000b0077a1d1029fcsm215006iom.28.2023.08.30.21.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 21:44:44 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: marex@denx.de, aford@beaconembedded.com, Adam Ford , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH V3 3/3] clk: imx8mp: Remove non-existent IMX8MP_CLK_AUDIOMIX_PDM_ROOT Date: Wed, 30 Aug 2023 23:44:31 -0500 Message-Id: <20230831044431.250338-3-aford173@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230831044431.250338-1-aford173@gmail.com> References: <20230831044431.250338-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org The TRM shows there is only one AUDIOMIX PDM Root Clock Select register, and it's called IMX8MP_CLK_AUDIOMIX_PDM_SEL. That selector doesn't appear to have any more children and the MICFIL driver can reference IMX8MP_CLK_AUDIOMIX_PDM_SEL directly without the need for any other. Remove this errant clock, since it doesn't really exist. Signed-off-by: Adam Ford Acked-by: Rob Herring --- V3: New to series diff --git a/include/dt-bindings/clock/imx8mp-clock.h b/include/dt-bindings/clock/imx8mp-clock.h index 11cb0a4fe999..7da4243984b2 100644 --- a/include/dt-bindings/clock/imx8mp-clock.h +++ b/include/dt-bindings/clock/imx8mp-clock.h @@ -376,7 +376,6 @@ #define IMX8MP_CLK_AUDIOMIX_MU2_ROOT 36 #define IMX8MP_CLK_AUDIOMIX_MU3_ROOT 37 #define IMX8MP_CLK_AUDIOMIX_EARC_PHY 38 -#define IMX8MP_CLK_AUDIOMIX_PDM_ROOT 39 #define IMX8MP_CLK_AUDIOMIX_SAI1_MCLK1_SEL 40 #define IMX8MP_CLK_AUDIOMIX_SAI1_MCLK2_SEL 41 #define IMX8MP_CLK_AUDIOMIX_SAI2_MCLK1_SEL 42