Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2215504pxb; Fri, 8 Oct 2021 03:24:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS32agpYsqMZGtzd0qa1TU5u2SGASkJFoNrASMzCyaqa5By3WGSf+1e6K7oqedS93/uwii X-Received: by 2002:a63:710d:: with SMTP id m13mr3951652pgc.115.1633688672452; Fri, 08 Oct 2021 03:24:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633688672; cv=none; d=google.com; s=arc-20160816; b=Lwy8xIUoPPgLp18jbqQLR0i786VCISQ4WtJmRnBWVIsgZuxdLLR1x6F13FHamryKtg 452NxsS3ndLS96ef/CCaF8DkSnBfc52Z+8LZJb29V8vRnyBqqPT3ZnKI6sWul0FVvOzG aMapdL/bj6FtyReL8XK6eBlVYD1YKMQzuqlbGvGa/8o3ag5Y+XLsra8R/ItcyklLlDYn xoOB+yK2oRRdHpyU60WVhswvsGSBBmBn1AH8090HUvJGwqXC+BC7xkI0tf1oWbdx+M98 egt2gq+SXbJXwkeq0xuBzdAXG6s4ob9TiOjp4kZFZ4o5X0pO3KyQ+aTPMbr1rGgDnErb G9qw== 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; bh=cFyOw3O0ubgLFvuYVNAVyk81DjkcxBC8Yrrs1IaPP50=; b=HVb3RH8mUi+OdfpF0UMNJWPZ5n9Cd0odeGm5b1GYzcizO/Yyu5nXpiCkV3dVsBUBSo id2jB2VzizjsJPYQx0amXAX7eb6xWCmR+eWCyKpuGubvSkUKzS+jRDKnVCNaXuMHCvTQ oYGY9UCgrjxcWAl+eabstU3t792kYBcsZ3UJB5rLR4H/8Wr+bTb6VcAr0QGNwqgeEkil sPxveQSFNl256rXHqEZ3mH8ub78GbquctMk092cXD2YPLhTa4OCjy89gZCPQ6WGbECDS UaaoaJVk9ciHySD6ayZ1ICCzly4KWrPsAF5QvSc+e4pM/RLGiJrn7VqaciXlXThmsU8Y mo8Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si2690928plo.18.2021.10.08.03.24.19; Fri, 08 Oct 2021 03:24: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239868AbhJHKX1 (ORCPT + 99 others); Fri, 8 Oct 2021 06:23:27 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46284 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239592AbhJHKXV (ORCPT ); Fri, 8 Oct 2021 06:23:21 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 7DD6D1F4575F From: AngeloGioacchino Del Regno To: bjorn.andersson@linaro.org Cc: agross@kernel.org, stanimir.varbanov@linaro.org, mchehab@kernel.org, robh+dt@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, AngeloGioacchino Del Regno Subject: [PATCH 3/3] arm64: dts: qcom: sdm630: Add disabled Venus support Date: Fri, 8 Oct 2021 12:21:19 +0200 Message-Id: <20211008102119.268869-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211008102119.268869-1-angelogioacchino.delregno@collabora.com> References: <20211008102119.268869-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the Venus video decoder/encoder but leave it disabled by default; it is expected to eventually get enabled in each machine specific DT, where required. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index 9c7f87e42fcc..deb0be8fdee2 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -2020,6 +2020,57 @@ cci_i2c1: i2c-bus@1 { }; }; + venus: video-codec@cc00000 { + compatible = "qcom,sdm660-venus"; + reg = <0x0cc00000 0xff000>; + clocks = <&mmcc VIDEO_CORE_CLK>, + <&mmcc VIDEO_AHB_CLK>, + <&mmcc VIDEO_AXI_CLK>, + <&mmcc THROTTLE_VIDEO_AXI_CLK>; + clock-names = "core", "iface", "bus", "bus_throttle"; + interconnects = <&gnoc 0 &mnoc 13>, + <&mnoc 4 &bimc 5>; + interconnect-names = "cpu-cfg", "video-mem"; + interrupts = ; + iommus = <&mmss_smmu 0x400>, + <&mmss_smmu 0x401>, + <&mmss_smmu 0x40a>, + <&mmss_smmu 0x407>, + <&mmss_smmu 0x40e>, + <&mmss_smmu 0x40f>, + <&mmss_smmu 0x408>, + <&mmss_smmu 0x409>, + <&mmss_smmu 0x40b>, + <&mmss_smmu 0x40c>, + <&mmss_smmu 0x40d>, + <&mmss_smmu 0x410>, + <&mmss_smmu 0x421>, + <&mmss_smmu 0x428>, + <&mmss_smmu 0x429>, + <&mmss_smmu 0x42b>, + <&mmss_smmu 0x42c>, + <&mmss_smmu 0x42d>, + <&mmss_smmu 0x411>, + <&mmss_smmu 0x431>; + memory-region = <&venus_region>; + power-domains = <&mmcc VENUS_GDSC>; + status = "disabled"; + + video-decoder { + compatible = "venus-decoder"; + clocks = <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "vcodec0_core"; + power-domains = <&mmcc VENUS_CORE0_GDSC>; + }; + + video-encoder { + compatible = "venus-encoder"; + clocks = <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "vcodec0_core"; + power-domains = <&mmcc VENUS_CORE0_GDSC>; + }; + }; + mmss_smmu: iommu@cd00000 { compatible = "qcom,sdm630-smmu-v2", "qcom,smmu-v2"; reg = <0x0cd00000 0x40000>; -- 2.33.0