From patchwork Tue May 4 08:20:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 12237563 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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,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 E80B5C433ED for ; Tue, 4 May 2021 08:22:43 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 75FA7613BA for ; Tue, 4 May 2021 08:22:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75FA7613BA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=mjqo5jf77uEtk2UnQxe/J3tAP6+BXewV7+kzkx9ZocY=; b=I1gainJNdhhL1dWcLu+R3dkuEK HXrjSPeWuGGGS83cuQlyUrQe5if4XHvgseUO14YhSYhewCZj9dsd3dX05/1ReqbF2FWmKA8qDl243 iSvjVKKGD4InLckS1muZB2a4MMitNeshjo74gky4hX5SpIkkFewY+ezwgdiS07J8G+esJVue8QwQW hkxWpkvG6GSmo3G//7TZk868ybPEe4MsiR3lzStc+t+fwa1qjk6BbOxAIFYElezKMU5fEi/CUxgC4 GS/OaULfvs9L3TI5J7PLKbRyU7znO9t8gse8MNMS+rLsNGkebRjFOhw6IrqHWJbexZCc0ZLoLR8aM wYhuZLPQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldqIh-00Fiae-RW; Tue, 04 May 2021 08:21:04 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqIf-00FiZr-11 for linux-arm-kernel@desiato.infradead.org; Tue, 04 May 2021 08:21:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=ENhb1VNK59CE4j2Zp8d5RyrkhVrZyIjzcbYjcHJ0nKg=; b=D7zt17y5yx3lrN0BVof+w69Fgc OtPT3XHZqZwGxYMckJ5qs+Mu+VSnJJPw4aOoLukd0c/zq/qHL6JJJuUXHPvlnpB5vOMpg1sHRUr/m T9iDCnn/tkC+vZgswgq1auBInkcDN1Rhb6zHMGBJD3PbkTIHlpqyS7rVjpVKWA1/68LrmAL615XTO BBX+QEYH8X5fPdJYgN/1KrmBxaV9358jj2nCVacea285DfDXLd0/+W9Z54b23W/zSJ/AHpA1jM/Hp OmGdJvGI8ErweKUwaJl2q6xBKV4BMHY5/XzjllrfvUOGKm1KJ81i4Dd8BOhZFd8UHAvIETX62Lj2J pjIL6dwQ==; Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldqIc-003o5q-LI for linux-arm-kernel@lists.infradead.org; Tue, 04 May 2021 08:20:59 +0000 Received: from dude03.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::39]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ldqIX-0001uR-BJ; Tue, 04 May 2021 10:20:53 +0200 From: Lucas Stach To: Shawn Guo Cc: NXP Linux Team , linux-arm-kernel@lists.infradead.org, Fabio Estevam , Frieder Schrempf , kernel@pengutronix.de, patchwork-lst@pengutronix.de Subject: [PATCH 1/2] arm64: dts: imx8mm: specify dma-ranges Date: Tue, 4 May 2021 10:20:51 +0200 Message-Id: <20210504082052.2084706-1-l.stach@pengutronix.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::39 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210504_012058_709908_78C54D4B 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.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 DMA addressing capabilities on i.MX8MM are limited by the interconnect, same as on i.MX8MQ. Add dma-ranges to the the peripheral bus to let the kernel know about this. Signed-off-by: Lucas Stach Reviewed-by: Frieder Schrempf Tested-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 6bf1d15ba16a..5bdc730f6132 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -261,6 +261,7 @@ soc@0 { #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; + dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>; nvmem-cells = <&imx8mm_uid>; nvmem-cell-names = "soc_unique_id";