Skip to content

Commit 36e9534

Browse files
knaerzchemmind
authored andcommitted
ARM: dts: rockchip: add vpu and vdec node for RK322x
The VPU and the VDEC IP block of RK322x are the same as RK3399 has and the drivers can be used as-is. Add the respective nodes to the device tree. Signed-off-by: Alex Bee <knaerzche@gmail.com> Link: https://lore.kernel.org/r/20210527154455.358869-13-knaerzche@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent db3fc8f commit 36e9534

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

arch/arm/boot/dts/rk322x.dtsi

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,18 @@
610610
status = "disabled";
611611
};
612612

613+
vpu: video-codec@20020000 {
614+
compatible = "rockchip,rk3228-vpu", "rockchip,rk3399-vpu";
615+
reg = <0x20020000 0x800>;
616+
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
617+
<GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
618+
interrupt-names = "vepu", "vdpu";
619+
clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>;
620+
clock-names = "aclk", "hclk";
621+
iommus = <&vpu_mmu>;
622+
power-domains = <&power RK3228_PD_VPU>;
623+
};
624+
613625
vpu_mmu: iommu@20020800 {
614626
compatible = "rockchip,iommu";
615627
reg = <0x20020800 0x100>;
@@ -618,7 +630,19 @@
618630
clock-names = "aclk", "iface";
619631
power-domains = <&power RK3228_PD_VPU>;
620632
#iommu-cells = <0>;
621-
status = "disabled";
633+
};
634+
635+
vdec: video-codec@20030000 {
636+
compatible = "rockchip,rk3228-vdec", "rockchip,rk3399-vdec";
637+
reg = <0x20030000 0x480>;
638+
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
639+
clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,
640+
<&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>;
641+
clock-names = "axi", "ahb", "cabac", "core";
642+
assigned-clocks = <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>;
643+
assigned-clock-rates = <300000000>, <300000000>;
644+
iommus = <&vdec_mmu>;
645+
power-domains = <&power RK3228_PD_RKVDEC>;
622646
};
623647

624648
vdec_mmu: iommu@20030480 {
@@ -629,7 +653,6 @@
629653
clock-names = "aclk", "iface";
630654
power-domains = <&power RK3228_PD_RKVDEC>;
631655
#iommu-cells = <0>;
632-
status = "disabled";
633656
};
634657

635658
vop: vop@20050000 {

0 commit comments

Comments
 (0)