arm64: dts: rockchip: Add Hantro encoder node to rk356x
authorNicolas Frattaroli <frattaroli.nicolas@gmail.com>
Sun, 12 Jun 2022 15:53:46 +0000 (17:53 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 9 Sep 2022 23:07:59 +0000 (01:07 +0200)
The RK3566 and RK3568 come with a dedicated Hantro instance solely for
encoding. This patch adds a node for this to the device tree, along with
a node for its MMU.

Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Link: https://lore.kernel.org/r/20220612155346.16288-4-frattaroli.nicolas@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk356x.dtsi

index 3517971..fd903e6 100644 (file)
                #iommu-cells = <0>;
        };
 
+       vepu: video-codec@fdee0000 {
+               compatible = "rockchip,rk3568-vepu";
+               reg = <0x0 0xfdee0000 0x0 0x800>;
+               interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru ACLK_JENC>, <&cru HCLK_JENC>;
+               clock-names = "aclk", "hclk";
+               iommus = <&vepu_mmu>;
+               power-domains = <&power RK3568_PD_RGA>;
+       };
+
+       vepu_mmu: iommu@fdee0800 {
+               compatible = "rockchip,rk3568-iommu";
+               reg = <0x0 0xfdee0800 0x0 0x40>;
+               interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&cru ACLK_JENC>, <&cru HCLK_JENC>;
+               clock-names = "aclk", "iface";
+               power-domains = <&power RK3568_PD_RGA>;
+               #iommu-cells = <0>;
+       };
+
        sdmmc2: mmc@fe000000 {
                compatible = "rockchip,rk3568-dw-mshc", "rockchip,rk3288-dw-mshc";
                reg = <0x0 0xfe000000 0x0 0x4000>;