From nobody Sat Jul 25 23:41:42 2026 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 17A6528DB54; Sat, 11 Jul 2026 14:00:09 +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=1783778412; cv=none; b=JIO+9QxMLS+trC1uPq+JP28ezF5FwY2jxsrKN7+AJ2Bkeq9L3yC1+dCLDMhJf9vP7CAzycbz96M2lNTGULalpbqr7E+ew8iUtUhjR0jKK/TqucRVewyD6VVz+XTwajewAX5f6ror6ZcuEi+DoiT/97oq8w40lmzpsMf2Bh2a1Ro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783778412; c=relaxed/simple; bh=eYBnTZ5HKkGWeLXchZhY3cgtIf3nlD6Kr1/ecwKnd14=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZPFeDbatSLYJ2MEoWGEEw60WYIJ183n3wFOqigBAdBbAEkKK/vc92vd5SOo9ZgO3C+E3e8trxiq5+CSiJWbh/37v8l+zhkRdAbg/9MHJruI8TmAmOLr7N8xI03z2ZrMWl75ibyZvWuGJDc70F6NSS2zJozDyvXIWMLiBlLDZQDc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TqvoZmeZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TqvoZmeZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 448421F00A3A; Sat, 11 Jul 2026 14:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783778409; bh=/qCsV/vqShpGar2CdE6+oSzfHojJA4x7ZwJRazSD1MM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TqvoZmeZyNYpuRTxFcr+p7IlzfKrp8ktfhRLiYx8FXlxphTNrhBwtEeqHQzYUQiMj xcZhlr3iQUZUz5qABbz0wINEVdNk+mTswo/3Qn+hcMcaaanE+6JzWOpKTYiHpZ4iea hDWL42FmBHmN8cyMJdmVQgsjxyfqk7ip3laU1gr8tS07RyJg1SojK7keUXdoLyZkxm +r454dde6PU+UVXApe9oTRlHNtk1GxCBJ4VO7LiHfxC3iUoh/BOjWkO/XHQZ2qQvwU c8sVz9OU3xJry2ap5uM4jskFww9Z2pbiw1DBZqcbLAV7uj84Kgq1UWBpeZ2jRXxu3N oGw08pHFxVRMQ== Received: by wens.tw (Postfix, from userid 1000) id 2E5B060194; Sat, 11 Jul 2026 22:00:06 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Greg Kroah-Hartman , 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, Jernej Skrabec Subject: [PATCH v2 1/7] dt-bindings: media: sun4i-a10-video-engine: Fix IOMMU count for H6 Date: Sat, 11 Jul 2026 21:59:52 +0800 Message-ID: <20260711135959.3616919-2-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On the H6 SoC, the Video Engine has two memory ports, thus two IOMMU connections. The secondary one that is missing is likely used for reading reference frames. The newer H616 is the same. On the other hand, the D1 only has one memory port. Add the missing IOMMU connection for the Video Engine. Fixes: 62a8ccf3a248 ("arm64: dts: allwinner: h6: Fix Cedrus IOMMU usage") Reviewed-by: Jernej Skrabec Acked-by: Rob Herring (Arm) Signed-off-by: Chen-Yu Tsai --- .../allwinner,sun4i-a10-video-engine.yaml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-vi= deo-engine.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a= 10-video-engine.yaml index 01f2afa023f0..932043d7f0cc 100644 --- a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-eng= ine.yaml +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-eng= ine.yaml @@ -55,7 +55,10 @@ properties: description: Phandle to the device SRAM =20 iommus: - maxItems: 1 + minItems: 1 + items: + - description: VE port on IOMMU + - description: VE_R port on IOMMU =20 memory-region: maxItems: 1 @@ -82,6 +85,22 @@ required: - resets - allwinner,sram =20 +allOf: + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun50i-h6-video-engine + then: + properties: + iommus: + minItems: 2 + else: + properties: + iommus: + maxItems: 1 + additionalProperties: false =20 examples: --=20 2.47.3 From nobody Sat Jul 25 23:41:42 2026 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 F0CE4246778; Sat, 11 Jul 2026 14:00:09 +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=1783778411; cv=none; b=anRk0cBp8By6+CVIXAmuf4VyyGCZUtWobp+/oseOAcD/HW+BgtKlnFBwEHVvn3sVf15/vQXtkInQ3g95QsMSbkgWeGX4pCbbJ5v8cFSFQaFo8mnJIEVcUPP0hokr3nLg4YlR5BiHWs2xiK6MLSMnK0DdYwq3VFQBqdHgk5eDJvQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783778411; c=relaxed/simple; bh=Cc3iXIe7vA6bWvZE/goaLJXnEVxUk1J4/yD+9CVPv6c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k+YGxx3BdBCEfS/OKJ1rcK+hK6eLh0lvPptVFk+eJGv1++hkkdNcm6HQ0rXhoO1UweAn1rtY12gYmtolaUDZwYDBEbEkRkvYHlOWnocoX65e6aBNRfPOdAV6cWU0TVQlIXsOZpIbGuN9JPWap2H4r1IMUq9LxfL0QU1cJvQAbM0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VxoTKKnQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VxoTKKnQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 427D41F000E9; Sat, 11 Jul 2026 14:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783778409; bh=4OuezE/moo5Tppqmye8t2PqCkPAk1kmw20Fa1p80Uak=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=VxoTKKnQlVJcRhtm2Y+EIAozs1G5BEK9wTFm6xPfRXoQ6y3tXHpdw1DTbn7UQANLH DnAOumu//hcPPhlJvcme/qgoh8yhuaPVRxc3lbm+EzAX129HxWPNtiqirqRVFQVLER 56e/9iTBSS5cu0WIjKLCnxEj/ghe8NUN3mja882bBZeGt/Phv/gy1ORHnE5CjKJ+dF U+EMQyD7HbXFc3Aq2BcaLqi82cLx+zxxqXCLclDf8+IJeZk9dEMRwujbDzL4XSHxPQ sfWWw6Qspf0+34ZclkRaWc7eSiE03VknPmvSyKWlafemSMXOojLy08CO5cpHdSyp/z 6QZMyNjfTYB6A== Received: by wens.tw (Postfix, from userid 1000) id 545C65FDF3; Sat, 11 Jul 2026 22:00:06 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Greg Kroah-Hartman , 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, Jernej Skrabec Subject: [PATCH v2 2/7] dt-bindings: media: sun4i-a10-video-engine: Fix SRAM count for H6 Date: Sat, 11 Jul 2026 21:59:53 +0800 Message-ID: <20260711135959.3616919-3-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On the H6, the SRAM C region includes an alias of part of the VE SRAM used by the video engine. This region should also be claimed so that no access happens through the alias window. Add a second SRAM region phandle to the video engine for the H6. Acked-by: Rob Herring (Arm) Reviewed-by: Jernej Skrabec Signed-off-by: Chen-Yu Tsai --- .../allwinner,sun4i-a10-video-engine.yaml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-vi= deo-engine.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a= 10-video-engine.yaml index 932043d7f0cc..818d815d4732 100644 --- a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-eng= ine.yaml +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-eng= ine.yaml @@ -48,11 +48,15 @@ properties: =20 allwinner,sram: $ref: /schemas/types.yaml#/definitions/phandle-array + minItems: 1 items: - items: - description: phandle to SRAM - description: register value for device - description: Phandle to the device SRAM + - items: + - description: phandle to SRAM alias + - description: register value for device + description: Phandle to the device SRAM(s) =20 iommus: minItems: 1 @@ -101,6 +105,21 @@ allOf: iommus: maxItems: 1 =20 + - if: + properties: + compatible: + contains: + enum: + - allwinner,sun50i-h6-video-engine + then: + properties: + allwinner,sram: + minItems: 2 + else: + properties: + allwinner,sram: + maxItems: 1 + additionalProperties: false =20 examples: --=20 2.47.3 From nobody Sat Jul 25 23:41:42 2026 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 F3D2C2877DA; Sat, 11 Jul 2026 14:00:09 +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=1783778411; cv=none; b=Enl07gLIj5ELCX/mt0RA8evsDxhHz9p3CEeO8WrAeMPV7gyYUGYAmabhYpRBYOBwDu9i28jxZBIXIF0hBcOgUxH+FbHAB11FuBkf4kZPy7mXmxfdLsRvTQ/XvzrHZXiDbHA0GQs/VF9a+Q+IIxLY98croQ2WxAQTe9HsIMnIfZk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783778411; c=relaxed/simple; bh=Q7sOoB3VrXS4zjRLNEjueSh8nOAfFRmn+saoy9jpSTU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h6zRDVQyPsMce4c5uHaCNUsSvjl/FbWoytYEmaApAGU3QXNsOoaKUZMy5ZRecxZBNClniciG/Dz45lqu6VK0MJnitxWQeW3IG61QJqVVNeC/rsUn0Tt79P7zVMJV1ZrDnmgqI2j4TkTfI0JhZAIV+zQttQyTVOx9JbNoPV2Me/k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iN2TDt0S; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iN2TDt0S" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 469F81F00A3D; Sat, 11 Jul 2026 14:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783778409; bh=68XIjv3oMF74stzxvIJ/Qs/DZ1vupGwuNZ5/TScVAvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iN2TDt0S4biyCk8WOcxwnVlb7psB5khRO/3zJd+1StlxchyMgu6w81SUhBVK0H168 P+cAljV3Kqzc8Rt5TOZf1kx8Z9g2RGBdWsYtcmiDP4tSU5QDRzUfetPRaqWuroYqbD 1NpdXbB20qsJG0kBGzplXT8KS95iGzA1dDGqn4mDVO9Zu3b456D5RnG83IIIUB7I4c 0voVYyvaOzL5ti1iDPR7mz7yaj79ULglU28/PeMg9H/GsMpkP/L5f+UjnIcND4dwJl +qil9nxOTI59bWE7pOeMibs53l3DuQki0WdOSV7jly46oZwybUxPZtfq7153iWXJYl G7wIwrNaDw3Ew== Received: by wens.tw (Postfix, from userid 1000) id 20A725FBBD; Sat, 11 Jul 2026 22:00:06 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Greg Kroah-Hartman , 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, Jernej Skrabec Subject: [PATCH v2 3/7] dt-bindings: media: sun4i-a10-video-engine: Add H616 compatible Date: Sat, 11 Jul 2026 21:59:54 +0800 Message-ID: <20260711135959.3616919-4-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The H616 contains a video engine similar to past SoCs. Add a new compatible for it. Acked-by: Rob Herring (Arm) Reviewed-by: Jernej Skrabec Signed-off-by: Chen-Yu Tsai --- .../bindings/media/allwinner,sun4i-a10-video-engine.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-vi= deo-engine.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a= 10-video-engine.yaml index 818d815d4732..20c430795134 100644 --- a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-eng= ine.yaml +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-eng= ine.yaml @@ -24,6 +24,7 @@ properties: - allwinner,sun50i-a64-video-engine - allwinner,sun50i-h5-video-engine - allwinner,sun50i-h6-video-engine + - allwinner,sun50i-h616-video-engine =20 reg: maxItems: 1 @@ -96,6 +97,7 @@ allOf: contains: enum: - allwinner,sun50i-h6-video-engine + - allwinner,sun50i-h616-video-engine then: properties: iommus: @@ -111,6 +113,7 @@ allOf: contains: enum: - allwinner,sun50i-h6-video-engine + - allwinner,sun50i-h616-video-engine then: properties: allwinner,sram: --=20 2.47.3 From nobody Sat Jul 25 23:41:42 2026 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 623B22BE7BA; 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=1783778415; cv=none; b=Yv0El3weu5WRiv7esnWYiFmlyiPSwEsl7YidKgsljTN+bbhzev34FHtPZ+EhW5QuXaVnYb/lQQgKTCXuqcGLWFEjdomByWlbxm8/za/9n6dyZ0XVJcYkIv6eHHIyUpfvw0chiyqYTvRarux0bZ1C/6g57tt6ik1FguVjdtF8Q1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783778415; c=relaxed/simple; bh=w7wAhjr3OsrA14pePJOiCKmYusjZh13Z62To1CeUVP8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=adNFQtKE43TYTfitB4wKDccg6AOluyvQAO+uVP6puWMMPxHLyuwSUztNWrQuFBD0F25wXN0zoiTojYSuixLserO38X0HMO4JZmH6WNe7E2JIJnxllDa0qQ9VZCJcO3V9MHk2+1hhO51cDN+M6kSo1ZlS4BYjXyBNCoCIno567UA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Fd/VIn4c; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Fd/VIn4c" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53C6B1F00ACA; 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=S0G6ilPkMy+tyb9WZl7gdzOFKTmLXdAZ+ze/q2dbU/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Fd/VIn4c1J8V59LUaGWkWv55Qq+DISlOq2SdFQdsrm7PRTb9acBvD4EFc+GdYonOm Tk2dj34bkwLoCQOwvM8emvJaUVsaJKvXvuvCWGyqOxlZ+rMehkgbs1ywfmqH7QfVSj 5by4fAspZSknuhgFRGv8TUfZIgC8gEL6uLFALxGeBzouHY8i/w9aoinw0D6hlkupui 4lWEtZkFOSbhekyzSIXpLzmOma5pc9UkFc79hb0E/bXY6fBz1JKjVjS6McQKRulUeV o2j7E5WQt1feEwXv6sVzRZMcCNyjijcCTRUuDlNYx8Wq8pb8wVOG07P5isDAUg+uFz ZJCOLnmmRWUIQ== Received: by wens.tw (Postfix, from userid 1000) id 6ED87601EA; Sat, 11 Jul 2026 22:00:06 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Greg Kroah-Hartman , 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, Jernej Skrabec Subject: [PATCH v2 4/7] drivers: staging: media: sunxi: cedrus: add H616 variant Date: Sat, 11 Jul 2026 21:59:55 +0800 Message-ID: <20260711135959.3616919-5-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The Allwinner H616 SoC has a video engine hardware block like the one found on previous generations such as the H6. In addition to the currently supported features of the H6, it also includes a VP9 decoder. Support for VP9 will be added separately. Add the compatible for the H616 variant, using the H6 variant data. Reviewed-by: Jernej Skrabec Signed-off-by: Chen-Yu Tsai --- Changes since v1: - Updated commit message on VP9 decoder status --- drivers/staging/media/sunxi/cedrus/cedrus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/= media/sunxi/cedrus/cedrus.c index bbd186b8035b..ac0217976670 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus.c @@ -696,6 +696,10 @@ static const struct of_device_id cedrus_dt_match[] =3D= { .compatible =3D "allwinner,sun50i-h6-video-engine", .data =3D &sun50i_h6_cedrus_variant, }, + { + .compatible =3D "allwinner,sun50i-h616-video-engine", + .data =3D &sun50i_h6_cedrus_variant, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, cedrus_dt_match); --=20 2.47.3 From nobody Sat Jul 25 23:41:42 2026 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 F3C7428726E; Sat, 11 Jul 2026 14:00:09 +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=1783778411; cv=none; b=RgqtBxy6IB1yO1xyaRQJ8t6wPGZroaL8uQpUn5LcVqLYbVsLZxULhbPTIe9emOVL8+gA+4jqx+jjmvTA6+m+X8aRYsbmOiDVqQux6+ZcVuc9yGQeFbCI7PpHtQ9BnaDe8P/luXiBohMAILTaKkCXfsU/xDeJUAugho25bJq4m00= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783778411; c=relaxed/simple; bh=h8HnPa9jPNT9KN5lGEI/AtSgYlDiW6l80zMgBH26b/I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Br88QggPQq4RJZh8sHIO591+BwDjJZC7jbWmCK1ClPTV1kwyMexSg17UErMRSwPFIRUunCxaAUmfuJZU+4xsQoVmumKeAIwkAKfvjjssr3WK88jgGStQLUB/us9vEkxdoE25AZyxMzh7edCDG2fWkzrWqwrD13D5lV/BKzWZ7Tk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hL2iwygs; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hL2iwygs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 496841F00A3E; Sat, 11 Jul 2026 14:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1783778409; bh=lHn+VlrPP8+DG9eMf2EHuMFbxRRlTlKli3GayR7WGoQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hL2iwygst/9gzBKYB3gR43vvXyMtPra1B9ErC5aSzTvxX6k4t83pD2fsU0jrX5ez9 02o/BWBEz8SMjpfhcU4yoUpo8zGAYfb+JBGF+TPxMR1IOP0IxuLgR6jPHsACHJ2QYQ pLVz6Syx2bvGSzhtYeduRL9T60iirIJL6czgoWXqVqsf/Jj3y/W6Km7oUnOQ088O3g T9L/3zjDGvMu0wxO2g/wmgj00Wn/Iyg4kL0UcKS5Tb26lYBT82KSL/eDD9pCqqNZaD LcY+v141/EYqUct2Up0Nt6FiJ+3VZDuOoJBNYrVWq90PQH9cLL3+FmhgF0h2yHVrxI JwGqvyYV+yqNg== Received: by wens.tw (Postfix, from userid 1000) id 65CBB6018D; Sat, 11 Jul 2026 22:00:06 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Greg Kroah-Hartman , 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, Jernej Skrabec Subject: [PATCH v2 5/7] arm64: dts: allwinner: sun50i-h6: Add missing SRAM region for video engine Date: Sat, 11 Jul 2026 21:59:56 +0800 Message-ID: <20260711135959.3616919-6-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The SRAM C region contains a partial alias to the VE SRAM already referenced by the video engine. To avoid access through this alias window, the region should also be claimed by the video engine. Add a reference to the SRAM C region to the video engine node. Fixes: b542570e5605 ("arm64: dts: allwinner: h6: Add Video Engine node") Reviewed-by: Jernej Skrabec Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot= /dts/allwinner/sun50i-h6.dtsi index 72ce1a75647b..88c6e3e105c0 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -205,7 +205,7 @@ video-codec@1c0e000 { clock-names =3D "ahb", "mod", "ram"; resets =3D <&ccu RST_BUS_VE>; interrupts =3D ; - allwinner,sram =3D <&ve_sram 1>; + allwinner,sram =3D <&ve_sram 1>, <&de2_sram 1>; iommus =3D <&iommu 3>; }; =20 --=20 2.47.3 From nobody Sat Jul 25 23:41:42 2026 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 F312A2877DE; 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=Hl20Jhn9l3YWYVoRaNA+q538inxHt1DGHpih51OyuXkZ3No61FvF6jDfwfKinQdN01wwzenYGR2/VSjnv8byz1Oc+8N8EAP4es0Y3YxrAanQ87f2Uxvp5TSAs/lH1FeYLpna5icYHNDsYVij5jmYDSBQqY19ljfcUB3hN28Z6iw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783778414; c=relaxed/simple; bh=gW2V/cjtn2yP9PlGPvyWgig9cbcM95cWOOpoDOZuA24=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YjAzrYDQDLIO5qVX7z7OelUSawgIrYth8mzl2yDRu3tkL82TkN9JsUvoq12D0sL2uSaSkD37Te8L3V4AZtBkTYD8zrCurmJHviH86EuZreH6YdAdBVq3GsKsfcAhPH4phCmh3qk/rY3/tfeGUY6bK8kKej0n9P01tTpavTN4fMY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Lz+dy0Es; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Lz+dy0Es" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5038C1F00AC4; 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=pzarCo0PiGEntl4cqzxyei11Yp87WevMdKTnQJP6EnQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Lz+dy0Es4Yygp/eB4qTmrqNxpdhw+CBv/MGfse2dLpCGqTnVX3UPHkXrx+7qIebP0 THClOlYed/0WxTPv2Pk6ApKj98IGtaPv4aA8GbfDb/8Wa1k5NAHmgDIRzHGUUSg58v I5QjacFJu/Hu0bhVyYrZaSw4hMNSZz2t3vE/7slhOGitCt/+PTUIAyXXjpZdPaXoeD 6WPSWd35kZ03qRU7rYqeVOZ2aoONrcim1ULixOYAlVJtTEVlZ2/F96SLYZFF7sbyp+ k+XUt4JAXM6nMKJvoanY9YGDOesR/eoKs85/5pSUiLmi0n8XPSdZ5QbcF0yDzLmfIP s8jRWlIL2h+UQ== Received: by wens.tw (Postfix, from userid 1000) id 84AB8601DD; Sat, 11 Jul 2026 22:00:06 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Greg Kroah-Hartman , 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, Jernej Skrabec Subject: [PATCH v2 6/7] arm64: dts: allwinner: sun50i-h6: Add missing IOMMU for video engine Date: Sat, 11 Jul 2026 21:59:57 +0800 Message-ID: <20260711135959.3616919-7-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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The video engine on the H6 actually has two IOMMU ports. The one already listed is simply named "VE" in the user manual. The missing one is named "VE_R" and is probably either read-only or used for reference frames. Either way, it should be listed. Add a reference to the "VE_R" IOMMU port to the video engine node. Fixes: 62a8ccf3a248 ("arm64: dts: allwinner: h6: Fix Cedrus IOMMU usage") Reviewed-by: Jernej Skrabec Signed-off-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot= /dts/allwinner/sun50i-h6.dtsi index 88c6e3e105c0..48c771223af4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -206,7 +206,7 @@ video-codec@1c0e000 { resets =3D <&ccu RST_BUS_VE>; interrupts =3D ; allwinner,sram =3D <&ve_sram 1>, <&de2_sram 1>; - iommus =3D <&iommu 3>; + iommus =3D <&iommu 3>, <&iommu 1>; }; =20 gpu: gpu@1800000 { --=20 2.47.3 From nobody Sat Jul 25 23:41:42 2026 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YFuVTviT" 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 To: Maxime Ripard , Paul Kocialkowski , Mauro Carvalho Chehab , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jernej Skrabec , Greg Kroah-Hartman , 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Jernej Skrabec 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 [wens@kernel.org: Add VE SRAM region and commit message] Signed-off-by: Chen-Yu Tsai --- 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/bo= ot/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 =3D <&ccu RST_BUS_CE>; }; =20 + video-codec@1c0e000 { + compatible =3D "allwinner,sun50i-h616-video-engine"; + reg =3D <0x01c0e000 0x2000>; + clocks =3D <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, + <&ccu CLK_MBUS_VE>; + clock-names =3D "ahb", "mod", "ram"; + resets =3D <&ccu RST_BUS_VE>; + interrupts =3D ; + iommus =3D <&iommu 3>, <&iommu 2>; + allwinner,sram =3D <&ve_sram 1>, <&sram_c 1>; + }; + syscon: syscon@3000000 { compatible =3D "allwinner,sun50i-h616-system-control"; reg =3D <0x03000000 0x1000>; --=20 2.47.3