From mboxrd@z Thu Jan 1 00:00:00 1970 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 A41CAC9831B for ; Thu, 24 Sep 2026 07:55:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=c6bSphI96faIovLb0i3xwDq2IcYRMi1OPe9C5hn7mKQ=; b=ZuvbM93e/fZt/l Uy/KJV6LwukD7daC3rBZzy2TnPkzZ7HbyrC5sWu5Hl0MBICGeRsXM+nUZrtG+HWzCGpB9BRln7gWe XU+qsaEEbvrzKCGJukEC/L5DbVOYnD3q+C1go9IWIjpyaeWXuuq5mCHCYR+puF1RYLFJo6SVryXUm mnquJ782NYl1JGTxsAGgbhwPrFJkj3R3D91v9NadFJvh6SJPrCpsOu1+hB98Gzu2/J71sQlfk9Vdt 6zg8XHtZry0AlQRIMF0TJPHZNXKYlLu8PS9ZXIHplSD9KhWi4+vpxsqTg3s5a5FZjBikEL3oaziLn 0Ti4bvN5vzz09CvqVzfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x9eIf-0000000AMAM-07ar; Thu, 24 Sep 2026 07:55:25 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x9eId-0000000AM89-21vz; Thu, 24 Sep 2026 07:55:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 35F0B44511; Thu, 24 Sep 2026 07:55:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 05CC0C2BCFB; Thu, 24 Sep 2026 07:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1790236523; bh=w0rmvAI5NCZBQO9oAjV6sLE5/64AbpKyCOFjhALwev0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=slhd6JYxX0hqcQehB0AaPwIQFa0DwfVKJlNZP8R/KDgr2KcM8ZdyIIOlyFKekcJFv y0/SNCPghO2bLEuAeD5YdKEdRPAoTZQVOEPnGXrhJOBPGYfrqkkq6itiv9hQVj6z4h WH7N7/dgs0A5SMfOGKZs6cdFJMc1MF6W2fJGy6XKckZYFcI9njdF/hjuM0hfhum+WY Fr1LpplZqR8Ml4tLqgqJMy39TFC9r/32ocSUjct5TEqwLXIMe1njviDIzg1c5TMOXH KBkgVqzkhp0mkGbx/POSyEj3sFvWfGKtjBvpTXMrYwfmng/SrsVlxL7GgqSUTAnZMu 6Ud6oMfu2zrQA== 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 DBC23C98319; Thu, 24 Sep 2026 07:55:22 +0000 (UTC) From: Zhentao Guo via B4 Relay Date: Thu, 24 Sep 2026 15:55:10 +0800 Subject: [PATCH v10 3/6] media: dt-bindings: Add Amlogic V4L2 video decoder MIME-Version: 1.0 Message-Id: <20260924-b4-s4-vdec-upstream-v10-3-1289303a58a4@amlogic.com> References: <20260924-b4-s4-vdec-upstream-v10-0-1289303a58a4@amlogic.com> In-Reply-To: <20260924-b4-s4-vdec-upstream-v10-0-1289303a58a4@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=1790236515; l=3590; i=zhentao.guo@amlogic.com; s=20251024; h=from:subject:message-id; bh=DsqSf0uc8lcBFsZv0khTsEEDSaAcEKLKirTaQLCxwhU=; b=fc2iyhvrNuRhK6Co3bpdEvF4QNQynojn9bYqEmZbjs+u8vMcX3jF0hunQpsIOpEqI5gEQr7A1 sHnSYuXdRbRDsgmVdhEapiQe1RPzjJxCPM8QZNBjkNsQWlcGzy5Itpi 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 X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: zhentao.guo@amlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org From: Zhentao Guo Add bindings for Amlogic hardware decoder accelerator. 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..751043c3d9cc --- /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: + minItems: 2 + + reg-names: + items: + - const: dos + - const: dmc + + interrupts: + minItems: 2 + + interrupt-names: + items: + - const: hvdec + - const: vdec + + clocks: + items: + - description: Clock for dos core + - description: Clock for vdec core + - description: Clock for hvdec core + + clock-names: + items: + - const: dos + - const: vdec + - const: hvdec + + power-domains: + minItems: 2 + + power-domain-names: + items: + - const: vdec + - const: hvdec + + 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", + "vdec", + "hvdec"; + power-domains = <&pwrc PWRC_S4_DOS_VDEC_ID>, + <&pwrc PWRC_S4_DOS_HEVC_ID>; + power-domain-names = "vdec", + "hvdec"; + resets = <&reset RESET_DOS>; + amlogic,canvas = <&canvas>; + amlogic,secure-monitor = <&sm>; + }; -- 2.42.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic