Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp663198pxj; Wed, 2 Jun 2021 08:22:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzlALma9hy8xU0cTRQUjVNIULpinI2dmo2f0nJmjdUXkstBqI34SXTvc+PgsXuusBH6/cI X-Received: by 2002:a17:906:3a04:: with SMTP id z4mr34684656eje.221.1622647378627; Wed, 02 Jun 2021 08:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622647378; cv=none; d=google.com; s=arc-20160816; b=YnxRP36KHcLOk80WiHWXLJM1qn4HBm7Ufit4f66q/1nFRjTy/EtDX65Lod867nEL6X ZviKb9I6YL5OsL5u8j9lI1858SARQAcsLiODwwe/rQM5g+sM/LqDyMO1ZMBfCBSjssQi EU5+D3eDBBknsFqQOSqRXu9b7RXJ3/SwGaeBborXkjmZuklQD5yFdDAHW6m0Lej3UVWo GQ30LoqH/HOE9XjuTygbr/IOgwxevJNGlPrSc1PW9eZSTpaW0Bw3vjgmCPCCwLvW0Yuh utIMx5WbxbYt2P77xT5Jo/A7GbKpwLUIx0hZedHNYTwSsfDiVdJIOptIDt/1rTZBYGyh lsCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=F/z6WY0wv6WZG8D9e8/6T6Lslpm3Z0eHEnvWmQGcxSQ=; b=ABkz/iiF+WnGnmeySOfQFtypRgCQYnACDoHxeoq5+kAU+7e7ul9cQxDSxPuBNLLWbn 03ZXS5NPuxHbcZZXxZpMlWhfjGcIA3Bw/Bl/42kzCdbc+JmSiBqSiS+qngJF5YMRjuWT PLje0H9lZgXcgPfI9fRKVhhzyaGz5phQs1B7yc311bz3Mufvv90aAApsjvxSZHFXMXbE AfLbv4geSX363J8SEry02cmWSQv3oLipj9OUGWd83FWMs+7h7YjK4L1V+5yGfyJ/Kv1e 6EebWFnmhbsV0K2IN86vFfWNy99IkD5QDGwyelj697bsMwHBjxOm7s09QN7SeTzLifOv KUuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si95616edd.561.2021.06.02.08.22.35; Wed, 02 Jun 2021 08:22:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbhFBPWa (ORCPT + 99 others); Wed, 2 Jun 2021 11:22:30 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:18831 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232425AbhFBPWS (ORCPT ); Wed, 2 Jun 2021 11:22:18 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 02 Jun 2021 08:20:32 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Jun 2021 08:20:31 -0700 X-QCInternal: smtphost Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg02-blr.qualcomm.com with ESMTP; 02 Jun 2021 20:50:06 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id 3B487211A6; Wed, 2 Jun 2021 20:50:05 +0530 (IST) From: Dikshita Agarwal To: andy.gross@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, stanimir.varbanov@linaro.org, Dikshita Agarwal Subject: [PATCH v2] arm64: dts: qcom: sc7280: Add venus DT node Date: Wed, 2 Jun 2021 20:50:00 +0530 Message-Id: <1622647200-1487-1-git-send-email-dikshita@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT entries for the sc7280 venus encoder/decoder. Co-developed-by: Mansur Alisha Shaik Signed-off-by: Dikshita Agarwal change since v1: - added rpmh power domain and opp table. --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 75 ++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 4c44a52..4982f96 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -60,6 +60,11 @@ no-map; reg = <0x0 0x80b00000 0x0 0x100000>; }; + + video_mem: memory@8b200000 { + reg = <0x0 0x8b200000 0x0 0x500000>; + no-map; + }; }; cpus { @@ -850,6 +855,76 @@ interrupts = ; }; + venus: video-codec@0aa00000 { + compatible = "qcom,sc7280-venus"; + reg = <0 0x0aa00000 0 0xd0600>; + interrupts = ; + + clocks = <&videocc VIDEO_CC_MVSC_CORE_CLK>, + <&videocc VIDEO_CC_MVSC_CTL_AXI_CLK>, + <&videocc VIDEO_CC_VENUS_AHB_CLK>, + <&videocc VIDEO_CC_MVS0_CORE_CLK>, + <&videocc VIDEO_CC_MVS0_AXI_CLK>; + clock-names = "core", "bus", "iface", + "vcodec_core", "vcodec_bus"; + + power-domains = <&videocc MVSC_GDSC>, + <&videocc MVS0_GDSC>; + <&rpmhpd SC7280_CX>; + power-domain-names = "venus", "vcodec0", "cx"; + operating-points-v2 = <&venus_opp_table>; + + interconnects = <&gem_noc MASTER_APPSS_PROC 0 &cnoc2 SLAVE_VENUS_CFG 0>, + <&mmss_noc MASTER_VIDEO_P0 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "cpu-cfg", "video-mem"; + + iommus = <&apps_smmu 0x2180 0x20>, + <&apps_smmu 0x2184 0x20>; + memory-region = <&video_mem>; + + video-decoder { + compatible = "venus-decoder"; + }; + + video-encoder { + compatible = "venus-encoder"; + }; + + video-firmware { + iommus = <&apps_smmu 0x21a2 0x0>; + }; + + venus_opp_table: venus-opp-table { + compatible = "operating-points-v2"; + + opp-133330000 { + opp-hz = /bits/ 64 <133330000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-240000000 { + opp-hz = /bits/ 64 <240000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-335000000 { + opp-hz = /bits/ 64 <335000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-424000000 { + opp-hz = /bits/ 64 <424000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + + opp-460000000 { + opp-hz = /bits/ 64 <460000000>; + required-opps = <&rpmhpd_opp_turbo>; + }; + }; + + }; + videocc: clock-controller@aaf0000 { compatible = "qcom,sc7280-videocc"; reg = <0 0xaaf0000 0 0x10000>; -- 2.7.4