| Message ID | 20260711135959.3616919-8-wens@kernel.org (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-24351-sunxi=pue.re@lists.linux.dev> X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id A83E61C00D2 for <noreply@patchwork.local>; Sat, 11 Jul 2026 16:01:56 +0200 (CEST) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-24351-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-24351-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 841443011F37 for <noreply@patchwork.local>; Sat, 11 Jul 2026 14:00:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9B5A2DEA8F; Sat, 11 Jul 2026 14:00:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YFuVTviT" X-Original-To: linux-sunxi@lists.linux.dev Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B9562BE7BE; Sat, 11 Jul 2026 14:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783778414; cv=none; b=UG3tcKwwIV4Az/Us8MUm4disZslQ1HWmhYEXpBGinvxpbd7V2U7hATNgUupbErZ10J2WHwDGJdNuwpghLYBXDiPDRfCTyJU/bXbQbNkkoD58+BP84XQPa06ZBinR1wSHTiCodgZdg+U6XJEq3j28e5ZXdjFH1/8h9dFtjGTMm/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783778414; c=relaxed/simple; bh=5xxodZPCRBKAyTJ6mq4Tdy+Kg7/mU7ZXT1w7S3VhpEY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tXGiFx74tKPQl9gFdPifRF40cCDcpqM8NlgEtqi2Ffm70K+IFdyVecUinUBPOLwuk8AGl7ErkJMBj6V27dvKWnH1COx0EC6wmTFlrBJAtxTIpe5wK38VeesP6jGBBD/ybKefIbZv5tWxQcTiOoTsakitStgoKV4OFI9pcm1S6ww= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YFuVTviT; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 584E91F00ACF; Sat, 11 Jul 2026 14:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783778411; bh=1NrQxFr7A8kE1ao+WVW0sT4zAPOI0r5GcxHRRjiYX0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YFuVTviT14c26brRNe4Lk8WKoTkT5M4/jh6w+sN6W/YGmJ9780eBhkb7H1IS4FGIu eKaR6Eyx4ND9AB5JekaEaBvfNnV9rSs/W0ALgnYCT1tLjdBKJpb2W2OCH6yEL6qaNA TDix53agHl0FBtX0Y1Rhy2W8iUk3WWJw37Yvb2dGAJS3FEsOh3eItr+a9b176m9TxZ 5qXj57tZad+/OUQ2RWeMWcSE/64bbWsZRC0G9xGWzwUbC65qsys3PTQBdrQXIyUfTp +xXIBAeerQszAfNMDZYQ4Ape8n2VkjqyBbMTLwNK7sQHpVWCDtN/ALnVa78tRF8eaR s5X7xsc9gqRAQ== Received: by wens.tw (Postfix, from userid 1000) id 8F3FF60209; Sat, 11 Jul 2026 22:00:06 +0800 (CST) From: Chen-Yu Tsai <wens@kernel.org> To: Maxime Ripard <mripard@kernel.org>, Paul Kocialkowski <paulk@sys-base.io>, Mauro Carvalho Chehab <mchehab@kernel.org>, Chen-Yu Tsai <wens@kernel.org>, Jernej Skrabec <jernej@kernel.org>, Samuel Holland <samuel@sholland.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org> Cc: Jernej Skrabec <jernej.skrabec@gmail.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 7/7] arm64: dts: allwinner: sun50i-h616: Add video engine Date: Sat, 11 Jul 2026 21:59:58 +0800 Message-ID: <20260711135959.3616919-8-wens@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260711135959.3616919-1-wens@kernel.org> References: <20260711135959.3616919-1-wens@kernel.org> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: <linux-sunxi.lists.linux.dev> List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= |
| Series |
arm64: allwinner: h616: Support Video Engine
|
|
Commit Message
Chen-Yu Tsai
July 11, 2026, 1:59 p.m. UTC
From: Jernej Skrabec <jernej.skrabec@gmail.com> The H616 SoC has a video engine, and two SRAM regions needed by it. Add the video engine to the dtsi file. Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> [wens@kernel.org: Add VE SRAM region and commit message] Signed-off-by: Chen-Yu Tsai <wens@kernel.org> --- Changes since v1: - Corrected second IOMMU port --- arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Comments
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Low] The video-codec node references a non-existent label 've_sram', causing a Device Tree Compiler (DTC) build failure. - [Low] The `allwinner,sram` property incorrectly references the generic `mmio-sram` parent controller node (`&sram_c`) instead of an `sram-section` child node. -- --- Patch [7]: [PATCH v2 7/7] arm64: dts: allwinner: sun50i-h616: Add video engine --- commit f351af2797d5cc85ad73122a961f9b9e63f82153 Author: Jernej Skrabec <jernej.skrabec@gmail.com> arm64: dts: allwinner: sun50i-h616: Add video engine This commit adds the video engine node to the sun50i-h616 device tree file. It defines the required memory regions, clocks, resets, interrupts, and SRAM nodes needed by the engine. > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi [ ... ] > @@ -175,6 +175,18 @@ crypto: crypto@1904000 { > resets = <&ccu RST_BUS_CE>; > }; > > + video-codec@1c0e000 { > + compatible = "allwinner,sun50i-h616-video-engine"; > + reg = <0x01c0e000 0x2000>; > + clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, > + <&ccu CLK_MBUS_VE>; > + clock-names = "ahb", "mod", "ram"; > + resets = <&ccu RST_BUS_VE>; > + interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; > + iommus = <&iommu 3>, <&iommu 2>; > + allwinner,sram = <&ve_sram 1>, <&sram_c 1>; [Severity: Low] Is the ve_sram label defined elsewhere? The Device Tree Compiler (DTC) will fail to build because of this unresolved reference. It appears the sram_c1 node and its ve_sram child section might be missing. [Severity: Low] Does the second phandle correctly reference an sram-section child node? Referencing &sram_c here points to the generic mmio-sram parent controller node, which lacks #sram-cells. This violates the bindings and triggers a dt-validate schema failure. > + }; > +
Hi, On 7/11/26 15:59, Chen-Yu Tsai wrote: > From: Jernej Skrabec <jernej.skrabec@gmail.com> > > The H616 SoC has a video engine, and two SRAM regions needed by it. > > Add the video engine to the dtsi file. > > Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com> > [wens@kernel.org: Add VE SRAM region and commit message] > Signed-off-by: Chen-Yu Tsai <wens@kernel.org> Checked against the binding and the manual: clocks, regs, interrupts and reset matches. Also test-built the DTB: that worked fine, not sure what Sashiko was complaining about. Reviewed-by: Andre Przywara <andre.przywara@arm.com> Thanks, Andre > --- > Changes since v1: > - Corrected second IOMMU port > --- > arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > index 1598e86259ab..c6b3a3f8359a 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi > @@ -175,6 +175,18 @@ crypto: crypto@1904000 { > resets = <&ccu RST_BUS_CE>; > }; > > + video-codec@1c0e000 { > + compatible = "allwinner,sun50i-h616-video-engine"; > + reg = <0x01c0e000 0x2000>; > + clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, > + <&ccu CLK_MBUS_VE>; > + clock-names = "ahb", "mod", "ram"; > + resets = <&ccu RST_BUS_VE>; > + interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; > + iommus = <&iommu 3>, <&iommu 2>; > + allwinner,sram = <&ve_sram 1>, <&sram_c 1>; > + }; > + > syscon: syscon@3000000 { > compatible = "allwinner,sun50i-h616-system-control"; > reg = <0x03000000 0x1000>;
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index 1598e86259ab..c6b3a3f8359a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -175,6 +175,18 @@ crypto: crypto@1904000 { resets = <&ccu RST_BUS_CE>; }; + video-codec@1c0e000 { + compatible = "allwinner,sun50i-h616-video-engine"; + reg = <0x01c0e000 0x2000>; + clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, + <&ccu CLK_MBUS_VE>; + clock-names = "ahb", "mod", "ram"; + resets = <&ccu RST_BUS_VE>; + interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; + iommus = <&iommu 3>, <&iommu 2>; + allwinner,sram = <&ve_sram 1>, <&sram_c 1>; + }; + syscon: syscon@3000000 { compatible = "allwinner,sun50i-h616-system-control"; reg = <0x03000000 0x1000>;