From nobody Thu Apr 2 22:00:10 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8B62A149C6F; Fri, 13 Feb 2026 05:13:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770959588; cv=none; b=ec70B3jokCVxgnRj4bmjXCF71HDRe3uj8bBCesSZBveDGYZvuknMwhJ9cPZJ1fz8307V47fKWdwP03D7bPlrNywKL8WZFSFtVBs0HCTgvKTzS87jROnTPmK3N+gUGJJHWYRUsSQwYY2vwf4SPYPblHkZXdeDDHdHEr/wyP5BnyA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770959588; c=relaxed/simple; bh=PaaWQXmLM1E6NYRT94l5gK80A8Ye3/T/39BeYDzC0gY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U/hLcjVT3Kh17X8Ij34C28UOC9iEB4zpWsDRQsgwsZhSAjOUGl7iVqLOitpWdalrgghO2jPLTqzW7smV643f2ZEAcZPX/qtiU67XvnbdBsPAN1SXoJaqHHrII6QoqeDM1pENIWNf5vWFlDGh06T/Wyxg/TBSyrOqDqWUX9voyJw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g2w5Uxwv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g2w5Uxwv" Received: by smtp.kernel.org (Postfix) with ESMTPS id 26CD1C19425; Fri, 13 Feb 2026 05:13:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770959588; bh=PaaWQXmLM1E6NYRT94l5gK80A8Ye3/T/39BeYDzC0gY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=g2w5Uxwv6oynpgRbaUYp8dyxcLiMKmITycGAlxltMLTiiHRi/qW+jUV5qp5zxrOsZ 2bk7WZB/RuMfWfq4uWkoaLF9qfodcxnG60S3le8s26xErqL4Yu00s+1OK40WfvyABB yM4rJQ93VQgzMMprJOBorJe8vHCl2GWDJAC9Re0xssVNyjg3gQx9ZU6rVXIc4SSzOs n56tTdoC3wLuUDfdxWTaaZyHh0DwAsNh/xkrTIF0jwDtnvzD2o2n1DgQZ1Hqb6dnrV oCqq0RyWSPpKM2PmVwZle+2buVr9+n8PE0ygPhZjVqszl5GD3QQnjBUBuiT6Yc9vqr 31bp4QaTJsIUw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F251EF48CC; Fri, 13 Feb 2026 05:13:08 +0000 (UTC) From: Zhentao Guo via B4 Relay Date: Fri, 13 Feb 2026 13:12:38 +0800 Subject: [PATCH RFC v4 1/4] media: dt-bindings: Add Amlogic V4L2 video decoder Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260213-b4-s4-vdec-upstream-v4-1-c7112d00d662@amlogic.com> References: <20260213-b4-s4-vdec-upstream-v4-0-c7112d00d662@amlogic.com> In-Reply-To: <20260213-b4-s4-vdec-upstream-v4-0-c7112d00d662@amlogic.com> To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Zhentao Guo X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1770959584; l=3141; i=zhentao.guo@amlogic.com; s=20251024; h=from:subject:message-id; bh=+ALt9bgLT6yjuZPZxCh4y6nzKx5uZews8JNjwnFmwig=; b=cBhzbA/y76qiFKg8/Fv7yHkkAUO1DQ1clt+av6FNdOO02Of4z4L4NM+I3ilYbzNAc3aFan4X0 xh3wUS4PUFyCJe/IrNoNHdYjDiTHNdySkEMeo5RK+5bcHsXv4ckx6fM X-Developer-Key: i=zhentao.guo@amlogic.com; a=ed25519; pk=5yfDKrjreXwcAoEUsdtWafy6YN500upXp/CgtnXjLVU= X-Endpoint-Received: by B4 Relay for zhentao.guo@amlogic.com/20251024 with auth_id=555 X-Original-From: Zhentao Guo Reply-To: zhentao.guo@amlogic.com From: Zhentao Guo Describe the initial support for the V4L2 stateless video decoder driver used with the Amlogic S4 (S805X2) platform. Signed-off-by: Zhentao Guo --- .../bindings/media/amlogic,s4-vcodec-dec.yaml | 96 ++++++++++++++++++= ++++ 1 file changed, 96 insertions(+) diff --git a/Documentation/devicetree/bindings/media/amlogic,s4-vcodec-dec.= yaml b/Documentation/devicetree/bindings/media/amlogic,s4-vcodec-dec.yaml new file mode 100644 index 000000000000..88780514d06c --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,s4-vcodec-dec.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2025 Amlogic, Inc. All rights reserved +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/amlogic,s4-vcodec-dec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Video Decode Accelerator + +maintainers: + - Zhentao Guo + +description: + The Video Decoder Accelerator present on Amlogic SOCs. + It supports stateless h264 decoding. + +properties: + compatible: + const: amlogic,s4-vcodec-dec + + reg: + maxItems: 2 + + reg-names: + items: + - const: dos + - const: dmc + + interrupts: + maxItems: 3 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: vdec + - const: clk_vdec_mux + - const: clk_hevcf_mux + + power-domains: + maxItems: 2 + + power-domain-names: + items: + - const: vdec + - const: hevc + + resets: + maxItems: 1 + + amlogic,canvas: + description: should point to a canvas provider node + $ref: /schemas/types.yaml#/definitions/phandle + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + - clock-names + - power-domains + - power-domain-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + video-codec@fe320000 { + compatible =3D "amlogic,s4-vcodec-dec"; + reg =3D <0xfe320000 0x10000>, + <0xfe036000 0x20>; + amlogic,canvas =3D <&canvas>; + reg-names =3D "dos", + "dmc"; + interrupts =3D , + , + ; + clocks =3D <&clkc_periphs CLKID_DOS>, + <&clkc_periphs CLKID_VDEC_SEL>, + <&clkc_periphs CLKID_HEVCF_SEL>; + clock-names =3D "vdec", + "clk_vdec_mux", + "clk_hevcf_mux"; + power-domains =3D <&pwrc PWRC_S4_DOS_VDEC_ID>, + <&pwrc PWRC_S4_DOS_HEVC_ID>; + power-domain-names =3D "vdec", + "hevc"; + resets =3D <&reset RESET_DOS>; + }; --=20 2.42.0