From: Randy Li Date: Wed, 12 Apr 2017 02:44:33 +0000 (+0800) Subject: arm64: dts: rockchip: add video decoder nodes on rk3328 X-Git-Tag: release-20171130_firefly~4^2~436 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c1ac5c0b586dc66efb6f82d55825cccb992775e5;p=firefly-linux-kernel-4.4.55.git arm64: dts: rockchip: add video decoder nodes on rk3328 Jung and I meet some problem the video decoder, so we just release the VDPU standalone this time. It seems that the iommu can't attach to two different IP at the same time. Change-Id: I24d73cd5ab2c3d32da6ef29661061c7fda9186f2 Signed-off-by: Randy Li --- diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index 56993996ed17..e9182015969b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3328.dtsi @@ -621,6 +621,61 @@ }; }; + vpu_service: vpu-service@ff350000 { + compatible = "rockchip,vpu_service"; + reg = <0x0 0xff350000 0x0 0x800>; + interrupts = ; + interrupt-names = "irq_dec"; + resets = <&cru SRST_VCODEC_A>, <&cru SRST_VCODEC_H>; + reset-names = "video_a", "video_h"; + clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; + clock-names = "aclk_vcodec", "hclk_vcodec"; + rockchip,grf = <&grf>; + iommus = <&vpu_mmu>; + allocator = <1>; + status = "disabled"; + }; + + vpu_mmu: iommu@ff350800 { + compatible = "rockchip,iommu"; + reg = <0x0 0xff350800 0x0 0x40>; + interrupts = ; + interrupt-names = "vpu_mmu"; + clock-names = "aclk", "hclk"; + clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; + #iommu-cells = <0>; + }; + + rkvdec: rkvdec@ff36000 { + compatible = "rockchip,rkvdec"; + reg = <0x0 0xff360000 0x0 0x400>; + interrupts = ; + interrupt-names = "irq_dec"; + clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>, + <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>; + clock-names = "aclk_vcodec", "hclk_vcodec", "clk_cabac", + "clk_core"; + resets = <&cru SRST_VDEC_A>, <&cru SRST_VDEC_H>, + <&cru SRST_VDEC_NIU_A>, <&cru SRST_VDEC_NIU_H>, + <&cru SRST_VDEC_CABAC>, <&cru SRST_VDEC_CORE>; + reset-names = "video_a", "video_h", "niu_a", "niu_h", + "cabac", "video"; + rockchip,grf = <&grf>; + iommus = <&rkvdec_mmu>; + allocator = <1>; + status = "disabled"; + }; + + rkvdec_mmu: iommu@ff360480 { + compatible = "rockchip,iommu"; + reg = <0x0 0xff360480 0x0 0x40>, <0x0 0xff3604c0 0x0 0x40>; + interrupts = ; + interrupt-names = "rkvdec_mmu"; + clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>; + clock-names = "aclk_vcodec", "hclk_vcodec"; + #iommu-cells = <0>; + }; + vop: vop@ff370000 { compatible = "rockchip,rk3328-vop"; reg = <0x0 0xff370000 0x0 0x3efc>;