From patchwork Sat Oct 31 13:23:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 314678 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, UNWANTED_LANGUAGE_BODY, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62771C388F9 for ; Sat, 31 Oct 2020 13:24:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1B3EC2071A for ; Sat, 31 Oct 2020 13:24:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="sr93Mhil" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727624AbgJaNX7 (ORCPT ); Sat, 31 Oct 2020 09:23:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727480AbgJaNXr (ORCPT ); Sat, 31 Oct 2020 09:23:47 -0400 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80A34C0617A6; Sat, 31 Oct 2020 06:23:44 -0700 (PDT) Received: by mail-il1-x143.google.com with SMTP id x7so8966662ili.5; Sat, 31 Oct 2020 06:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0IJOJwzEn87dTTb0y0lmBJfi48dZdafg1ypapanCRnE=; b=sr93MhilqpPvb26NbSm0VcKxkql+6Y0P9PBRibpeY4mS0Br63UgaPWlHzgXkgmvTsx m6CAuPjJLrTHCHCCZyf8JiR3TSfmx3LngUjx1cligR/5fB7KZly2V5fOsSALv69UzK6W Zgf6iQjPJmd0cr00FrhA8Ltm/OP2RjZM3CACC6LGuVPfAnGvV7uBH0U/cwE0HUof1uqV xIIUgsfhJiJLE9Te0pFzxmoUgLpQDLABJYN3W/YaHUY+qHAkjzGipUDeD1BUDIaoxuLj b4iv8Tf4Vj8CRO4XB8xPK4KwluuNPMGXLDqGALt3+p6V7T71Z59CU2XEkU4Bz/a9w7Xf s1ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0IJOJwzEn87dTTb0y0lmBJfi48dZdafg1ypapanCRnE=; b=WXg07CF8OHUIuDtp5h+Y/HqSjBRN6WM2UX9hWl1Wox2kv+4cmWxJvd695HGRRXbH/y J8dQoIDM8VfWLPahQhrvkIcbmLgg720YDoEyIVIVfPsWdrAvyftA+cT1EXoa4Z7G5rXp eicTA44JHPyrlA3b4/x1Sp83+U0OgQrSTldwoiOezETcpWXjFnTwUEkD6xjxDrStZNQG lKda3VIpEp500eAR494fssQskj0YAeNnQwJYqA4VrFNLnQQbmpy24pG5gyHUDVeTxzOU KUq/2SA7Dy967sUrlb26dWxZoLjVwBrHUDCNfDQkmwC1psqc2ZZcecBtk4spmGXZMgOr HXrw== X-Gm-Message-State: AOAM531aWZZCg1H6edzGEoDncH5W+SV6Hk9vLIeOR0mWvSIEvsitSu3N pxQ2zwv/RfKO5WSNc5WGmH4= X-Google-Smtp-Source: ABdhPJyvQabai3UM/VfbWI7SNKSUADo8sbHIkoFifv+o8fUNV1S7QKXuHM+WnNGwdWwqwENs7VB05w== X-Received: by 2002:a92:7a0c:: with SMTP id v12mr4566364ilc.37.1604150623842; Sat, 31 Oct 2020 06:23:43 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:c107:3b4f:7176:6aff]) by smtp.gmail.com with ESMTPSA id y3sm6804655ilc.49.2020.10.31.06.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Oct 2020 06:23:43 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, marex@denx.de, Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 3/5] arm64: dts: imx8mn: Add SAI nodes Date: Sat, 31 Oct 2020 08:23:26 -0500 Message-Id: <20201031132328.712525-4-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201031132328.712525-1-aford173@gmail.com> References: <20201031132328.712525-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The i.MX8M Nano has several SAI nodes available to it. Enable them. Signed-off-by: Adam Ford --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index a2e1e92f2e84..dab246e5abea 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -260,6 +260,78 @@ spba-bus@30000000 { reg = <0x30000000 0x100000>; ranges; + sai2: sai@30020000 { + compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai"; + reg = <0x30020000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_SAI2_IPG>, + <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_CLK_SAI2_ROOT>, + <&clk IMX8MN_CLK_DUMMY>, <&clk IMX8MN_CLK_DUMMY>; + clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3"; + dmas = <&sdma2 2 2 0>, <&sdma2 3 2 0>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + sai3: sai@30030000 { + compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai"; + reg = <0x30030000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_SAI3_IPG>, + <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_CLK_SAI3_ROOT>, + <&clk IMX8MN_CLK_DUMMY>, <&clk IMX8MN_CLK_DUMMY>; + clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3"; + dmas = <&sdma2 4 2 0>, <&sdma2 5 2 0>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + sai5: sai@30050000 { + compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai"; + reg = <0x30050000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_SAI5_IPG>, + <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_CLK_SAI5_ROOT>, + <&clk IMX8MN_CLK_DUMMY>, <&clk IMX8MN_CLK_DUMMY>; + clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3"; + dmas = <&sdma2 8 2 0>, <&sdma2 9 2 0>; + dma-names = "rx", "tx"; + fsl,shared-interrupt; + fsl,dataline = <0 0xf 0xf>; + status = "disabled"; + }; + + sai6: sai@30060000 { + compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai"; + reg = <0x30060000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_SAI6_IPG>, + <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_CLK_SAI6_ROOT>, + <&clk IMX8MN_CLK_DUMMY>, <&clk IMX8MN_CLK_DUMMY>; + clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3"; + dmas = <&sdma2 10 2 0>, <&sdma2 11 2 0>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + sai7: sai@300b0000 { + compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai"; + reg = <0x300b0000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MN_CLK_SAI7_IPG>, + <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_CLK_SAI7_ROOT>, + <&clk IMX8MN_CLK_DUMMY>, <&clk IMX8MN_CLK_DUMMY>; + clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3"; + dmas = <&sdma2 12 2 0>, <&sdma2 13 2 0>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + easrc: easrc@300c0000 { compatible = "fsl,imx8mn-easrc"; reg = <0x300c0000 0x10000>; From patchwork Sat Oct 31 13:23:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 314679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAAC5C388F9 for ; Sat, 31 Oct 2020 13:23:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B7580206B5 for ; Sat, 31 Oct 2020 13:23:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oa9arIuU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727464AbgJaNXs (ORCPT ); Sat, 31 Oct 2020 09:23:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727485AbgJaNXr (ORCPT ); Sat, 31 Oct 2020 09:23:47 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 710A7C0617A7; Sat, 31 Oct 2020 06:23:46 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id y17so8986572ilg.4; Sat, 31 Oct 2020 06:23:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2BAE0GAYrZ+h/fvEAymXxBYp5Q9nZ7l93StEnx8WCVo=; b=oa9arIuUwp7z5k7ieLHUvYeT4v99c95V2hyjeo1/RpOYoqIxQlTEvSANWoykAgkycy Ddc0lAo0ibwRjNWTWYDKiR+rr3tHbY4OIHvOYRzg/wDyerhySGjn7XE0P17ibFTLh2ZV yAAV59mbWVfA2yEfXeIk8fOhiyxgfpKFLJAsiAO5M1WVYDZE2Dbve+L0uZWYSNobryp+ Tj1nsTxZaoLCTUkos5mXKuelEmV9HM3qe+eIFF5kHGCYBDPkWyJRo0RB+key0/NAd0J8 4oUc4VJqCBNDxzDOiAzX4KE+kV7fWGCOD7tkS4x/wXJTBDKAQwd7PQnJ+CHHjznGOTDP tNVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2BAE0GAYrZ+h/fvEAymXxBYp5Q9nZ7l93StEnx8WCVo=; b=NyirX2aOTxOcgAycaP/jfLHVs2BJxv1Auc6yn8qjLd8trRJrNHjqCkegnnMZ5N1pCu yG8S/HU57xWivOhWAglvmUmZUrAOnjrzxDIn9XTDu+rTadXgd1oUlgELTYiVikjA0x6y jxIR0LwlKOAEJCpsi5bJ3Veli2MP8ewgnvw4C35xB51+Wz57rQmoOqWjD0tTwwf3w5qY COmKfOH6HbGmPdVMV4b2NZGEonCNKoe6UJA7CBPYFHzzz8Kx5Pw3KGt3IpLdwHiqPgO0 25fcYKb1Pg85AnkW+hWmFYDnffo1ie9fr5K0ZRCDqZ4GxL0AYPk17u9XBLKUOfJVi17J 4z9Q== X-Gm-Message-State: AOAM533muFwwXztzMiZTjFdX8siuHh9aDi9zhoPDztB26khYUxwrspC2 tt7xrVoEi2MbgcUKgdwpy54= X-Google-Smtp-Source: ABdhPJzW5iSfePtEwccZqMInS+95LJQakqNc+SNXXiM8q26rA57qqEQvBDKPTyTETC7AOD4MqQ3BAg== X-Received: by 2002:a92:c6c3:: with SMTP id v3mr5250057ilm.28.1604150625742; Sat, 31 Oct 2020 06:23:45 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:c107:3b4f:7176:6aff]) by smtp.gmail.com with ESMTPSA id y3sm6804655ilc.49.2020.10.31.06.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Oct 2020 06:23:44 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: aford@beaconembedded.com, marex@denx.de, Adam Ford , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 4/5] arm64: dts: imx8mn: Add support for micfil Date: Sat, 31 Oct 2020 08:23:27 -0500 Message-Id: <20201031132328.712525-5-aford173@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201031132328.712525-1-aford173@gmail.com> References: <20201031132328.712525-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The i.MX8M Nano has supports the MICFIL digital interface. It's a 16-bit audio signal from a PDM microphone bitstream. The driver is already in the kernel, but the node is missing. Add the micfil node. Signed-off-by: Adam Ford --- V2: Rebase and use generic term audio-controller instead of micfil. --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index dab246e5abea..a83e87cac96d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -318,6 +318,25 @@ sai6: sai@30060000 { status = "disabled"; }; + micfil: audio-controller@30080000 { + compatible = "fsl,imx8mm-micfil"; + reg = <0x30080000 0x10000>; + interrupts = , + , + , + ; + clocks = <&clk IMX8MN_CLK_PDM_IPG>, + <&clk IMX8MN_CLK_PDM_ROOT>, + <&clk IMX8MN_AUDIO_PLL1_OUT>, + <&clk IMX8MN_AUDIO_PLL2_OUT>, + <&clk IMX8MN_CLK_EXT3>; + clock-names = "ipg_clk", "ipg_clk_app", + "pll8k", "pll11k", "clkext3"; + dmas = <&sdma2 24 25 0x80000000>; + dma-names = "rx"; + status = "disabled"; + }; + sai7: sai@300b0000 { compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai"; reg = <0x300b0000 0x10000>;