From patchwork Tue Aug 27 14:24:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13779624 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 814DEC54734 for ; Tue, 27 Aug 2024 14:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=HiqpgpwN/DyTQ5enb5aMf0VU14IWuoEiQLnmzGymo1s=; b=FVwc13aiwIzHxCwJXJPl4leFxq 6vD8Ul+YSw4nf4SD4W5hI5TRhXenbtOkHN35rd/DQ7E/CAXVByGHaHI7si7nlLwkKd/ttC+0n9+xk GswWkQQcnGKAfKpJHw8TtAgWDSGgkIZGNsaIqkAGk0K7uVdoK27WwAz60ZAMQ5jymaC7q83lR1FkR tZTHSJFb5Gz5p8b1LR0dZ5syFakKdyUqK4hQfLeYbTIgSyViH2M5c21a4pUvlxAXECIBh9f303C9x kTMDeN6t4rukDz+RN4ulzZB8MmMkvcTMliF0UP3+fzowkhERyzJ3Dmk8Qk/allTVvy1YFspiJN8gk /J/jBTXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1six95-0000000BdoH-3LcX; Tue, 27 Aug 2024 14:26:07 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1six88-0000000BdeS-2AGR for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 14:25:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1724768709; x=1756304709; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HiqpgpwN/DyTQ5enb5aMf0VU14IWuoEiQLnmzGymo1s=; b=lOtBWMVSBXJMHxdC4lnPB/V5m8h/6s5sxVnpRqvSGzBzug45JIAi1Ctw TPv9LwJhZwoYCi/A12J+mjAybTMklMEt57y4pntgV4f5ue028l/P6T51f YcvQy5d4kk8dwFdMdA/rRoUDDGWTSuyeXpQBKJwY4j9+zVpe8Ndw5F4hp ofsVUUUKwJ7tMG4CgQ2LFbEKvDnQxmDZKTqVTwiXFhYnI5NAA8MLLRhtB nO3ff50x33UoIqaZaKuGIqUUyUysCu7UWwDtuMy6AePj5rHcu6QNfbFey exU629ynU0/kaQi3asVKYHgF5GtKo+02Se1i6+UCPxFhbW/qMQ5Mr0qV8 w==; X-CSE-ConnectionGUID: HFGwEk9IR++MipMeOMKYtQ== X-CSE-MsgGUID: FAjgxtP3QNCXixWxFaHeCg== X-IronPort-AV: E=Sophos;i="6.10,180,1719871200"; d="scan'208";a="38614643" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 27 Aug 2024 16:25:07 +0200 X-CheckPoint: {66CDE1C2-15-22BB8E18-F5F6D0B4} X-MAIL-CPID: 215C266285C7040C7030EA4E64D12783_5 X-Control-Analysis: str=0001.0A782F23.66CDE1C2.00CE,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9A466161453; Tue, 27 Aug 2024 16:25:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1724768702; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=HiqpgpwN/DyTQ5enb5aMf0VU14IWuoEiQLnmzGymo1s=; b=TnIgC49VxJ9z1JMGQOknT5fyoTYzJ/jSBJDOMkYEYyRWHKmB8IMWoUDDqKYRRulw2hYSzV DfmtuUUjNIeRO0KjPdBM6skzdeGFVXqNbjNUszG4G47AbdL2IEBI4dXebuPJzfKAeHEWLy i3KM6WwNvvcfhUVsp5XWtDdyyv/X5QF93JmYy5KkyTR92uSj38wvcUCnbdQodOOlQlh731 UnW3JFJ0F3CWkfF7D3CzSWPquWcb0gRAOnrUEZhB7kSsHnxkyJaT5oyUM/xcn0ttNiBMdj HkUNqPQak34LJGBZIOZ0V9UlrO0Z0R59H96ZqU6aRgkdOI1exwWMWJNBmeQkXA== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Alexander Stein , linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] ARM: dts: imx6qdl: Add reserved memory area for CMA memory Date: Tue, 27 Aug 2024 16:24:58 +0200 Message-Id: <20240827142458.265558-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240827_072509_077653_4A00BC47 X-CRM114-Status: UNSURE ( 8.47 ) 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 Default CMA size is too small for HDMI output and VPU usage. Increase the default size by providing a CMA memory area. Signed-off-by: Alexander Stein --- Smallest RAM variant has 512MiB. arch/arm/boot/dts/nxp/imx/imx6qdl-mba6.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-mba6.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-mba6.dtsi index d03f7065ddfd7..8ba3ec27bee07 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-mba6.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-mba6.dtsi @@ -106,6 +106,20 @@ reg_vcc3v3_audio: regulator-vcc3v3-audio { vin-supply = <®_mba6_3p3v>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0x14000000>; + alloc-ranges = <0x10000000 0x20000000>; + linux,cma-default; + }; + }; + sound { compatible = "fsl,imx-audio-tlv320aic32x4"; pinctrl-names = "default";