Skip to content

Commit 2995b50

Browse files
committed
Merge tag 'v5.14-rockchip-dts32-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/dt
Nodes for the Hantro-based video codecs on rk3036, rk3066, rk3188 and rk322x. * tag 'v5.14-rockchip-dts32-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: ARM: dts: rockchip: add vpu and vdec node for RK322x ARM: dts: rockchip: add vpu nodes for RK3066 and RK3188 ARM: dts: rockchip: add vpu node for RK3036 Link: https://lore.kernel.org/r/4611716.rnzMqkiUVr@diego Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents c21cc3d + 36e9534 commit 2995b50

5 files changed

Lines changed: 67 additions & 2 deletions

File tree

arch/arm/boot/dts/rk3036.dtsi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,27 @@
117117
status = "disabled";
118118
};
119119

120+
vpu: video-codec@10108000 {
121+
compatible = "rockchip,rk3036-vpu";
122+
reg = <0x10108000 0x800>;
123+
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
124+
interrupt-names = "vdpu";
125+
clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
126+
clock-names = "aclk", "hclk";
127+
iommus = <&vpu_mmu>;
128+
power-domains = <&power RK3036_PD_VPU>;
129+
};
130+
131+
vpu_mmu: iommu@10108800 {
132+
compatible = "rockchip,iommu";
133+
reg = <0x10108800 0x100>;
134+
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
135+
clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
136+
clock-names = "aclk", "iface";
137+
power-domains = <&power RK3036_PD_VPU>;
138+
#iommu-cells = <0>;
139+
};
140+
120141
vop: vop@10118000 {
121142
compatible = "rockchip,rk3036-vop";
122143
reg = <0x10118000 0x19c>;

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/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 {

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)