dt-bindings: video: mpp: add reset group

Change-Id: Ibffc586265f2cfc390d9fe4941d7cb91bc46bec4
Signed-off-by: Grey Li <grey.li@rock-chips.com>
This commit is contained in:
Grey Li
2019-12-09 15:38:58 +08:00
committed by Tao Huang
parent 4e985204d0
commit 39944a035f
2 changed files with 17 additions and 3 deletions

View File

@@ -18,12 +18,20 @@ Required properties:
"rockchip,rkv-encoder-rv1108",
"rockchip,hevc-encoder-v22",
-rockchip,srv: The pointer of service device node.
- rockchip,srv: The pointer of service device node.
the value must be the name of service device, like <&mpp_srv>.
- rockchip,taskqueue-node: The taskqueue node number of current device working.
the value must between 0 and rockchip,taskqueue-count
- rockchip,resetgroup-node: The resetgroup node number of current reset group.
If two devices have the same reset clk, they should in the same reset group.
the value must between 0 and rockchip,resetgroup-count
- reset-name: The name of reset clk.
If two devices have the same reset clk, the reset-name should stay the same
and add "shared_" prefix.
Example:
DT entry:
@@ -36,11 +44,12 @@ DT entry:
clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
clock-names = "aclk_vcodec", "hclk_vcodec";
resets = <&cru SRST_H_VCODEC>, <&cru SRST_A_VCODEC>;
reset-names = "video_h", "video_a";
reset-names = "shared_video_h", "shared_video_a";
iommus = <&vpu_mmu>;
power-domains = <&power RK3399_PD_VCODEC>;
rockchip,srv = <&mpp_srv>;
rockchip,taskqueue-node = <0>;
rockchip,resetgroup-node = <0>;
status = "disabled";
};
@@ -52,10 +61,11 @@ DT entry:
clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
clock-names = "aclk_vcodec", "hclk_vcodec";
resets = <&cru SRST_H_VCODEC>, <&cru SRST_A_VCODEC>;
reset-names = "video_h", "video_a";
reset-names = "shared_video_h", "shared_video_a";
iommus = <&vpu_mmu>;
rockchip,srv = <&mpp_srv>;
rockchip,taskqueue-node = <0>;
rockchip,resetgroup-node = <0>;
power-domains = <&power RK3399_PD_VCODEC>;
status = "disabled";
};

View File

@@ -6,9 +6,13 @@ Required properties:
- rockchip,taskqueue-count: the value of queue nodes for task running
the value must be between 1 and 8
- rockchip,resetgroup-count: the value of reset clk groups for device reset
the value must be between 1 and 8
Example:
mpp_srv: mpp_srv {
compatible = "rockchip,mpp-service";
rockchip,taskqueue-count = <1>;
rockchip,resetgroup-count = <1>;
status = "disabled";
};