From: Jiaxing Hu <gahing@gahingwoo.com>
To: mchehab@kernel.org, heiko@sntech.de, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org,
nicolas.dufresne@collabora.com
Cc: ezequiel@vanguardiasur.com.ar, linux-media@vger.kernel.org,
devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Jiaxing Hu <gahing@gahingwoo.com>
Subject: [RFC PATCH 1/3] dt-bindings: media: add Rockchip RK3576 VEPU H.264 encoder
Date: Wed, 22 Jul 2026 19:34:15 +1200 [thread overview]
Message-ID: <20260722073417.2064667-2-gahing@gahingwoo.com> (raw)
In-Reply-To: <20260722073417.2064667-1-gahing@gahingwoo.com>
Add the binding for the VEPU510 H.264 hardware video encoder found on the
Rockchip RK3576. Each SoC has two independent encoder cores, each behind
its own IOMMU.
Signed-off-by: Jiaxing Hu <gahing@gahingwoo.com>
---
.../bindings/media/rockchip,rk3576-vepu.yaml | 94 ++++++++++++++++++++++
1 file changed, 94 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/rockchip,rk3576-vepu.yaml b/Documentation/devicetree/bindings/media/rockchip,rk3576-vepu.yaml
new file mode 100644
index 000000000..942118cb3
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/rockchip,rk3576-vepu.yaml
@@ -0,0 +1,94 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/rockchip,rk3576-vepu.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Rockchip VEPU510 Video Encoder (RK3576)
+
+maintainers:
+ - Jiaxing Hu <gahing@gahingwoo.com>
+
+description: |-
+ RK3576 has two identical VEPU510 hardware H.264/H.265 video encoder
+ cores. Each core is a standalone V4L2 mem2mem device in this binding;
+ there is no shared hardware descriptor/link-list engine tying the two
+ cores together (unlike the RK3576 video decoder's CCU), so each core
+ node is independent and self-contained.
+
+properties:
+ compatible:
+ const: rockchip,rk3576-vepu
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: The Video Encoder AXI interface clock
+ - description: The Video Encoder AHB interface clock
+ - description: The Video Encoder core clock
+
+ clock-names:
+ items:
+ - const: aclk_vcodec
+ - const: hclk_vcodec
+ - const: clk_core
+
+ assigned-clocks: true
+
+ assigned-clock-rates: true
+
+ resets:
+ items:
+ - description: The Video Encoder AXI interface reset
+ - description: The Video Encoder AHB interface reset
+ - description: The Video Encoder core reset
+
+ reset-names:
+ items:
+ - const: video_a
+ - const: video_h
+ - const: video_core
+
+ power-domains:
+ maxItems: 1
+
+ iommus:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - clock-names
+ - power-domains
+ - iommus
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/clock/rockchip,rk3576-cru.h>
+ #include <dt-bindings/power/rockchip,rk3576-power.h>
+
+ vepu0: video-codec@27a00000 {
+ compatible = "rockchip,rk3576-vepu";
+ reg = <0x27a00000 0x6000>;
+ interrupts = <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru ACLK_VEPU0>, <&cru HCLK_VEPU0>, <&cru CLK_VEPU0_CORE>;
+ clock-names = "aclk_vcodec", "hclk_vcodec", "clk_core";
+ assigned-clocks = <&cru ACLK_VEPU0>, <&cru CLK_VEPU0_CORE>;
+ assigned-clock-rates = <400000000>, <702000000>;
+ resets = <&cru SRST_A_VEPU0>, <&cru SRST_H_VEPU0>, <&cru SRST_VEPU0_CORE>;
+ reset-names = "video_a", "video_h", "video_core";
+ power-domains = <&power RK3576_PD_VEPU0>;
+ iommus = <&vepu0_mmu>;
+ };
+
+...
--
2.43.0
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2026-07-22 7:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 7:34 [RFC PATCH 0/3] media: rockchip: VEPU510 H.264 encoder for RK3576 Jiaxing Hu
2026-07-22 7:34 ` Jiaxing Hu [this message]
2026-07-22 7:34 ` [RFC PATCH 2/3] media: rockchip: add VEPU510 H.264 encoder driver " Jiaxing Hu
2026-07-22 10:00 ` Heiko Stübner
2026-07-22 7:34 ` [RFC PATCH 3/3] arm64: dts: rockchip: rk3576: add VEPU H.264 encoder nodes Jiaxing Hu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260722073417.2064667-2-gahing@gahingwoo.com \
--to=gahing@gahingwoo.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ezequiel@vanguardiasur.com.ar \
--cc=heiko@sntech.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mchehab@kernel.org \
--cc=nicolas.dufresne@collabora.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox