Skip to contentSkip to conversation

dt-bindings: media: convert rockchip vpu bindings to yaml

PATCH Superseded Johan Jonker 2 participants 2 messages Apr 3, 2020 – Apr 14, 2020

Subsystems (4)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: media: convert rockchip vpu bindings to yaml

Current dts files for Rockchip with 'vpu' nodes are manually verified. In order to automate this process rockchip-vpu.txt has to be converted to yaml.

Changed:
Add missing reg property

---
 .../devicetree/bindings/media/rockchip-vpu.txt     | 43 -------------
 .../devicetree/bindings/media/rockchip-vpu.yaml    | 75 ++++++++++++++++++++++
 MAINTAINERS                                        |  2 +-
 3 files changed, 76 insertions(+), 44 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/media/rockchip-vpu.txt
 create mode 100644 Documentation/devicetree/bindings/media/rockchip-vpu.yaml
Documentation/devicetree/bindings/media/rockchip-vpu.txt deleted +0 -43
deleted file mode 100644
index 339252d9c..000000000
@@ -1,43 +0,0 @@
-device-tree bindings for rockchip VPU codec
-
-Rockchip (Video Processing Unit) present in various Rockchip platforms,
-such as RK3288, RK3328 and RK3399.
-
-Required properties:
-- compatible: value should be one of the following
-		"rockchip,rk3288-vpu";
-		"rockchip,rk3328-vpu";
-		"rockchip,rk3399-vpu";
-- interrupts: encoding and decoding interrupt specifiers
-- interrupt-names: should be
-		"vepu", "vdpu" on RK3288 and RK3399,
-		"vdpu" on RK3328.
-- clocks: phandle to VPU aclk, hclk clocks
-- clock-names: should be "aclk" and "hclk"
-- power-domains: phandle to power domain node
-- iommus: phandle to a iommu node
-
-Example:
-SoC-specific DT entry:
-	vpu: video-codec@ff9a0000 {
-		compatible = "rockchip,rk3288-vpu";
-		reg = <0x0 0xff9a0000 0x0 0x800>;
-		interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
-			     <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
-		interrupt-names = "vepu", "vdpu";
-		clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
-		clock-names = "aclk", "hclk";
-		power-domains = <&power RK3288_PD_VIDEO>;
-		iommus = <&vpu_mmu>;
-	};
-
-	vpu: video-codec@ff350000 {
-		compatible = "rockchip,rk3328-vpu";
-		reg = <0x0 0xff350000 0x0 0x800>;
-		interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
-		interrupt-names = "vdpu";
-		clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
-		clock-names = "aclk", "hclk";
-		power-domains = <&power RK3328_PD_VPU>;
-		iommus = <&vpu_mmu>;
-	};
Documentation/devicetree/bindings/media/rockchip-vpu.yaml new file +75 -0

75 lines not on this page · raw message

MAINTAINERS +1 -1
index a480cec62..ce80b22cf 100644
@@ -14374,7 +14374,7 @@ M:	Ezequiel Garcia <ezequiel-ZGY8ohtN/[email protected]>
 L:	[email protected]
 S:	Maintained
 F:	drivers/staging/media/hantro/
-F:	Documentation/devicetree/bindings/media/rockchip-vpu.txt
+F:	Documentation/devicetree/bindings/media/rockchip-vpu.yaml
 
 ROCKER DRIVER
 M:	Jiri Pirko <[email protected]>
Signature · 1 line
2.11.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Johan Jonker

Current dts files for Rockchip with 'vpu' nodes are manually verified. In order to automate this process rockchip-vpu.txt has to be converted to yaml.

Changed:
Add missing reg property

Quoted 9 lines
---
 .../devicetree/bindings/media/rockchip-vpu.txt     | 43 -------------
 .../devicetree/bindings/media/rockchip-vpu.yaml    | 75 ++++++++++++++++++++++
 MAINTAINERS                                        |  2 +-
 3 files changed, 76 insertions(+), 44 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/media/rockchip-vpu.txt
 create mode 100644 Documentation/devicetree/bindings/media/rockchip-vpu.yaml