From patchwork Mon Dec 9 08:38:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 180988 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4063169ile; Mon, 9 Dec 2019 00:39:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxPpLo/wRNMoLeJ4HardnPvPIH8SQUVS+AjjU6f8AS35aQRD22iM0IuSQEM3thPojdvh4TT X-Received: by 2002:a05:6808:aba:: with SMTP id r26mr11972057oij.4.1575880784606; Mon, 09 Dec 2019 00:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575880784; cv=none; d=google.com; s=arc-20160816; b=GE0njQjTszFDTnQIqjosvAny5/P3Vc7sOzt+Spg4ijxH9Il+c9J/d1UG7ZehuLSHqO lqsnhLvFt374GWqjfFifV/NEpnvGRvIxgkXK0WfceJnmESkahX3WI6Q1gaolNYGXZ01T vc2TV+OzqwULBFExYKuZSrLG58B4XPZHYPHqu2q2jWpSA4kHV6grX0HpGi8jL3wVR+Ad CIeYbhzz+uUO1Pyi5eaEP6TGpqi3M+Ew5GUundhmuRXsnC3AD/irkITsWI+kLX6O5Myd Pcya3wK9476MZEFHA4oSFZxglnsz45oLDTaZl+f9wVNw+TTy+h6oyvGOwhLzgbVusgcm TKmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=v49ydhRHchofWzIVQxqpzPrTtsddtPryUTJT2t4dhHg=; b=wbQZHid6rfOMCSWEegmE2l+laRC2VO4sHzSqrHkT3rlUTpJK8+0zSXBNcYqsoQQ0LH WWnGaf6sDsN4/y2oYaThpISUctFciNa4HYjuSCe5XBfYh78J+8ST7PQXCZiybyySPwje D4SWoCrBC2037zf9bDdsqJkYCcHnIb8gL61IKO8QjqGa7WnRPVXHROWLWNcalQBrpuc2 J1l2abXOynjQxTchc1svN1KXFuMfFydaLaWl5JrDRpTuA1nDxPtJiSXsRxtlRWIk2bSs 91phifASEyhnJ5XvSDBR5Z/S745krOE4p9Ix60kK8fdlXFAltx7na4V0H8NHvDh64b8S J1Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v9gYohOs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q12si12091701otm.261.2019.12.09.00.39.44; Mon, 09 Dec 2019 00:39:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v9gYohOs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727433AbfLIIjn (ORCPT + 27 others); Mon, 9 Dec 2019 03:39:43 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:33703 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727319AbfLIIjT (ORCPT ); Mon, 9 Dec 2019 03:39:19 -0500 Received: by mail-lj1-f194.google.com with SMTP id 21so14644078ljr.0 for ; Mon, 09 Dec 2019 00:39:17 -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; bh=v49ydhRHchofWzIVQxqpzPrTtsddtPryUTJT2t4dhHg=; b=v9gYohOsVaW5DeUzwcntIszGR11cpCwA1aGZQI/0YtSyva2+iY9Ho4nwPh1XkuEEcs ePzEjiMXfOWUfjkuL6au580P6z9q6aTIQ4BAFKeXFDBtnUhU+aVTh0lEAgY4C7HCpSV9 ORwIprAIN+8zsxiBuym7PqglNRmEVQycLevLaHhL1ebSrdLLpkdVn/rdkrrGJkyYQf8v c/52xy2F25iRJr8xYXD9Nv2jRKO5G/tG/EsYycAbXnJ/v4Fz6AxBSvRdmt06fg7z7xF1 U0uhvGFU/i/H8jRdR5icC6XyPExufkNMMEEbkYwB0qS9424ytO17ogMD6Dgb8ahdoFI9 ukiA== 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; bh=v49ydhRHchofWzIVQxqpzPrTtsddtPryUTJT2t4dhHg=; b=OM1OE6SP7VPhqJB3qE7bt805TdVPc15YbN+oak3vTeTU+il+fHa7SMhexoNKhy2P1w TQUoD0ZK6wyf5Gs6iANccTIwTLy7vZCE2paEmjG9n1of5RX3bkIPxIzThZXuahUB/Vfn v/hIUACshS/lyykJHvgCnB1PswK06885tn0eXyDBKa+WFWbrW2Qw6Zua0MqkkEyELOy3 h52ZBAS4Q/zfE+Vcfhp9N2Nkk4f/87qCpRIt5Rd1kwq4+AuSOGU3Ap9YswUe6CgnT0C6 L9rp8FG1ZM+MquXK8qC9ObzPvqyboFz2VopOxrS1FC6m2WssTv0dXrOtEcUM+dK1Unvv CkfQ== X-Gm-Message-State: APjAAAWjWRp5Egb8RAHeF8LOc5hAvQeOSxnhgAR1rkjbTeG2K59X9sXe H8DfbaJNvoRDjLsAnWNxgMIr2rC+X7c= X-Received: by 2002:a2e:808a:: with SMTP id i10mr15268982ljg.151.1575880757072; Mon, 09 Dec 2019 00:39:17 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id r26sm10438971lfm.82.2019.12.09.00.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 00:39:16 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: Vikash Garodia , Tomasz Figa , Stanimir Varbanov Subject: [PATCH 3/6] arm64: dts: sdm845: move venus clocks and pmdomains in parent Date: Mon, 9 Dec 2019 10:38:21 +0200 Message-Id: <20191209083824.806-4-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191209083824.806-1-stanimir.varbanov@linaro.org> References: <20191209083824.806-1-stanimir.varbanov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move venus DT subnode resources like clocks and pmdomains in the parent Venus DT node. This will make possible to support dynamic core selection on Venus v4. Signed-off-by: Stanimir Varbanov --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index f406a4340b05..540028fed3ae 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2571,29 +2571,30 @@ compatible = "qcom,sdm845-venus"; reg = <0 0x0aa00000 0 0xff000>; interrupts = ; - power-domains = <&videocc VENUS_GDSC>; + power-domains = <&videocc VENUS_GDSC>, + <&videocc VCODEC0_GDSC>, + <&videocc VCODEC1_GDSC>; + power-domain-names = "venus", "vcodec0", "vcodec1"; clocks = <&videocc VIDEO_CC_VENUS_CTL_CORE_CLK>, <&videocc VIDEO_CC_VENUS_AHB_CLK>, - <&videocc VIDEO_CC_VENUS_CTL_AXI_CLK>; - clock-names = "core", "iface", "bus"; + <&videocc VIDEO_CC_VENUS_CTL_AXI_CLK>, + <&videocc VIDEO_CC_VCODEC0_CORE_CLK>, + <&videocc VIDEO_CC_VCODEC0_AXI_CLK>, + <&videocc VIDEO_CC_VCODEC1_CORE_CLK>, + <&videocc VIDEO_CC_VCODEC1_AXI_CLK>; + clock-names = "core", "iface", "bus", + "vcodec0_core", "vcodec0_bus", + "vcodec1_core", "vcodec1_bus"; iommus = <&apps_smmu 0x10a0 0x8>, <&apps_smmu 0x10b0 0x0>; memory-region = <&venus_mem>; video-core0 { compatible = "venus-decoder"; - clocks = <&videocc VIDEO_CC_VCODEC0_CORE_CLK>, - <&videocc VIDEO_CC_VCODEC0_AXI_CLK>; - clock-names = "core", "bus"; - power-domains = <&videocc VCODEC0_GDSC>; }; video-core1 { compatible = "venus-encoder"; - clocks = <&videocc VIDEO_CC_VCODEC1_CORE_CLK>, - <&videocc VIDEO_CC_VCODEC1_AXI_CLK>; - clock-names = "core", "bus"; - power-domains = <&videocc VCODEC1_GDSC>; }; };