From mboxrd@z Thu Jan 1 00:00:00 1970 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 335373F482F; Mon, 14 Sep 2026 08:10:26 +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=1789373426; cv=none; b=Yka4HwDUQw9mf6e3nqIn6MwdZhsYe6Qwc0YJYzbQ6EGDnzSxRTU0uuRh1OAWKD8kyyuH7ugr9Xv6LznaozZ7vEJy5VjhXZv4tzxtPoegDZODt9r1TEJaAfGm2ByKr1L3fTJ6LPrlZpfp25kK5jROH1ZjG0JmZDbLSHNpUkW98Bc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789373426; c=relaxed/simple; bh=WMDu7hmwn0wxcSQNgHL+hxWiOm7hrCLH+YH4Lp/DEBM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h901fsnwKWD4oKxLmehO9KNxS/CwWvgu56HjHAQp64641tTqh2kPxLQJfOREsbSbdFxKp3KjQx6Qypbau/hOC4cZPRNTCmQ3bB8u5DRPGtsfixEk3xxSmt5RnaJFuvYe9kEJp56nIIfZDuDGIRMDefCz2Fd/eCXP8cU1Ro+TZe8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jwr2u+az; 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="jwr2u+az" Received: by smtp.kernel.org (Postfix) with ESMTPS id D63B0C2BCFD; Mon, 14 Sep 2026 08:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1789373425; bh=WMDu7hmwn0wxcSQNgHL+hxWiOm7hrCLH+YH4Lp/DEBM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=jwr2u+azwwcEEKxSv+1G4KJ57GtSAFRcyTWCoDKGsYwaGR27Kv5a4v6FkCKL6HJEk uysEh7/0cvCk88nGWVl601anVkyUVR8PsmHUaxTgSinFGIK21hKUG1JZq5hOOwc59p z5PsJXXxBUZQWobL2y8A4pyOWuCXBLhNH8I1yXQn1OsKvVNazQ57qdUF4DAG9eMd65 ZeC2J9w22OF0vuN3Fnw6ShhjbfnKBoSt6swUcA1nRzKZYHUTI6u2+y9YcpkAlgy3mS P7tXEghqzZUfdu9IaL97L84UQaz/GweCm4nRgVyAjpbik2nJYhbBdiCRaMQBogLDRF YWTnnrIErsv2g== 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 BA4FAC88E6B; Mon, 14 Sep 2026 08:10:25 +0000 (UTC) From: Zhentao Guo via B4 Relay Date: Mon, 14 Sep 2026 16:10:20 +0800 Subject: [PATCH v9 3/6] 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: 7bit Message-Id: <20260914-b4-s4-vdec-upstream-v9-3-72fdb0d71b02@amlogic.com> References: <20260914-b4-s4-vdec-upstream-v9-0-72fdb0d71b02@amlogic.com> In-Reply-To: <20260914-b4-s4-vdec-upstream-v9-0-72fdb0d71b02@amlogic.com> To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, Zhentao Guo X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1789373423; l=3671; i=zhentao.guo@amlogic.com; s=20251024; h=from:subject:message-id; bh=7vozstjjFiy9xe9/mDTnfaFlZZulH4Nh8D2wH1GAvPY=; b=Otfe+b5ikXKIT71bp/VH6TapDIEIH4IRb4J8UnjbW3LoKihHaShQZbO3lBKXzxmHjTrvYLTD/ I321/Piv+LwDxnXPjjgnwjxvsinHLGvvhN+Q55XAW0MEmRiix51XXVF 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 --- .../devicetree/bindings/media/amlogic,s4-vdec.yaml | 114 +++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml b/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml new file mode 100644 index 000000000000..d350b3e68a38 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,s4-vdec.yaml @@ -0,0 +1,114 @@ +# 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-vdec.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-vdec + + reg: + maxItems: 2 + + reg-names: + items: + - const: dos + - const: dmc + + interrupts: + maxItems: 2 + + interrupt-names: + items: + - const: core_hvdec + - const: core_vdec + + clocks: + items: + - description: Clock for dos core + - description: Clock for vdec core + - description: Clock for hvdec core + + clock-names: + items: + - const: dos + - const: core_v + - const: core_h + + power-domains: + maxItems: 2 + + power-domain-names: + items: + - const: dos_v + - const: dos_h + + resets: + maxItems: 1 + + amlogic,canvas: + description: Canvas maintains an index-to-physical-address + mapping table that allows the 16-bit AMRISC decoder core + to access 32-bit or 64-bit physical address. + $ref: /schemas/types.yaml#/definitions/phandle + + amlogic,secure-monitor: + description: Used to decrypt and load the signed decoder + firmware through ARM SMC (Secure Monitor Call). + $ref: /schemas/types.yaml#/definitions/phandle + +required: + - compatible + - reg + - reg-names + - interrupts + - clocks + - clock-names + - power-domains + - power-domain-names + - resets + - amlogic,canvas + - amlogic,secure-monitor + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + #include + video-codec@fe320000 { + compatible = "amlogic,s4-vdec"; + reg = <0xfe320000 0x10000>, + <0xfe036000 0x20>; + reg-names = "dos", + "dmc"; + interrupts = , + ; + clocks = <&clkc_periphs CLKID_DOS>, + <&clkc_periphs CLKID_VDEC_SEL>, + <&clkc_periphs CLKID_HEVCF_SEL>; + clock-names = "dos", + "core_v", + "core_h"; + power-domains = <&pwrc PWRC_S4_DOS_VDEC_ID>, + <&pwrc PWRC_S4_DOS_HEVC_ID>; + power-domain-names = "dos_v", + "dos_h"; + resets = <&reset RESET_DOS>; + amlogic,canvas = <&canvas>; + amlogic,secure-monitor = <&sm>; + }; -- 2.42.0