From patchwork Fri Oct 11 15:04:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Mihalcea X-Patchwork-Id: 13832649 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 83C9DD0D7BA for ; Fri, 11 Oct 2024 15:15:36 +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:References:In-Reply-To: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:List-Owner; bh=QoqSFxBQ8OghEwfmeYsld4v/qGzAAXjDzimzS+scfuY=; b=LrHkvHxKgGET/a66UaNfePAMKk m8kfko0AZLq2a2B4MLC/PJnUYyawCmYK1IRvnT/XKm0pX54hcBP3no6RMcOTR6z95y/QGAUmiq/ZZ FS53XMSugzX8CIvLEVzZOJWTAoF+f45BijK6rZol2FgcAei7rtLfbkZ4UzMaCni0fDXNcS+Vma7Y9 slsWmYu+n7ZD/EyEPrka66RM/k65MRyPbILTnRoALBHsNvIQ6pjOV8/ORAzEEpozvG4A3DiDMsNuu L+m8TYn/xSn0DH4nrkZ3PnWS0ccM9AtABhAUgymgxqzM3hmLQnJVkNzudKWoQcPaR1sBhRSKAXRlJ yc3RBtCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szHMV-0000000GkRj-1Wdr; Fri, 11 Oct 2024 15:15:27 +0000 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szHDQ-0000000Gj5m-3FjT for linux-arm-kernel@lists.infradead.org; Fri, 11 Oct 2024 15:06:06 +0000 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a9952ea05c5so332818166b.2 for ; Fri, 11 Oct 2024 08:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728659163; x=1729263963; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QoqSFxBQ8OghEwfmeYsld4v/qGzAAXjDzimzS+scfuY=; b=hYCu3z58fvaaDBVcWrmNG+k1OE3Wz7HP/xSxLFpdNxlZE+Sm2p2fhfXUdw/oGGVEvc jCrEDypEAaLriykPjcj3PgxQhbCLBt5UYM4EtuedFITixFi9oDo263i9YXScufnZ+dLR cY7MQAQFQf9VGwj5esN+YhRnkygBgSwINabtXMiFXrdA+X3vksNtf//m3T3l7XmVV3Cd CzbM0FL43/8/7KiN9ck0Z0WWnIDKEm4ucktbXVE6YUGye9mWVlYkhflUXoeAmsWULygI zxZR82ftS/XjumMgH9UXwA7sHh7bbWMkg2ESajva7H04lQjbrjTbHbH4oT89jwWgSL/o QljQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728659163; x=1729263963; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QoqSFxBQ8OghEwfmeYsld4v/qGzAAXjDzimzS+scfuY=; b=g2AZrCcr27XvEr7PbihBpIhahGTypwOCjEvBCY26Wk0RFlOD70TzQIkCDSeAMeVqcz eNIJV1am34EW0qkeKJzerf9UFIfdCywpDveHqVqHT8YLY09zUrg1ngzUDdEQn2+0Sz6K F7rJx8wj4BaOiFz9MZ1QBwDfAb+VZ8jWkh9G2sokub5bgC5DCa4COPKrsXPW+Vqsbjui +Vka0to5Sql11XTVcaWkMcE7eMc2+49bYYkvzc2oQP20k8x/zEOfwdX1rZF8qfvDk5/Y HeQXuTe2wI4vJSbG0KWV0uqOKDjAcprzSf2YHPd4dHPF7sQwbaXBUlheQOmA6RAGFVMi So4Q== X-Forwarded-Encrypted: i=1; AJvYcCWCY8jBmAJO8iM88iDvOx9gWoo3wuycy9hqWVl5cg+pub66CVaSikVOjfZYR4VyOx429u8IvfIR7UVXgM3OnQs7@lists.infradead.org X-Gm-Message-State: AOJu0Yxl0tADSjp7qKiJ+pRBGUP+YD0s+QzEOmv0EyUOlCeWwFexdm2O 8KZG+hZePkEYrnDObNlPOKe74SXtubbmWkbu8UH8pBBCsrJxkdd3 X-Google-Smtp-Source: AGHT+IEBK2JXyYwVGn8UlFDP/Iu5LT0dm/NXZvW4eFkGnwV5w9jD8Oxv31hD5Iaue0TJQGy9tV1srA== X-Received: by 2002:a17:907:f1d3:b0:a99:4058:67d5 with SMTP id a640c23a62f3a-a99b95849cbmr257504166b.34.1728659163222; Fri, 11 Oct 2024 08:06:03 -0700 (PDT) Received: from playground.localdomain ([86.127.146.72]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f5b0b5sm220879366b.94.2024.10.11.08.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:06:02 -0700 (PDT) From: Laurentiu Mihalcea To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Daniel Baluta , Shengjiu Wang , Iuliana Prodan , Tushar Khandelwal , Viresh Kumar , Frank Li Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 6/6] arm64: dts: imx8qm-mek: enable dsp node for rproc usage Date: Fri, 11 Oct 2024 11:04:39 -0400 Message-Id: <20241011150439.4027-7-laurentiumihalcea111@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> References: <20241011150439.4027-1-laurentiumihalcea111@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_080604_846732_C4CEEE8A X-CRM114-Status: GOOD ( 10.98 ) 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 From: Laurentiu Mihalcea Set the status of the dsp node to "okay" and assign and add its reserved memory regions. Signed-off-by: Laurentiu Mihalcea Reviewed-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 27 ++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 62203eed6a6c..d51da3b6b3aa 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -92,6 +92,27 @@ vdevbuffer: memory@90400000 { reg = <0 0x90400000 0 0x100000>; no-map; }; + + dsp_reserved: memory@92400000 { + reg = <0 0x92400000 0 0x1000000>; + no-map; + }; + + dsp_vdev0vring0: memory@942f0000 { + reg = <0 0x942f0000 0 0x8000>; + no-map; + }; + + dsp_vdev0vring1: memory@942f8000 { + reg = <0 0x942f8000 0 0x8000>; + no-map; + }; + + dsp_vdev0buffer: memory@94300000 { + compatible = "shared-dma-pool"; + reg = <0 0x94300000 0 0x100000>; + no-map; + }; }; lvds_backlight0: backlight-lvds0 { @@ -640,6 +661,12 @@ &sai7 { status = "okay"; }; +&vpu_dsp { + memory-region = <&dsp_vdev0buffer>, <&dsp_vdev0vring0>, + <&dsp_vdev0vring1>, <&dsp_reserved>; + status = "okay"; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>;