Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3016684pxj; Sun, 6 Jun 2021 23:16:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwtdMo91yCA1lMiVJ2blAAZPXq1hxHxmxXqU3T4DRllJlysnHnXxFEzo1I985PGfL8dj2s X-Received: by 2002:a17:906:5f99:: with SMTP id a25mr16362394eju.45.1623046592267; Sun, 06 Jun 2021 23:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623046592; cv=none; d=google.com; s=arc-20160816; b=try2pO2lcYzp/XtUjNOhcXZm8m3pBawqaV81UpT7uPU76HYrfe8lC+SZDVWFZtdPBh TCTBJMdzlGSanjCKMZ1hHia29vYNNxzVR6MwYl7KgJtBbAuZ5wjs3hxmV+qoOs1ZQfMw Zn54GQCU0fKiDQp2U79YW2NDI+B8CWpEbNshdWeE2M3w33ukq6MPlO82ssCzkhSdjo82 ir7GREXqeXdYiKF17KKBhj1sOFD47NrERMxHYspRy9hb+5HQb8tsaP/IM0DCTr/2IFAw 82bYhnu4PAhrIGljBnVwPyNo3HHEctFDuklC2x2XA1ZEBNORHkYdLplOS2WmH0zwPZBM AIyw== 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=vi+HESVZ7upEm4UUPnnKJhqnPFrOQe2xTgYcQkcfXxc=; b=UWzzVYwIRaC7Zat1Nl/j7XPD5S8Ih/UrSDP1/xN6Y/NNV/kws72JCl6WJGQHPIo2OU yU+cahBlH2UniJUAjY2+LWvDSfkvO08Hd1Y2uT5sHv1xatiZ+G+BRzSackBIBAVeCidk Q2XQkEcOQINFVIahXghh1sngeNTEPykFdu0BezVnGwBCg5ruPRfDlCBnGITvwzlsIfhx Xk45Fa4lJjTSh9l1HC1eQ8h6criqTKp9SmBGT11oQMVyqTw3iY2oEGoXkeVaNwucx1bf fgZLK75RvLa9cdWX5bUFOMZZWKDY3zrAwZVxKqLCDv7na/OK5eddtdUHDO45t9YkkQ9A RJFw== 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 a6si10888680ejy.213.2021.06.06.23.16.09; Sun, 06 Jun 2021 23:16:32 -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 S230207AbhFGGOY (ORCPT + 99 others); Mon, 7 Jun 2021 02:14:24 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:37614 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230175AbhFGGOY (ORCPT ); Mon, 7 Jun 2021 02:14:24 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 06 Jun 2021 23:12:33 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 06 Jun 2021 23:12:32 -0700 X-QCInternal: smtphost Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg01-blr.qualcomm.com with ESMTP; 07 Jun 2021 11:42:11 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id AF6EC21A58; Mon, 7 Jun 2021 11:42:09 +0530 (IST) From: Dikshita Agarwal To: david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, stanimir.varbanov@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, Dikshita Agarwal Subject: [PATCH v3] arm64: dts: qcom: sc7280: Add venus DT node Date: Mon, 7 Jun 2021 11:42:07 +0530 Message-Id: <1623046327-1970-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 v2: - removed firmware node. change since v1: - added rpmh power domain and opp table. --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 71 ++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 4c44a52..7b45623 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,72 @@ 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"; + }; + + 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