Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2413930pxb; Mon, 20 Sep 2021 21:55:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWFbEkecTasoOrjB1drUS31lSgsL88jjxuUhvf+uIXkd2cDrye87FWSDbg/BgKDu5W3H2U X-Received: by 2002:aa7:c2cb:: with SMTP id m11mr33125967edp.150.1632200115770; Mon, 20 Sep 2021 21:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632200115; cv=none; d=google.com; s=arc-20160816; b=s0j89DyM2Iif19Qqx6XvVmIBT+DgTYOjBkuTqo9CqZ7XVAXbV6n9O0aB/cLcstCJYy SL+bZRd4aPJ75GDhhNi/MIfBRTHzBR+y2J0XAQeZk8wmkxbNbgn/pnjsxa8Rsw8OQHyD WwP//PTNEEk7pJ/SPm69w4jnbazhGR+ptWxWOeg2hBWFSsjHPAW9wRt5KZbQ946btxSO Yh4HvYs0SRPtJzKWZEQkIxe3ksYZSWDGThy1uq/L3msVoMz60gSNBqJRZZXhYfCBIgZD IKl3IvBLrextO0q8Wv5Pw721KNRUa6YxUZo6EfOrImulF3hFRDqauiF3UV7xQxyVLejS 1OFg== 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=3PY9pItRRA3m+TXANDQeOfZw0eMx8qpZk2Au3j1b6QU=; b=wgeYjH2GgQdgvs49esk8po2iIuEl1BoIVwYCWzBfbHTvSmIlx0nGAjsEpWSaFwju7C JUue5n6Gq5/3kkpGYyHVHSwjyQ41X2q9qIWszHRA0bW/wglAm6HEP/kSCwfKPCsXqfKr ZM//SCXBdqLRH7vcyOdh6zZyab73rSmpQ0/0yu5eA4I/QaftO0N5Zed6z7QyF/6zdAeF S99sxjhL3TkFQEbULkzJFTr86VuZ/KzqH2b2srWjYje7yZm1Gc9rbsRi1pbkFaTD/oCC D09iX4Yrz0dEH6xWy6v7m1I4zZJVNRWzKkZe1mrJhZvrGRYOa+bmn3Wx9XPEokS1rF/n 9CYw== 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 v8si4292081ejv.118.2021.09.20.21.54.51; Mon, 20 Sep 2021 21:55:15 -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 S230000AbhIUEwX (ORCPT + 99 others); Tue, 21 Sep 2021 00:52:23 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:50737 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbhIUEwV (ORCPT ); Tue, 21 Sep 2021 00:52:21 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 20 Sep 2021 21:50:50 -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; 20 Sep 2021 21:50:48 -0700 X-QCInternal: smtphost Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg02-blr.qualcomm.com with ESMTP; 21 Sep 2021 10:20:32 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id 1C78721D93; Tue, 21 Sep 2021 10:20:31 +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 , Mansur Alisha Shaik Subject: [RESEND PATCH v6] arm64: dts: qcom: sc7280: Add venus DT node Date: Tue, 21 Sep 2021 10:20:29 +0530 Message-Id: <1632199829-25686-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. 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 Signed-off-by: Mansur Alisha Shaik --- 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 a8c274a..f171ababc 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -63,6 +63,11 @@ no-map; reg = <0x0 0x80b00000 0x0 0x100000>; }; + + video_mem: memory@8b200000 { + reg = <0x0 0x8b200000 0x0 0x500000>; + no-map; + }; }; cpus { @@ -1063,6 +1068,76 @@ qcom,bcm-voters = <&apps_bcm_voter>; }; + 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-460000048 { + opp-hz = /bits/ 64 <460000048>; + required-opps = <&rpmhpd_opp_turbo>; + }; + }; + + }; + videocc: clock-controller@aaf0000 { compatible = "qcom,sc7280-videocc"; reg = <0 0xaaf0000 0 0x10000>; -- 2.7.4