Skip to content

Commit db3fc8f

Browse files
knaerzchemmind
authored andcommitted
ARM: dts: rockchip: add vpu nodes for RK3066 and RK3188
Add the vpu node to the common rk3xxx.dtsi and only the powerdomain property to the SoC specific device trees. Signed-off-by: Alex Bee <knaerzche@gmail.com> Link: https://lore.kernel.org/r/20210527154455.358869-12-knaerzche@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent 9d34d4a commit db3fc8f

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

arch/arm/boot/dts/rk3066a.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,10 @@
868868
pinctrl-0 = <&uart3_xfer>;
869869
};
870870

871+
&vpu {
872+
power-domains = <&power RK3066_PD_VIDEO>;
873+
};
874+
871875
&wdt {
872876
compatible = "rockchip,rk3066-wdt", "snps,dw-wdt";
873877
};

arch/arm/boot/dts/rk3188.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,11 @@
801801
pinctrl-0 = <&uart3_xfer>;
802802
};
803803

804+
&vpu {
805+
compatible = "rockchip,rk3188-vpu", "rockchip,rk3066-vpu";
806+
power-domains = <&power RK3188_PD_VIDEO>;
807+
};
808+
804809
&wdt {
805810
compatible = "rockchip,rk3188-wdt", "snps,dw-wdt";
806811
};

arch/arm/boot/dts/rk3xxx.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@
4747
status = "disabled";
4848
};
4949

50+
vpu: video-codec@10104000 {
51+
compatible = "rockchip,rk3066-vpu";
52+
reg = <0x10104000 0x800>;
53+
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
54+
<GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
55+
interrupt-names = "vepu", "vdpu";
56+
clocks = <&cru ACLK_VDPU>, <&cru HCLK_VDPU>,
57+
<&cru ACLK_VEPU>, <&cru HCLK_VEPU>;
58+
clock-names = "aclk_vdpu", "hclk_vdpu",
59+
"aclk_vepu", "hclk_vepu";
60+
};
61+
5062
L2: cache-controller@10138000 {
5163
compatible = "arm,pl310-cache";
5264
reg = <0x10138000 0x1000>;

0 commit comments

Comments
 (0)