// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. */ &soc { msm_vidc: qcom,vidc@aa00000 { compatible = "qcom,sm8450-vidc"; status = "okay"; /* IOMMU Config */ #address-cells = <1>; #size-cells = <1>; reg = <0x0aa00000 0xF0000>; interrupts = ; /* Supply */ iris-ctl-supply = <&video_cc_mvs0c_gdsc>; vcodec-supply = <&video_cc_mvs0_gdsc>; /* Clocks */ clocks = <&clock_gcc GCC_VIDEO_AXI0_CLK>, <&clock_videocc VIDEO_CC_MVS0C_CLK>, <&clock_videocc VIDEO_CC_MVS0_CLK>, <&clock_videocc VIDEO_CC_MVS0_CLK_SRC>; clock-names = "gcc_video_axi0", "core_clk", "vcodec_clk", "video_cc_mvs0_clk_src"; /* Bus Interconnects */ interconnects = <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_VENUS_CFG>, <&mc_virt MASTER_LLCC &mc_virt SLAVE_EBI1>, <&mmss_noc MASTER_VIDEO_P0 &gem_noc SLAVE_LLCC>; interconnect-names = "venus-cnoc", "venus-ddr", "venus-llcc"; /* FW load region */ memory-region = <&video_mem>; /* Clock Resets */ resets = <&clock_gcc GCC_VIDEO_AXI0_CLK_ARES>, <&clock_videocc VIDEO_CC_MVS0C_CLK_ARES>; reset-names = "video_axi_reset", "video_core_reset"; /* MMUs */ non_secure_pixel_cb { compatible = "qcom,vidc,cb-ns-pxl"; iommus = <&apps_smmu 0x2187 0x0400>; qcom,iommu-dma-addr-pool = <0x00100000 0xdff00000>; qcom,iommu-faults = "non-fatal", "stall-disable"; qcom,iommu-pagetable = "LLC"; dma-coherent; }; non_secure_cb { compatible = "qcom,vidc,cb-ns"; iommus = <&apps_smmu 0x2180 0x0400>; qcom,iommu-dma-addr-pool = <0x25800000 0xba800000>; qcom,iommu-faults = "non-fatal", "stall-disable"; qcom,iommu-pagetable = "LLC"; dma-coherent; }; secure_non_pixel_cb { compatible = "qcom,vidc,cb-sec-non-pxl"; iommus = <&apps_smmu 0x2184 0x0400>; qcom,iommu-dma-addr-pool = <0x01000000 0x24800000>; qcom,iommu-faults = "non-fatal", "stall-disable"; qcom,iommu-pagetable = "LLC"; qcom,iommu-vmid = <0xB>; /* VMID_CP_NON_PIXEL */ qcom,secure-context-bank; }; secure_bitstream_cb { compatible = "qcom,vidc,cb-sec-bitstream"; iommus = <&apps_smmu 0x2181 0x0404>; qcom,iommu-dma-addr-pool = <0x00500000 0xdfb00000>; qcom,iommu-faults = "non-fatal"; qcom,iommu-pagetable = "LLC"; qcom,iommu-vmid = <0x9>; /* VMID_CP_BITSTREAM */ qcom,secure-context-bank; }; secure_pixel_cb { compatible = "qcom,vidc,cb-sec-pxl"; iommus = <&apps_smmu 0x2183 0x0400>; qcom,iommu-dma-addr-pool = <0x00500000 0xdfb00000>; qcom,iommu-faults = "non-fatal"; qcom,iommu-pagetable = "LLC"; qcom,iommu-vmid = <0xA>; /* VMID_CP_PIXEL */ qcom,secure-context-bank; }; }; };