[RFC PATCH 1/6] dt-bindings: media: Add Rockchip RKVENC v1 video encoder
Daniel Golle
daniel at makrotopia.org
Sat Nov 14 06:54:42 PST 2026
Add the binding of the RKVENC v1 video encoder found in the RV1109 and
RV1126 ("vepu541") and in the RK3566 and RK3568 ("vepu540"). The block
encodes H.264 and HEVC from raw frames and reaches memory through an
IOMMU.
Describe the register space, the interrupt, the AXI, AHB and core
clocks and resets, the power domain and the IOMMU. The core clock is
scaled between operating points with an optional supply, and the
encoder is a cooling device of the thermal zones.
Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
.../media/rockchip,rv1126-rkvenc.yaml | 104 ++++++++++++++++++
MAINTAINERS | 7 ++
2 files changed, 111 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/rockchip,rv1126-rkvenc.yaml
diff --git a/Documentation/devicetree/bindings/media/rockchip,rv1126-rkvenc.yaml b/Documentation/devicetree/bindings/media/rockchip,rv1126-rkvenc.yaml
new file mode 100644
index 0000000000000..9a83ce1499493
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/rockchip,rv1126-rkvenc.yaml
@@ -0,0 +1,104 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/rockchip,rv1126-rkvenc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Rockchip RKVENC v1 H.264/HEVC video encoder
+
+maintainers:
+ - Daniel Golle <daniel at makrotopia.org>
+
+description:
+ The RKVENC v1 encoder found in the RV1109, RV1126, RK3566 and RK3568
+ encodes H.264 and HEVC from raw YUV or RGB frames. It reads and writes
+ memory through an IOMMU with two MMU instances.
+
+properties:
+ compatible:
+ enum:
+ - rockchip,rk3568-rkvenc
+ - rockchip,rv1126-rkvenc
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: AXI master clock
+ - description: AHB register interface clock
+ - description: Encoder core clock
+
+ clock-names:
+ items:
+ - const: axi
+ - const: ahb
+ - const: core
+
+ assigned-clocks: true
+
+ assigned-clock-rates: true
+
+ operating-points-v2: true
+
+ venc-supply:
+ description: Supply of the encoder core, scaled with the operating points.
+
+ "#cooling-cells":
+ const: 2
+
+ resets:
+ items:
+ - description: AXI reset
+ - description: AHB reset
+ - description: Encoder core reset
+
+ reset-names:
+ items:
+ - const: axi
+ - const: ahb
+ - const: core
+
+ power-domains:
+ maxItems: 1
+
+ iommus:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+ - power-domains
+ - iommus
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/rockchip,rv1126-cru.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/power/rockchip,rv1126-power.h>
+
+ video-codec at ffbb0000 {
+ compatible = "rockchip,rv1126-rkvenc";
+ reg = <0xffbb0000 0xf00>;
+ interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru ACLK_VENC>, <&cru HCLK_VENC>, <&cru CLK_VENC_CORE>;
+ clock-names = "axi", "ahb", "core";
+ assigned-clocks = <&cru ACLK_VENC>, <&cru CLK_VENC_CORE>;
+ assigned-clock-rates = <297000000>, <396000000>;
+ resets = <&cru SRST_VENC_A>, <&cru SRST_VENC_H>,
+ <&cru SRST_VENC_CORE>;
+ reset-names = "axi", "ahb", "core";
+ iommus = <&venc_mmu>;
+ power-domains = <&power RV1126_PD_VEPU>;
+ };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 9cd098f0d91f3..26991dd3a3569 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -24544,6 +24544,13 @@ S: Maintained
F: Documentation/devicetree/bindings/media/rockchip,vdec.yaml
F: drivers/media/platform/rockchip/rkvdec/
+ROCKCHIP RKVENC VIDEO ENCODER DRIVER
+M: Daniel Golle <daniel at makrotopia.org>
+L: linux-media at vger.kernel.org
+L: linux-rockchip at lists.infradead.org
+S: Maintained
+F: Documentation/devicetree/bindings/media/rockchip,rv1126-rkvenc.yaml
+
ROCKCHIP RK3308 INTERNAL AUDIO CODEC
M: Luca Ceresoli <luca.ceresoli at bootlin.com>
S: Maintained
--
2.56.0
More information about the Linux-rockchip
mailing list