From patchwork Tue Mar 4 13:07:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 14000717 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57A14204F7C for ; Tue, 4 Mar 2025 13:07:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093642; cv=none; b=Qd60BdvcS4dJND3OjkAsfUmjylm2pREhs7o8sANdFUHI3B1woL0Z/UfqvFu0XIiEF1ATET4jotcEpokWN7YJI5UxC07gwfD7aPidCwzpvMWqIjFyHxoR7pE4ekco47MA3yInHIs/zS8OuXta6M79iIrjDkh9Vz3zK4RO9UBMv9M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741093642; c=relaxed/simple; bh=TO/kj9+lLvHOlw6v676cGN2X1xrQoQT6nqKUEG+rBfQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l54M6qJbrOBuT/8PpNe9UPNE4MeiG7bmSuuCaCiWAdo97opf76XBkpbOYrLja8SDO3JdhN/qubhXXOzv9oGTC/0bkeKhk8xOAwsJuXIO7L66e6R9tUpSO00HI/GHupOvyCODIzWDEGMI3EZ3mnd06ZhLqmrsiKb6d6yrq2awXfM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=d6+NaMNL; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="d6+NaMNL" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-43948f77f1aso36400125e9.0 for ; Tue, 04 Mar 2025 05:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741093639; x=1741698439; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Nln3oiv+wCOohYzCVrwCh2whMM1hc+Xd6ZxmtYAIQvg=; b=d6+NaMNL5ZdSTpfsrszfNjt3oZB9Sz7TxOp9XFxjI1WxUvQKqrHWZ1fU8AFsmSJSVN GR34CLe2T5F/1+T3IdwRjSPcw8iq9KmWAU/Hj+XdjpcUeQxDl73PocjucWh1BLfJchsz ZdMhOPbwlePm/Pj7M3Co6AuTxWndKOIidu8nmB5GjuegiCqnrCqxNslUJ6APn87zSUZi oZKhiU3kPzuuwUMNYYnBRd61yjjYhed9WpVTXNvRZu7Dbw+nhtMDqSEiqx6CD/foTPtZ D1J7Y0L8wUK97lBVzbpEYEXiSZ7ikGgk6E1WeBJePUt0fn+AeXWx6FJ16tbw6RFDGAHr C+9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741093639; x=1741698439; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nln3oiv+wCOohYzCVrwCh2whMM1hc+Xd6ZxmtYAIQvg=; b=e/qaDIuhy+x3x9aD8Urgh7mX1FLHGzjmAC+bwe61tWXKEGbxHQeNG2FEUSgnPQPu8S 8WntXoAQOTEjBBSSw5qCF9qjXP6kKcZXHa1N1wstgapUOMQUuqe5bHAHWHfZ6dbTYFHx Z1mNkP3Hm42jYDLKixnljjyKnc3PLsuw+vlJlQYROvwkk4lI3kJRuhzXpmZz3CM+ezKp cvDTAsjEhP/rb9CBKaliDEwh3FD6LDGcc0mUYX8LNPXkRSl6piBa2xwPQBhKBinTkzJH OLoVwPPDMcIhfBD/expbdPHch8117GNpuLQzcRfGYRjOiJVSnDy8aRC8We1ImXsldn7G 9Wew== X-Gm-Message-State: AOJu0YyoMZ+vdbbDMpT2he5RtT8jJMu28621XgH64VbVpWutN0hP3YtH 5XOxlJO10Hw+PboZIwXbBgq/apG8be1dW7AprfbS0Z6ck5a6rHjF1i+8D+A9nrc= X-Gm-Gg: ASbGncvywYd3qgcB5MA9rmO8EuDZbv4ufR87F2Mx8qBxukVSpIrlQ+VIUmzTByQWSuc DAUxLVmKdMAgA0fvpwfiuYeJDd79kzMP08ilIvVltmie3u2TSXLhtURGFx9H4DOKoyeetfw0HZa uFwfUw0FiorLCFor7cPbHKvUh1AzkJUet1tOximzrxl02J4eefPuwqaKFMlmJ1PDlJfQuPDbMjE q30NrI3gHqQDSDr5Ir/3np4tUyTPYbMLcP0+yebs5jYhvfUn8S+bNuRA/kMRZODZgzDcoOR+TUL 0F6u9Ast3yocVbrmYc69sK/wa0+DCTRrYC2n3dte+/0uOAeNHjylWnB08hZs2f75dYSQouZDSQK OG5Kmwg== X-Google-Smtp-Source: AGHT+IGpTFcm31h9EpuPbAm3YUIJaoJyD95IH89so3fYUNBg2B1J+FhEDae5gGh7l1PFPh0SPC0Ycg== X-Received: by 2002:a5d:6da3:0:b0:390:e85b:a8ee with SMTP id ffacd0b85a97d-390ec7c6a2fmr13832592f8f.1.1741093638590; Tue, 04 Mar 2025 05:07:18 -0800 (PST) Received: from [127.0.1.1] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e47b6cd8sm17401715f8f.44.2025.03.04.05.07.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 05:07:18 -0800 (PST) From: Bryan O'Donoghue Date: Tue, 04 Mar 2025 13:07:13 +0000 Subject: [PATCH 7/8] arm64: dts: qcom: sc8280xp: Add Venus Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-7-279c7ea55493@linaro.org> References: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> In-Reply-To: <20250304-b4-linux-media-comitters-sc8280xp-venus-v1-0-279c7ea55493@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Bjorn Andersson Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Johan Hovold , Konrad Dybcio X-Mailer: b4 0.15-dev-33ea6 From: Konrad Dybcio Add the required nodes to enable Venus on sc8280xp. Signed-off-by: Konrad Dybcio [ johan: use sm8350 videocc defines ] Signed-off-by: Johan Hovold [ bod: dropped video encoder/decoder declarations ] [ bod: added interconnect tags ] Signed-off-by: Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 82 ++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 01501acb1790a..fe8aa24d5d51e 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -10,6 +10,8 @@ #include #include #include +#include +#include #include #include #include @@ -690,6 +692,11 @@ reserved-region@85b00000 { no-map; }; + pil_video_mem: pil_video_region@86700000 { + reg = <0 0x86700000 0 0x500000>; + no-map; + }; + pil_adsp_mem: adsp-region@86c00000 { reg = <0 0x86c00000 0 0x2000000>; no-map; @@ -3699,6 +3706,81 @@ usb_1_dwc3_ss: endpoint { }; }; + venus: video-codec@aa00000 { + compatible = "qcom,sm8350-venus"; + reg = <0 0x0aa00000 0 0x100000>; + interrupts = ; + + clocks = <&gcc GCC_VIDEO_AXI0_CLK>, + <&videocc VIDEO_CC_MVS0C_CLK>, + <&videocc VIDEO_CC_MVS0_CLK>; + clock-names = "iface", + "core", + "vcodec0_core"; + power-domains = <&videocc MVS0C_GDSC>, + <&videocc MVS0_GDSC>, + <&rpmhpd SC8280XP_MX>; + power-domain-names = "venus", + "vcodec0", + "mx"; + + resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>; + reset-names = "core"; + + interconnects = <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &config_noc SLAVE_VENUS_CFG QCOM_ICC_TAG_ACTIVE_ONLY>, + <&mmss_noc MASTER_VIDEO_P0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&mmss_noc MASTER_VIDEO_P0 QCOM_ICC_TAG_ALWAYS + &gem_noc SLAVE_LLCC QCOM_ICC_TAG_ALWAYS>; + interconnect-names = "cpu-cfg", + "video-mem", + "video-llcc"; + + operating-points-v2 = <&venus_opp_table>; + iommus = <&apps_smmu 0x2e00 0x400>; + memory-region = <&pil_video_mem>; + + status = "disabled"; + + venus_opp_table: 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,sc8280xp-videocc"; + reg = <0 0x0abf0000 0 0x10000>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&rpmhcc RPMH_CXO_CLK_A>, + <&sleep_clk>; + power-domains = <&rpmhpd SC8280XP_MMCX>; + required-opps = <&rpmhpd_opp_low_svs>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + cci0: cci@ac4a000 { compatible = "qcom,sc8280xp-cci", "qcom,msm8996-cci"; reg = <0 0x0ac4a000 0 0x1000>;