From patchwork Thu Mar 28 13:38:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angus Ainslie X-Patchwork-Id: 10874995 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2102E922 for ; Thu, 28 Mar 2019 13:39:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0663128435 for ; Thu, 28 Mar 2019 13:39:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECAC228475; Thu, 28 Mar 2019 13:39:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4523B28DBD for ; Thu, 28 Mar 2019 13:39:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Gw6VNqLRzsbd1lVadNEBW7U3kNZuBBtuVuWj1Nx5wOs=; b=k86algCfuVb0OZVIWtGwnjDX03 sioa6xULlOA1s2NIDQOxHU4f4/v5jeuQcDD6tzuHnpvUyrsjO5qv+B1Z8A2ceW5pTN6epkLrU1tqo cq7tlN5HcU7z1NiDx6/mqqCQjVEViO/UtYem+FFous1JLycC93KzyS8x9V0ygEho2YZgzyP9sHKKC Q1FUssVIBAnUI3cCngly33ycrSOao9qDS1deoUP1d7GzBRP4ndaYmQDW83boCE15/S1CI60p3eEua wAE3vmJsM1AyU15Wr0LgAe+MvJ0uG3oTPYUhRV39y1HViXVtAOijMLAPJTBPPkI7MUXY4lJltLzKa gzbtx0HQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VFL-0003mI-OM; Thu, 28 Mar 2019 13:39:07 +0000 Received: from node.akkea.ca ([192.155.83.177]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VFF-0003k1-JM for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2019 13:39:05 +0000 Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 0DFDD4E2050; Thu, 28 Mar 2019 13:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1553780341; bh=dyAuFncXh758Mar867oy2cEp4stxQh1qXf+dwLmK3PE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bMAL86NRuEH86j7dcypnjCNSRET8APu79KER6Yi1YECUW66dPbGythkngNN8Txhlt O+VxGAcY8GNbj+KkN/RahiV3Tpyo4Il7GhCW+irAv1x10V2MY7S+jbWUsYxVhIiiU6 lmqZCeuo5t53ygyOS81PsaAnTQHiF4kxfiacZAd4= X-Virus-Scanned: Debian amavisd-new at mail.akkea.ca Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LOH2fc5BM6lU; Thu, 28 Mar 2019 13:39:00 +0000 (UTC) Received: from midas.localdomain (S0106788a2041785e.gv.shawcable.net [70.66.86.75]) by node.akkea.ca (Postfix) with ESMTPSA id D15BA4E204D; Thu, 28 Mar 2019 13:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1553780340; bh=dyAuFncXh758Mar867oy2cEp4stxQh1qXf+dwLmK3PE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=m0LXEG8fKvbdT8iJK2UsA+MNclyj+c6iBsuoctFB7v71A1svviCA8oDc2NuWitakT MeJvGVhrZvT5X0zomn7fu06Kc/Ns/1XI2t2e26xcKJcrKlTO/MjBfopFpBNxVWZb+g iP0DZc5u9YlldKTI8PWXSuAtpjFCegcvh4OrEbVU= From: "Angus Ainslie (Purism)" To: angus@akkea.ca Subject: [PATCH 1/4] arm64: dts: imx8mq: Fix the fsl, imx8mq-sdma compatible string Date: Thu, 28 Mar 2019 06:38:25 -0700 Message-Id: <20190328133828.20999-2-angus@akkea.ca> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190328133828.20999-1-angus@akkea.ca> References: <20190328133828.20999-1-angus@akkea.ca> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_063901_680390_11606731 X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Carlo Caione , Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, Daniel Baluta , Vinod Koul , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , dmaengine@vger.kernel.org, Dan Williams , Fabio Estevam , =?utf-8?q?Guido_G=C3=BCnther?= , linux-arm-kernel@lists.infradead.org, Lucas Stach MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Fix a typo in the compatible string Signed-off-by: Angus Ainslie (Purism) --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 81d5ce1b1ec1..07099f82965e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -720,7 +720,7 @@ }; sdma1: sdma@30bd0000 { - compatible = "fsl, imx8mq-sdma","fsl,imx7d-sdma"; + compatible = "fsl,mx8mq-sdma","fsl,imx7d-sdma"; reg = <0x30bd0000 0x10000>; interrupts = ; clocks = <&clk IMX8MQ_CLK_SDMA1_ROOT>, From patchwork Thu Mar 28 13:38:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angus Ainslie X-Patchwork-Id: 10875011 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2AA76922 for ; Thu, 28 Mar 2019 13:40:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D3D728B5F for ; Thu, 28 Mar 2019 13:40:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1C9D28B78; Thu, 28 Mar 2019 13:40:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 86B2928B5F for ; Thu, 28 Mar 2019 13:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=I5w0vruyb5R7y5GDQmRwQKxfcGZdwUZNSljo4/NrEo4=; b=ptSGbd2g/kG7lGTfjphghVjG+k m7IAR/oyCtgCL3WJNTpxbJlJJ20hCr9eAsQOyFEL1lwRaT1gOo7srWbbBBM3tJs1ZzdzQrVHx8p0y 77IOuhGqKdNWrwvK6PDzR5ymOHofDOqa3CKDIOPK3Y9aElZWnn83JU7Ng0lWfvk6vE62eWXouiYQI f1G+dY5+hKWSehhZ8cSwhsRuXrl2BHlcCGaoJH7XjjFfqX6hxiamxtWwVGlvzWCTxJkFLm6uTbKTe 9Jhr5sCfSguFlEvBcnX51ZsDjqFdOy57XAL2FoAuCg/+FwcvzWR4iOAhh7Xt1pZjp2JMFi8f2SWED O6LJ/Alg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VG2-0004is-RO; Thu, 28 Mar 2019 13:39:50 +0000 Received: from node.akkea.ca ([192.155.83.177]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VFF-0003kT-Tc for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2019 13:39:09 +0000 Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id C5A3F4E2056; Thu, 28 Mar 2019 13:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1553780341; bh=fNaIjWRIVnNMd6AISqrruiGJSzIQ1OoNjKoWTTC2aP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=F8ni7Q2rx0UA3xwgVS5efat2OPTLBxc89ym7saobZTHXkasSNeS6utFCeMhvdtDLH sV6jQbJg+DB9TCjqbK9hlgHrhKTA23BE5QCpGy/qmf/wkOxnVAdzvqdBhE3oXdgbzV 9aIcJZewBOkc+MFt+5u+yxKf4Mi3E0joTxO6whfU= X-Virus-Scanned: Debian amavisd-new at mail.akkea.ca Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IbBzRuv9lKjr; Thu, 28 Mar 2019 13:39:01 +0000 (UTC) Received: from midas.localdomain (S0106788a2041785e.gv.shawcable.net [70.66.86.75]) by node.akkea.ca (Postfix) with ESMTPSA id A03CE4E204B; Thu, 28 Mar 2019 13:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1553780341; bh=fNaIjWRIVnNMd6AISqrruiGJSzIQ1OoNjKoWTTC2aP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=F8ni7Q2rx0UA3xwgVS5efat2OPTLBxc89ym7saobZTHXkasSNeS6utFCeMhvdtDLH sV6jQbJg+DB9TCjqbK9hlgHrhKTA23BE5QCpGy/qmf/wkOxnVAdzvqdBhE3oXdgbzV 9aIcJZewBOkc+MFt+5u+yxKf4Mi3E0joTxO6whfU= From: "Angus Ainslie (Purism)" To: angus@akkea.ca Subject: [PATCH 2/4] dmaengine: imx-sdma: Add clock ratio 1:1 check Date: Thu, 28 Mar 2019 06:38:26 -0700 Message-Id: <20190328133828.20999-3-angus@akkea.ca> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190328133828.20999-1-angus@akkea.ca> References: <20190328133828.20999-1-angus@akkea.ca> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_063901_957326_D8C5B82A X-CRM114-Status: GOOD ( 14.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Carlo Caione , Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, Daniel Baluta , Vinod Koul , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , dmaengine@vger.kernel.org, Dan Williams , Fabio Estevam , =?utf-8?q?Guido_G=C3=BCnther?= , linux-arm-kernel@lists.infradead.org, Lucas Stach MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On imx8mq B0 chip, AHB/SDMA clock ratio 2:1 can't be supported, since SDMA clock ratio has to be increased to 250Mhz, AHB can't reach to 500Mhz, so use 1:1 instead. To limit this change to the imx8mq for now this patch also adds an im8mq-sdma compatible string. Signed-off-by: Angus Ainslie (Purism) --- drivers/dma/imx-sdma.c | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 7fae4bf885d5..99d9f431ae2c 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -419,6 +419,7 @@ struct sdma_driver_data { int chnenbl0; int num_events; struct sdma_script_start_addrs *script_addrs; + bool check_ratio; }; struct sdma_engine { @@ -441,6 +442,8 @@ struct sdma_engine { unsigned int irq; dma_addr_t bd0_phys; struct sdma_buffer_descriptor *bd0; + /* clock ratio for AHB:SDMA core. 1:1 is 1, 2:1 is 0*/ + bool clk_ratio; }; static int sdma_config_write(struct dma_chan *chan, @@ -555,6 +558,13 @@ static struct sdma_driver_data sdma_imx7d = { .script_addrs = &sdma_script_imx7d, }; +static struct sdma_driver_data sdma_imx8mq = { + .chnenbl0 = SDMA_CHNENBL0_IMX35, + .num_events = 48, + .script_addrs = &sdma_script_imx7d, + .check_ratio = 1, +}; + static const struct platform_device_id sdma_devtypes[] = { { .name = "imx25-sdma", @@ -577,6 +587,9 @@ static const struct platform_device_id sdma_devtypes[] = { }, { .name = "imx7d-sdma", .driver_data = (unsigned long)&sdma_imx7d, + }, { + .name = "imx8mq-sdma", + .driver_data = (unsigned long)&sdma_imx8mq, }, { /* sentinel */ } @@ -591,6 +604,7 @@ static const struct of_device_id sdma_dt_ids[] = { { .compatible = "fsl,imx31-sdma", .data = &sdma_imx31, }, { .compatible = "fsl,imx25-sdma", .data = &sdma_imx25, }, { .compatible = "fsl,imx7d-sdma", .data = &sdma_imx7d, }, + { .compatible = "fsl,imx8mq-sdma", .data = &sdma_imx8mq, }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sdma_dt_ids); @@ -663,8 +677,11 @@ static int sdma_run_channel0(struct sdma_engine *sdma) dev_err(sdma->dev, "Timeout waiting for CH0 ready\n"); /* Set bits of CONFIG register with dynamic context switching */ - if (readl(sdma->regs + SDMA_H_CONFIG) == 0) - writel_relaxed(SDMA_H_CONFIG_CSM, sdma->regs + SDMA_H_CONFIG); + reg = readl(sdma->regs + SDMA_H_CONFIG); + if ((reg & SDMA_H_CONFIG_CSM) == 0) { + reg |= SDMA_H_CONFIG_CSM; + writel_relaxed(reg, sdma->regs + SDMA_H_CONFIG); + } return ret; } @@ -1847,6 +1864,10 @@ static int sdma_init(struct sdma_engine *sdma) if (ret) goto disable_clk_ipg; + if (sdma->drvdata->check_ratio && + (clk_get_rate(sdma->clk_ahb) == clk_get_rate(sdma->clk_ipg))) + sdma->clk_ratio = 1; + /* Be sure SDMA has not started yet */ writel_relaxed(0, sdma->regs + SDMA_H_C0PTR); @@ -1887,8 +1908,10 @@ static int sdma_init(struct sdma_engine *sdma) writel_relaxed(0x4050, sdma->regs + SDMA_CHN0ADDR); /* Set bits of CONFIG register but with static context switching */ - /* FIXME: Check whether to set ACR bit depending on clock ratios */ - writel_relaxed(0, sdma->regs + SDMA_H_CONFIG); + if (sdma->clk_ratio) + writel_relaxed(SDMA_H_CONFIG_ACR, sdma->regs + SDMA_H_CONFIG); + else + writel_relaxed(0, sdma->regs + SDMA_H_CONFIG); writel_relaxed(ccb_phys, sdma->regs + SDMA_H_C0PTR); From patchwork Thu Mar 28 13:38:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angus Ainslie X-Patchwork-Id: 10875007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 255771390 for ; Thu, 28 Mar 2019 13:39:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 098EF2848F for ; Thu, 28 Mar 2019 13:39:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC94C28435; Thu, 28 Mar 2019 13:39:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 578BF28435 for ; Thu, 28 Mar 2019 13:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=o3VcmLOhpb/+mU6CTnLhBzt+7y9N4g7WuKHeiOQpHow=; b=UvM03roTdnoQhH5UZJdc/QEzMo fXYTMWX3KVDGMbtxkw33mxlYvuSTRAE/0xtrStSePeRGCtTqZvacpMDDfWHl6qiWtqEbr3vf2zC/T rlE4EI3vAVfjflkn4EeoHb2raNL1hvM/f2W1nac54TXCcWB2ZgKFiIMB/96nMHTj95hXyKrjxknO+ GrgnD9/m6lc4fcISezgVjNxEHBWQno/2QREMDaITNIkoJ2B8Ra2e3VPqEe3PvzHEav0yeKQimZVKg Eel7osYPfMWuLrug6yObYOyCz5pVe4M7LJTBYOhcJM+baZ04vf21Fd1ZpJD1E/XSBi+UzDgNCJR4X YwbLtyJw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VFi-0004BZ-7x; Thu, 28 Mar 2019 13:39:30 +0000 Received: from node.akkea.ca ([192.155.83.177]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VFG-0003kn-JZ for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2019 13:39:09 +0000 Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 764A54E2058; Thu, 28 Mar 2019 13:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1553780342; bh=yFSGJbOa0Wo51XYLFbexPfJIE+WP2x0UvwGBtXXasLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Kgp4IY2RjK+EYve6iO0+8TQ1TgnaMtewRND2VfrAFwcoHaSTup0mCjKUQZIVYT4sH xI8qumIEzru0vdHFDyuPQaUyjmTBD0LViOIL8TQUagWOn/4BCRF1fTsx+zeyB4UXMW JDC13dMdB3F+uUPRfStJMbR6Pg+TF7Ues+7TwNbQ= X-Virus-Scanned: Debian amavisd-new at mail.akkea.ca Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jlDY3_WlXXBi; Thu, 28 Mar 2019 13:39:02 +0000 (UTC) Received: from midas.localdomain (S0106788a2041785e.gv.shawcable.net [70.66.86.75]) by node.akkea.ca (Postfix) with ESMTPSA id 72BD74E204D; Thu, 28 Mar 2019 13:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1553780342; bh=yFSGJbOa0Wo51XYLFbexPfJIE+WP2x0UvwGBtXXasLc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Kgp4IY2RjK+EYve6iO0+8TQ1TgnaMtewRND2VfrAFwcoHaSTup0mCjKUQZIVYT4sH xI8qumIEzru0vdHFDyuPQaUyjmTBD0LViOIL8TQUagWOn/4BCRF1fTsx+zeyB4UXMW JDC13dMdB3F+uUPRfStJMbR6Pg+TF7Ues+7TwNbQ= From: "Angus Ainslie (Purism)" To: angus@akkea.ca Subject: [PATCH 3/4] dt-bindings: Document the new imx8mq-sdma compatible string Date: Thu, 28 Mar 2019 06:38:27 -0700 Message-Id: <20190328133828.20999-4-angus@akkea.ca> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190328133828.20999-1-angus@akkea.ca> References: <20190328133828.20999-1-angus@akkea.ca> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_063902_641544_21C25113 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Carlo Caione , Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, Daniel Baluta , Vinod Koul , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , dmaengine@vger.kernel.org, Dan Williams , Fabio Estevam , =?utf-8?q?Guido_G=C3=BCnther?= , linux-arm-kernel@lists.infradead.org, Lucas Stach MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The imx8mq needs to be specified to check the clk ratio. Signed-off-by: Angus Ainslie (Purism) --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt index 3c9a57a8443b..9d8bbac27d8b 100644 --- a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt +++ b/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt @@ -9,6 +9,7 @@ Required properties: "fsl,imx53-sdma" "fsl,imx6q-sdma" "fsl,imx7d-sdma" + "fsl,imx8mq-sdma" The -to variants should be preferred since they allow to determine the correct ROM script addresses needed for the driver to work without additional firmware. From patchwork Thu Mar 28 13:38:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angus Ainslie X-Patchwork-Id: 10875009 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 88E7F1390 for ; Thu, 28 Mar 2019 13:39:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D35828B5F for ; Thu, 28 Mar 2019 13:39:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FE1328B78; Thu, 28 Mar 2019 13:39:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 16C1228B5F for ; Thu, 28 Mar 2019 13:39:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=VaEispvNm+buEl+S/3ba7dTPsgdBHTg8ZSm2o/rNwSo=; b=N7fTSoFjBNsgRZZGkRwa4dOQQ9 /AvL9yenGeFG2+YZfWxy75jB+X+zVWrsUxcF3GBLV3taftx2zb8RoldwJSUyuTi91k5tZLkguxFYu gLPio6mSKS8wmONsfexI7JmiKISAQV3oWRzx29uIcSWVWa5rRtIFC9dO8MwaY2CVnK1zLimDGJuuV 9A+hWHEl3JVSB9ujCVT6LBYVZv1dWrcmqmcmlGY7cTLIaXIUEQ46iQdfv+qlS6L8dX6cjjx+61N9K nV3hCLSadPytnrLnUU0xa9Dl5CMJnA2gssgNFDB9UgnodUzcCrEa66gYLyOykhE/xckFk/NSE1A8i XIM8098w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VFu-0004Rw-4h; Thu, 28 Mar 2019 13:39:42 +0000 Received: from node.akkea.ca ([192.155.83.177]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9VFH-0003lG-D3 for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2019 13:39:09 +0000 Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id 49FBD4E2051; Thu, 28 Mar 2019 13:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1553780343; bh=0ht/ubDI0nlqyRA7MbFe6QjOX1K1hnOqkJjhd15vAUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nGVqDTfXb3VHXG36JeIvAe9ZfqC7jC3/bTc4LbqVQUt9ZITfau6bhBZC77Kkv18gs QgR6S1qjgoDQE+O61ayjczRPonc9cD19HiUS6lCKDY+N8GkAdWEyKVyXdWWyPCQHKK 8j2hBS+1u5XnPaUmJ4c1PwqYTYkd6BOnuPOJN000= X-Virus-Scanned: Debian amavisd-new at mail.akkea.ca Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M94Z29IBhm_T; Thu, 28 Mar 2019 13:39:02 +0000 (UTC) Received: from midas.localdomain (S0106788a2041785e.gv.shawcable.net [70.66.86.75]) by node.akkea.ca (Postfix) with ESMTPSA id 431074E204B; Thu, 28 Mar 2019 13:39:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1553780342; bh=0ht/ubDI0nlqyRA7MbFe6QjOX1K1hnOqkJjhd15vAUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=T0Gs8Rl4bRLvXvxpkeMo8Z+aWxnSBTd47NyS1DBxpTrZke0wlwXaJ+M6nM5yWyIgr npk2fjqKxryldQ/6f5SEIFnjfQM8ggbpJvv8lvzIpKK2KtzJLn6gt8C4qCzrqjIcJ6 chjkSL5IVj1OyA4r+j5/U/vIG93ZohsTs/7M9dTk= From: "Angus Ainslie (Purism)" To: angus@akkea.ca Subject: [PATCH 4/4] arm64: dts: imx8mq: Change ahb clock for imx8mq Date: Thu, 28 Mar 2019 06:38:28 -0700 Message-Id: <20190328133828.20999-5-angus@akkea.ca> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190328133828.20999-1-angus@akkea.ca> References: <20190328133828.20999-1-angus@akkea.ca> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190328_063903_437772_4DEDC7EC X-CRM114-Status: GOOD ( 11.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Carlo Caione , Shawn Guo , Sascha Hauer , linux-kernel@vger.kernel.org, Daniel Baluta , Vinod Koul , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , dmaengine@vger.kernel.org, Dan Williams , Fabio Estevam , =?utf-8?q?Guido_G=C3=BCnther?= , linux-arm-kernel@lists.infradead.org, Lucas Stach MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Set ahb clock on sdma1 to get rid of "Timeout waiting for CH0" on the imx8mq. Signed-off-by: Angus Ainslie (Purism) --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 07099f82965e..cd0f9eed9e9c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -724,7 +724,7 @@ reg = <0x30bd0000 0x10000>; interrupts = ; clocks = <&clk IMX8MQ_CLK_SDMA1_ROOT>, - <&clk IMX8MQ_CLK_SDMA1_ROOT>; + <&clk IMX8MQ_CLK_AHB>; clock-names = "ipg", "ahb"; #dma-cells = <3>; fsl,sdma-ram-script-name = "imx/sdma/sdma-imx7d.bin";