lkml.org 
[lkml]   [2022]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 1/3] dt-bindings: media: rockchip-vpu: Add RK3568 VEPU compatible
Date
The RK3568 and RK3566 have a Hantro VPU node solely dedicated to
encoding. This patch adds a compatible for it, and also allows
the bindings to only come with a vepu interrupt.

Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
---
.../devicetree/bindings/media/rockchip-vpu.yaml | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/media/rockchip-vpu.yaml b/Documentation/devicetree/bindings/media/rockchip-vpu.yaml
index bacb60a34989..965ca80b5cea 100644
--- a/Documentation/devicetree/bindings/media/rockchip-vpu.yaml
+++ b/Documentation/devicetree/bindings/media/rockchip-vpu.yaml
@@ -22,6 +22,7 @@ properties:
- rockchip,rk3288-vpu
- rockchip,rk3328-vpu
- rockchip,rk3399-vpu
+ - rockchip,rk3568-vepu
- rockchip,px30-vpu
- items:
- const: rockchip,rk3188-vpu
@@ -39,7 +40,9 @@ properties:

interrupt-names:
oneOf:
- - const: vdpu
+ - enum:
+ - vdpu
+ - vepu
- items:
- const: vepu
- const: vdpu
@@ -76,6 +79,18 @@ required:

additionalProperties: false

+allOf:
+ # compatibles that end in -vepu should only have the vepu interrupt
+ - if:
+ properties:
+ compatible:
+ contains:
+ pattern: "^[a-zA-Z0-9\\-,_.]+\\-vepu$"
+ then:
+ properties:
+ interrupt-names:
+ const: vepu
+
examples:
- |
#include <dt-bindings/clock/rk3288-cru.h>
--
2.36.1
\
 
 \ /
  Last update: 2022-05-11 17:54    [W:0.078 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site