From patchwork Mon Feb 22 13:28:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 385779 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1273003jap; Mon, 22 Feb 2021 05:29:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSNXiHDuiCY/DbokhUhVEwim5EhTt4ZTb1qa1UYp+lxhxHZ6mXS8iccXZHsn9thZEHBCL/ X-Received: by 2002:aa7:df0a:: with SMTP id c10mr22560541edy.12.1614000570014; Mon, 22 Feb 2021 05:29:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614000570; cv=none; d=google.com; s=arc-20160816; b=Zjcj+qCLs5ethJekA9/A9orSiGdPucsWv+EYaUO3vOMHYIun5R/YALmN4vl8IEVCnF Z1w3POwQHuGp66IgLejHzljzhCvLgyngGDZpmfVHPPEX321qZj9c15C2OpI/WJvGy5L9 2suIShpXGuB4pZ9VxcJJkTLZs9/YSUi/vErBYfRoxlHQl3moYo2M4RRPTip0ZK1Q7caI uYa6mVkZE+Is+92jLxa2q469aJz1DDXAk/y72sZprCNMwEKyERJmu6RK5xztN6IJ9rTZ poFwCn4hOFXOJwmCqroOviYJ8Ui5WypBHi2m1U98Quy640VwMU+H/6riIn9mzRv8sXPx tmVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kRfV3hfQKkV0JmhY14xIQXKr8DaLA+3gSz4spFlJxTo=; b=0aJUWfYVPi863MiSe4F8aqI1mT0KaZ6tvxc7/Pn+jR4LrOeiFaUZA2vjFAbAFEThtq CEq7dH7DO0HxstxCh6T7gZ+i6cCzm+DmWBfXszAqSWXn6ow31CU6Pva8JAp1ETAtRDbq A9Fe4bgyIsLmanKNVosJVVrE5ysdNIEttCiEKA/Hglp1wU3EAIATAjiXgsSGyCKV+PiA 6538Ts1ybP35hz6a/1vF94cCEdpuXUOR18st40V9VTa6m9dwr2phJgPY9YkGwsbDa9zD 0u53lzTmWlC86/Fw+6eyBUhe1GhWcmVxhWw7rCED+z/Tb0i3wbNzEfWUwjmUh5Br35GG P3gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bdyAHoZF; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 z3si11060543eja.575.2021.02.22.05.29.29; Mon, 22 Feb 2021 05:29:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=bdyAHoZF; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S231186AbhBVN26 (ORCPT + 16 others); Mon, 22 Feb 2021 08:28:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231849AbhBVN1y (ORCPT ); Mon, 22 Feb 2021 08:27:54 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CF92C061797 for ; Mon, 22 Feb 2021 05:26:59 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id l30so3392064wrb.12 for ; Mon, 22 Feb 2021 05:26:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kRfV3hfQKkV0JmhY14xIQXKr8DaLA+3gSz4spFlJxTo=; b=bdyAHoZFEtYAZMYMT7f7v+2NVLl6gqRn541+ejwo3t/AFjmO2iiyT8s1VAjmvMJguw 72jL77tHS4P5tZ4G6na07GQ8m8SqcU7t/7mi/O19EJzgcLwmONNAOVasx13m7XFTw7YQ MWp+WpxSQbr8PIE0wsF+/jeDSgB4pTPx84DXg3vsFIUzNFQu61z1HT6HG2Y0tM3MqZDx UCIWvtxQuhg4ML/RZPBbaoHON4BVQ+qjLUvOhFc9cNVj7f628P793jbb+KlBtorxT6Ru Q5niSl+T6mYfDYjHtv+2mZKvQ+SCNrGc6gtWk+Yo/EEuOoUCDm2mHyBE2QB4k1uddTBD RPCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kRfV3hfQKkV0JmhY14xIQXKr8DaLA+3gSz4spFlJxTo=; b=mIy/gGl3SGWZanGEl1hZh96iZBsbSrI876uTLHq1dsj4ZlqTUmrapcwVjJWcS2bLjZ RnAdxJvkdw7H6zEmX25nXoIowF8+7Y0oxAIknCLCO5628SM3XpKfXAhKjU6conVKUmtb WQSEbcCEB6THcZqc9odQpaLdXAXgC3foDzsw8YIjHuSWXwGBjCtSxjp/osJfl7ozsJnH PE/0prYOiFeIGn+SfHVy+hQTVKS1wB9pra6NDgctrDmXR24EmXhMwrIzOGXiy/HXc+YT WPrBH/vyffxLqMvx0dRMYpuJy0OynIsipihub/DZ/hoZV/cWQ3pu/UTzR7lN9uEG8K8J tzpw== X-Gm-Message-State: AOAM531puP9tLS9d5oNCpoPECQtH8Rl5YPSKlkb9Zx/DAGstRDjEPNr1 ATSxxInEr8sT78pevg50COt0rg== X-Received: by 2002:adf:b611:: with SMTP id f17mr21010880wre.8.1614000417860; Mon, 22 Feb 2021 05:26:57 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id t7sm3079918wmq.44.2021.02.22.05.26.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 05:26:57 -0800 (PST) From: Bryan O'Donoghue To: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, stanimir.varbanov@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org Cc: bryan.odonoghue@linaro.org, jonathan@marek.ca, dikshita@qti.qualcomm.com Subject: [PATCH v2 3/3] arm64: dts: qcom: sm8250: Add venus DT node Date: Mon, 22 Feb 2021 13:28:17 +0000 Message-Id: <20210222132817.1807788-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210222132817.1807788-1-bryan.odonoghue@linaro.org> References: <20210222132817.1807788-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add DT entries for the sm8250 venus encoder/decoder. Co-developed-by: Jonathan Marek Signed-off-by: Jonathan Marek Co-developed-by: Dikshita Agarwal Signed-off-by: Dikshita Agarwal Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) -- 2.29.2 Reported-by: kernel test robot Tested-by: Dmitry Baryshkov diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 3639792411ce..6b6993995eca 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -14,6 +14,7 @@ #include #include #include +#include / { interrupt-parent = <&intc>; @@ -1811,6 +1812,65 @@ usb_2_dwc3: dwc3@a800000 { }; }; + venus: video-codec@aa00000 { + compatible = "qcom,sm8250-venus"; + reg = <0 0x0aa00000 0 0x100000>; + interrupts = ; + power-domains = <&videocc MVS0C_GDSC>, + <&videocc MVS0_GDSC>, + <&rpmhpd SM8250_MX>; + power-domain-names = "venus", "vcodec0", "mx"; + operating-points-v2 = <&venus_opp_table>; + + clocks = <&gcc GCC_VIDEO_AXI0_CLK>, + <&videocc VIDEO_CC_MVS0C_CLK>, + <&videocc VIDEO_CC_MVS0_CLK>; + clock-names = "iface", "core", "vcodec0_core"; + + interconnects = <&gem_noc MASTER_AMPSS_M0 &config_noc SLAVE_VENUS_CFG>, + <&mmss_noc MASTER_VIDEO_P0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "cpu-cfg", "video-mem"; + + iommus = <&apps_smmu 0x2100 0x0400>; + memory-region = <&video_mem>; + + resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>, + <&videocc VIDEO_CC_MVS0C_CLK_ARES>; + reset-names = "bus", "core"; + + video-decoder { + compatible = "venus-decoder"; + }; + + video-encoder { + compatible = "venus-encoder"; + }; + + venus_opp_table: venus-opp-table { + compatible = "operating-points-v2"; + + opp-720000000 { + opp-hz = /bits/ 64 <720000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-1014000000 { + opp-hz = /bits/ 64 <1014000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-1098000000 { + opp-hz = /bits/ 64 <1098000000>; + required-opps = <&rpmhpd_opp_svs_l1>; + }; + + opp-1332000000 { + opp-hz = /bits/ 64 <1332000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + }; + videocc: clock-controller@abf0000 { compatible = "qcom,sm8250-videocc"; reg = <0 0x0abf0000 0 0x10000>;