Skip to content

Commit

Permalink
arm64: dts: rockchip: add vpu for rk3366 android7.1
Browse files Browse the repository at this point in the history
Change-Id: I798a6518a2a74fe07ae2bb82abaca2da501ae07b
Signed-off-by: Zorro Liu <[email protected]>
  • Loading branch information
liuyx1314 authored and rkhuangtao committed Jul 19, 2017
1 parent ecac203 commit 11c8364
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
24 changes: 24 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3366-android.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,34 @@
};
};

&iep_mmu {
status = "okay";
};

&iep {
status = "okay";
};

&rkvdec {
status = "okay";
};

&vdec_mmu {
status = "okay";
};

&vopb_mmu {
status = "okay";
};

&vopb {
status = "okay";
};

&vpu_mmu {
status = "okay";
};

&vpu {
status = "okay";
};
40 changes: 40 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3366.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -893,14 +893,25 @@
iep: iep@ff900000 {
compatible = "rockchip,iep";
iommu_enabled = <1>;
iommus = <&iep_mmu>;
reg = <0x0 0xff900000 0x0 0x800>;
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
clock-names = "aclk_iep", "hclk_iep";
allocator = <1>;
version = <2>;
status = "disabled";
};

iep_mmu: iommu@ff900800 {
compatible = "rockchip,iommu";
reg = <0x0 0xff900800 0x0 0x100>;
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "iep_mmu";
#iommu-cells = <0>;
status = "disabled";
};

rga: rga@ff920000 {
compatible = "rockchip,rga2";
dev_mode = <1>;
Expand Down Expand Up @@ -1015,6 +1026,7 @@
compatible = "rockchip,vpu_service";
rockchip,grf = <&grf>;
iommu_enabled = <1>;
iommus = <&vpu_mmu>;
reg = <0x0 0xff9a0000 0x0 0x800>;
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Expand All @@ -1025,12 +1037,26 @@
reset-names = "video_h", "video_a";
name = "vpu_service";
dev_mode = <0>;
/* 0 means ion, 1 means drm */
allocator = <1>;
status = "disabled";
};

vpu_mmu: iommu@ff9a0800 {
compatible = "rockchip,iommu";
reg = <0x0 0xff9a0800 0x0 0x100>;
interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "vpu_mmu";
clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
clock-names = "aclk", "hclk";
#iommu-cells = <0>;
status = "disabled";
};

rkvdec: rkvdec@ff9b0000 {
compatible = "rockchip,rkvdec";
rockchip,grf = <&grf>;
iommus = <&vdec_mmu>;
iommu_enabled = <1>;
reg = <0x0 0xff9b0000 0x0 0x400>;
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
Expand All @@ -1041,6 +1067,20 @@
reset-names = "video_h", "video_a";
dev_mode = <2>;
name = "rkvdec";
/* 0 means ion, 1 means drm */
allocator = <1>;
status = "disabled";
};

vdec_mmu: iommu@ff9b0480 {
compatible = "rockchip,iommu";
reg = <0x0 0xff9b0480 0x0 0x40>,
<0x0 0xff9b04c0 0x0 0x40>;
interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "vdec_mmu";
clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>;
clock-names = "aclk", "hclk";
#iommu-cells = <0>;
status = "disabled";
};

Expand Down

0 comments on commit 11c8364

Please sign in to comment.