From patchwork Tue May 4 08:20:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Stach X-Patchwork-Id: 12237569 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 8B4C7C433ED for ; Tue, 4 May 2021 08:23:13 +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 451F06023C for ; Tue, 4 May 2021 08:23:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 451F06023C 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: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=9CW8N1krg1hkpr9etZOi6TlNiWlgmdjdn5yOkJamS5w=; b=Yxle2byFGHM7DqmnnfkyQMGqr xY+DtE9vB9AeVvfFMK3w2hLYC10l56v3OVZGnONwL4oNd87bccc0u/gY0g34xU7DRTltMXmEFLxih HL6+qDZ8E6hImxzIWew4ylNKkIGg1H+QQgyFWDUj+LgBJgmVvIroI4B1A9m7KK0R75heCC/8lo9oe hMpoI2JdgUBOqkv1I/u9AkWALXyO9nvk7oQtkd1FKl0oLgJ+ekDFvvTJt1fOsy63/5IoSYH0hWd6m 0ANqMAN6i7+KR3xRdwox0PBW7TSRz0CyS9G4Q9dpHIDBBVNUKZd+ePT23RJBprkDM945/dM11X23i xNDifvYwA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldqIr-00FicQ-Qs; Tue, 04 May 2021 08:21:14 +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-00FiZs-1X 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:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=ZdYJLe6VbR4gi8mvWQpAhDzH5fB73K2FHLbSErwyUtc=; b=m0bzBQJ4PRc+7D8HjNaYMphZ8x NuYbk+EXYy7GrXfOYuZJKkxEFwEYqeOexNw8CdFncwDvI7/kl9CNjFxMrNaGoOXOUoXRozxSA6i7X +R/AW1KTRqeu+yuxgmcsCc7wZEl6OgPesXIHrOMuRcbDXAKc/aKihq2tch4QfQXfYYyUwiOm9et5A czpiyfhqNtxR6RU8sqswCAkDmhskl+Dzukx6oqHS3hc3AVk0ZR9/wsXNzMFzyt0vnIdPBzv+74/vM voa8wLCkwlbSnn6dnbrr1UZFFK5qR6Re9Tu67au/KJPYq4oDZTR5z1709SG0h3YJr0qUM5sxtLbKO vO6ojWcQ==; 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-003o5r-Kb 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-Pa; 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 2/2] arm64: dts: imx8mn: specify dma-ranges Date: Tue, 4 May 2021 10:20:52 +0200 Message-Id: <20210504082052.2084706-2-l.stach@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210504082052.2084706-1-l.stach@pengutronix.de> References: <20210504082052.2084706-1-l.stach@pengutronix.de> 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_689051_43B81A59 X-CRM114-Status: GOOD ( 10.00 ) 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.MX8MN 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 --- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 16ea50089567..256e1dfb5db3 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -245,6 +245,7 @@ soc@0 { #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x0 0x0 0x3e000000>; + dma-ranges = <0x40000000 0x0 0x40000000 0xc0000000>; nvmem-cells = <&imx8mn_uid>; nvmem-cell-names = "soc_unique_id";