From patchwork Wed Dec 18 13:22:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 182007 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp646994ile; Wed, 18 Dec 2019 05:24:22 -0800 (PST) X-Google-Smtp-Source: APXvYqy6Mc8+lNG4LPWszcbSKzli7cne2NrcynIz78pZKl8vK3YcnXpB7ThF6D7J4PPhzVrDovht X-Received: by 2002:a05:6808:aa8:: with SMTP id r8mr324359oij.7.1576675462211; Wed, 18 Dec 2019 05:24:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576675462; cv=none; d=google.com; s=arc-20160816; b=OIBO58H2NWRoa2h+Dcb8W57NJHIPMkpQGK9U6mY1kdd0YAGlJ6BQKoWRzPz4M1+chB M8TLnGxDMjOhZV8jIj153SpYuW4M472zh2IUdNwxT+3eQkMrpt9S0nC+3aLC6SonBliT sz4CgzZgxJl9HPF+7gH6sEbBnx+lQcs5jSqU22DE9ctl6p1wmENEM1CwTNZm9noBPMeg Eb25v9JD9QqG+mMBdqRO/lMm/YBZhvJIu5//VGFMaNjuS6/K66vqHZu7xOLIhN9RORfe c9ZeOj/sCJbao/0CTdKJcWbvzYnrRetVy2AsOZdTkB2UJtgEVMhK8vQulvXWLH19bsbo zLWw== 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=sRlbBOojW7v2VRLaDWPeR8d17hgWrl9wNZOspFmUuFU=; b=wbKoscMJ3tuAHwHaRsnyETgDzDUkasf/f/duey+tdNfFS1EXKN1/npXvRanJ/+O34Z v4XqiJS4P9Y8z4jvzr/MicO5eY05xXK8pZ5PSbUljKBUSBtGcX2C4XbqFwOmPw6z0s22 RaxY1WWYd30CL0AYTqe1latb+0oW6fNf0CJMNjwUmLcVRLWYoicUpPwO2ibGK8Y/lKUn JV5Z7d5c80k/1MAfDJBkZlH/b+kiyrghLBa9ZSxAeptdOydhEp7Np0bENPRxsIfkmElr AN0XCFonRHD3/zNlAkCqz/uU/ZGE2aF1IXxzPpci7FShepVQOwnlisZXTzgJ6bQ1ff69 zbIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uHc+lthr; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 l7si1214092oil.77.2019.12.18.05.24.22; Wed, 18 Dec 2019 05:24:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=uHc+lthr; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727435AbfLRNYU (ORCPT + 8 others); Wed, 18 Dec 2019 08:24:20 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43334 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727419AbfLRNYU (ORCPT ); Wed, 18 Dec 2019 08:24:20 -0500 Received: by mail-lj1-f196.google.com with SMTP id a13so2112079ljm.10 for ; Wed, 18 Dec 2019 05:24:18 -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=sRlbBOojW7v2VRLaDWPeR8d17hgWrl9wNZOspFmUuFU=; b=uHc+lthrXnMaFPsJZUtTjTk7JbzmnIRVKIq5hRLMJXUwM8249UZ6vrg2//+LI0OA43 JopK3irKcBtCHJ9tfTVEyVvhdCDPWqZR4HVXis5Qr+w0a8QSsaKzm9J1U2bfZxjuWsYF 4LGBx7uQJr3rEH19OqoH/J/8EqhcXY4iaX8Cs+CoL+gDy1QcGipKP+537M5s2+EhKEtN Ap7pwTAH2mKuVK0fZob6J626ttwghPIhF2cmxlDq+FVM27c2Nkf2pqPI17mKGCZjNV3X gX6GIhV7dB1+gdnNDBA+MhHeTnNTYz1Dm6T3sy/cw6bnhROfGrKAtTeGjE6jlbRiHvDT RjRg== 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=sRlbBOojW7v2VRLaDWPeR8d17hgWrl9wNZOspFmUuFU=; b=ccYUKtjWdJzkpOml6LGtZPq09iBXAZHk2LTVYuZvfuv/sAMPGo60zRtsnmW/UAop0c 57VIuEfNB0EdDEuSmPwNVpM9vsjsR59MKWxDny0MO32OR4FpubcIgwuiYAX+FXUPqGkB Q/pJ/606qZ8yp1lAPg8uKq9fAyPlIuiLcijiC2m/YBVCtOqxE+ovGe21UppQPDqVDgZn p/+y/arwHttZZRA564P2KBP1dSFi3PMlg3b/UKGFRhWgAY/wjCsJAFY56pGH8YzZE1nQ ivmO5X8sJcK4veLTUyioxOHf0xLMlVKKBN8eAz0VpuzOf7zRAg80drNtH+L53zNFNMyq +wNQ== X-Gm-Message-State: APjAAAU7oza5BTBxlLM23zapID2zg81b2lGlGTnk5pJkmPp0VTtzrD1u 1LmvhCamNmMeBN5gsxQLK9iyow== X-Received: by 2002:a2e:8698:: with SMTP id l24mr1794175lji.94.1576675457674; Wed, 18 Dec 2019 05:24:17 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id z7sm1440667lfa.81.2019.12.18.05.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 05:24:17 -0800 (PST) From: Stanimir Varbanov To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Vikash Garodia , dikshita@codeaurora.org, Stanimir Varbanov Subject: [PATCH v2 11/12] arm64: dts: sdm845: follow venus-sdm845v2 DT binding Date: Wed, 18 Dec 2019 15:22:50 +0200 Message-Id: <20191218132251.24161-12-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191218132251.24161-1-stanimir.varbanov@linaro.org> References: <20191218132251.24161-1-stanimir.varbanov@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Move all pmdomain and clock resources to Venus DT node. And make possible to support dynamic core assignment on v4. Signed-off-by: Stanimir Varbanov --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index ddb1f23c936f..c5784951d408 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2568,32 +2568,33 @@ }; video-codec@aa00000 { - compatible = "qcom,sdm845-venus"; + compatible = "qcom,sdm845-venus-v2"; 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>; }; };