Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp872890pxj; Wed, 2 Jun 2021 13:48:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIpCoXOx8H2ocdybiTTO4CSFqyF1uQ3ZyAabP8dXxn8T1HEQSIuu7yZjxF0MA4KlectUSD X-Received: by 2002:a05:6402:177a:: with SMTP id da26mr25956708edb.40.1622666888639; Wed, 02 Jun 2021 13:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622666888; cv=none; d=google.com; s=arc-20160816; b=wtMXHUHs+a1u9t9/Jm7U9Oe4Du3eRu+yx4L2gsQErpAL6HE6oWkMNIjj9ZTDceaFta XccVmW8gY45NGgJ6uwFUYLtNaE9sWVxjeaff2mbzL4N8734RS+AtW6j0A79LaFfxTT0f c98dMSzMZaUUV7/LfUr2lIFoPh/FkDJXjnePhWOBosln0u3yf/unkfWBGNO737T7/s44 Vuvc/RiAI/jSK6MeCcLONraU68GD7j3uzgaEfBubZ79/z+sEDNuPv3Z2YEY0IKr2uo83 UzEvmV/AnLIz6E0Td3IldYGshHrQX978O/oslpyCDsnMzc3K42EDFjV917Up8xHJlfI7 n1pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=m11y4i1SvujGuRzAdjBSm08F3vbFRf7B2NZgAGBozGg=; b=c6tu5Eji38V67BvdrMRSjD5fZrkTdzqNCDOU3gKHbOE3NBfXb8+6AB8zgcNPah2nOJ dWuBO2vY7lvxdgvp+v4Qn1gsHeJQm1qWCB/4UyZ0BBEmACrI/8KDathqkZbI4L5zE+R1 yheMnfdS8a+n459SU+TI5djy9dHMtvc79NPurFUJBdHqrWdbrh/Ne+sl2NxLaOD0lRJc qIhZCmuRg6npVGsRpgS5QBYMuAFCZE5P89LOJ391u5eI1eKv42fZ589CYy/1oysLcPbo 8+ZPJvqeze0Te3b+O0mvjGDSLHbr91L/4qMZ+iq82eOODL0ZHuRoVFMMbY1hBdYNIDXV omdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RX5rlD+C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si652770edr.335.2021.06.02.13.47.45; Wed, 02 Jun 2021 13:48:08 -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; dkim=pass header.i=@linaro.org header.s=google header.b=RX5rlD+C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229635AbhFBUp4 (ORCPT + 99 others); Wed, 2 Jun 2021 16:45:56 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:33430 "EHLO mail-ej1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbhFBUp4 (ORCPT ); Wed, 2 Jun 2021 16:45:56 -0400 Received: by mail-ej1-f47.google.com with SMTP id g20so5908747ejt.0 for ; Wed, 02 Jun 2021 13:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=m11y4i1SvujGuRzAdjBSm08F3vbFRf7B2NZgAGBozGg=; b=RX5rlD+C4/B8bJewy4253z4LESQmaLz1GAHGt55FYSpDA/jDWJciy4Yd62p+3UiDpe QA4WhZbDPolAp/wjlJvVy18gZ8IW0FpjsEwEj/IpPOjcRaj8hi0xz22+i+xWLifDUXvn LZAsc5BxufYNKSnLa0v+w4y2Z87pCrnYK0dLh4SDFruhk5ginR4Sk7btgTNbQ5c+gPfN ukoC0PnhDBl23h+LMZitJJN2q56IoPLCCDmxWZeO6+Ns4teAAPvYW1tgG+ro7INrZF9H EZd5aS+pjSqcaFXbtmNWD8Qrjjxk390HSsYVhMqjWUiWfzOzPT3eDQo+kFienlpMQNNZ 9+Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=m11y4i1SvujGuRzAdjBSm08F3vbFRf7B2NZgAGBozGg=; b=QSxJ1vNVBHPKF1tPQXpeLIFLVyIQLjpzt4sypxbxZEoiO315+Y8oFPkm5fCqebkoAp fIw0IH9nEJkzvjEcx+vvLxF+IjqLhfcL8YXZgNFfJ0rVRRoiN/IBvxkmpGkns1r8ULU5 1WaqFHJhLE698gyS9TTgiDaIUjX3yjwdGtmpylI7IIkYxYOovcH4r90tukvXrhzY9sVe wR32r8zU8j6EayTBcHKdNW/yi6tM4okOsLjV20yjRzuJyloVcwYxiLEYG42Sui2UILA1 8Ud0jDeCFcDlEoVijWns5Z32EfpI8MRD2Dr34b2fJekwbWG/zdJJ/+77Z8jm85RBSFYY L9Fg== X-Gm-Message-State: AOAM532hKG7KjONn+KdCFQl9WsUK2MqsRicAP0brrqEjJsGlamcCm/Mp TNU0sE7iA3CM3UU5Sjrue7kW9w== X-Received: by 2002:a17:906:b4b:: with SMTP id v11mr13129300ejg.359.1622666592047; Wed, 02 Jun 2021 13:43:12 -0700 (PDT) Received: from [192.168.1.28] (hst-221-39.medicom.bg. [84.238.221.39]) by smtp.googlemail.com with ESMTPSA id y1sm510485ejl.7.2021.06.02.13.43.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Jun 2021 13:43:11 -0700 (PDT) Subject: Re: [PATCH v2] arm64: dts: qcom: sc7280: Add venus DT node To: Dikshita Agarwal , 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 References: <1622647200-1487-1-git-send-email-dikshita@codeaurora.org> From: Stanimir Varbanov Message-ID: <134691c7-e939-879f-c897-befc4b71268b@linaro.org> Date: Wed, 2 Jun 2021 23:43:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1622647200-1487-1-git-send-email-dikshita@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/2/21 6:20 PM, Dikshita Agarwal wrote: > 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>; > + }; The assumption for all Qualcomm SoCs was that the firmware will be loaded by TZ, i.e. the platform has TZ firmware. I'd like to continue on that assumption, and propose to move video-firmware subnode into appropriate board dts file, in this case sc7280-idp.dts. -- regards, Stan