Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4248244pxt; Wed, 11 Aug 2021 01:11:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/BpLuiRsvYEOHdpJsz1mlgMt9wgKnx8AslnBEamJoCrs28rixG5Pb0HaSyYn9FkoCNbOr X-Received: by 2002:aa7:c805:: with SMTP id a5mr9919168edt.23.1628669465366; Wed, 11 Aug 2021 01:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628669465; cv=none; d=google.com; s=arc-20160816; b=aHKo1tPUQJbQOnvUIrcOfo9RGkTMGKucfjl5GM/sMtgTnue0xOQMx7MswU5HyzpjKf OCkkR6ms2eAAOtCXSFBIRmneGE8q5rebrtTRD8t+L/MLPLWWPlnKLoHPzajojk2HBFue JX5zpR4XL1tWZY3jzEwm34XT6GuDGIQpyTx93jGNTIXHlulRgYz2Ve0MXBHpztf8AelP xdRy3fqCxQp4yhp53zKU2NIuA5QEN8fXcMo/MRJFi2pEWYbN9yjvlGxpKysAyk9nciV1 ZjC24HlHAbz9soTErVz28+Z2Wi1rRbCs1mA9Anp6Ui5Ycv8isUIujyIJbDUya3VHGOX/ SH+A== 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=yJVE88KAHdO7cNhf+YVEtBh/2RmlPU3xCSwHOics4FY=; b=LEyHlBleaDYsri5oFfpxBL+qWIt+nLIbCIRIFQjE1q52zsFZjGkXWQlCAhOvXGjxt3 WHf3eRraEQaIXtvgwjiVOhT6464TEXfCMaJRDIzhq6QLH+R8fRn6MHyzXQFds3kj/+5f V+iwM4AXmVF4kt4MH2H4kQkVr/x9rk7t2TDCeCnyr/A7MBYTWL4wkNVNdmXqBtZWgxQC 6szU3NS5bWqaZnXtAZfGBB6QFd26s7t1FTpFguKtO+cmq6k0/3Ie4suiDKCIrsBtouSD q1xh2/5MJHe/HSzdrg+DVEe5PG/Gyr5++iDE7fU0tvNEzgBqaltR3aCYhNL5R5IPWHEA Fj9A== 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 i2si23142401edx.577.2021.08.11.01.10.23; Wed, 11 Aug 2021 01:11:05 -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 S236179AbhHKIJE (ORCPT + 99 others); Wed, 11 Aug 2021 04:09:04 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:9479 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236135AbhHKIFt (ORCPT ); Wed, 11 Aug 2021 04:05:49 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 11 Aug 2021 01:05:25 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 11 Aug 2021 01:05:23 -0700 X-QCInternal: smtphost Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg02-blr.qualcomm.com with ESMTP; 11 Aug 2021 13:35:02 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id EE88021C9C; Wed, 11 Aug 2021 13:35:00 +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 v5] arm64: dts: qcom: sc7280: Add venus DT node Date: Wed, 11 Aug 2021 13:34:50 +0530 Message-Id: <1628669090-15648-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. Change since v4: rebased on latest linux-next tree. this patch depends on [1]. [1] https://patchwork.kernel.org/project/linux-arm-msm/list/?series=529463 Co-developed-by: Mansur Alisha Shaik Signed-off-by: Dikshita Agarwal --- 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 3e96604..88de534 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -73,6 +73,11 @@ reg = <0x0 0x80b00000 0x0 0x100000>; }; + video_mem: memory@8b200000 { + reg = <0x0 0x8b200000 0x0 0x500000>; + no-map; + }; + ipa_fw_mem: memory@8b700000 { reg = <0 0x8b700000 0 0x10000>; no-map; @@ -1398,6 +1403,76 @@ }; }; + venus: video-codec@aa00000 { + 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