From patchwork Wed Jun 14 11:35:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 107919 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1186284vqr; Wed, 14 Jun 2023 04:57:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XjZR7AFgVddg5SaGsaXJIFFGwXieNydy+rMWVi4vTDtz/5I7VO0Er0Bs319ED9SQxtUb7 X-Received: by 2002:a17:906:fe4d:b0:973:93e3:bc9a with SMTP id wz13-20020a170906fe4d00b0097393e3bc9amr14528961ejb.6.1686743841574; Wed, 14 Jun 2023 04:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686743841; cv=none; d=google.com; s=arc-20160816; b=Y50fCcMK/let8EHGmvCfEBwT/UZpbfpmZSJ2QjOq3LsbbWUA0BX2qfivBCq70TeeNX cepvxSFRZikCZZ0nsc5lY7oer6RrJJ1jfUULJed2w8Zr31PshmQzKIAja9QnUID1dzO4 JVk231wB6/2OcC+KehXV0xLi/q5g6th7m1DbHReu9xH34ICArtMBb+ntmbUSSdOiCwo5 Xb2wcokRzqAyPdMg9ghUGj44+jT5xx1XHezS8G55F5p5LuZvJqvj6gNkoRNGXyx8OvVB f47Lr/C/TxtrTfPKBb1raSUQOAr23HLE4CwKcwI1gsmktzlRw2e0h90F9bp6gyoXW0Vf gC2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=PbHzuVw9djUb2dacqpTuChV+YchmANRy5455/F4AJp0=; b=Wd7lW82PO+gLOrkLk6OrBTg5BlN7YMnykYM9M/6k9Gp2Em+1y0DdFuyP/HzRF4MzQ4 rl72L219elz9hW8krMx7vvcds4iivVjaRpB+KHfwQwLu7/qUkENKPyFMsSLwQFyJSF4s iQ2yX2abErS0DFm7LWWXnyr6Q51UFeHVH88q8Znj/aKGhqapKhmCThqvzOcDw/3qB0im p7wTZknE1MREydx90My3yc1jTp6K24YSTBBvkoLNI1KSZoEoZFtorWd6DiGEbH4wVvYm AezIozaS8Pg1PtbEB9OonOefJEqnxjo8nOWWB8ThdGeYDg3vAELHqQRDDfXMfqTePB7I igDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hEudXtbM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay24-20020a056402203800b00514b9801aa2si8696219edb.364.2023.06.14.04.56.57; Wed, 14 Jun 2023 04:57:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hEudXtbM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S244081AbjFNLgG (ORCPT + 99 others); Wed, 14 Jun 2023 07:36:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244076AbjFNLf5 (ORCPT ); Wed, 14 Jun 2023 07:35:57 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 098F91BF3 for ; Wed, 14 Jun 2023 04:35:54 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4f122ff663eso8379081e87.2 for ; Wed, 14 Jun 2023 04:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686742553; x=1689334553; 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=PbHzuVw9djUb2dacqpTuChV+YchmANRy5455/F4AJp0=; b=hEudXtbM1Xo4XzWv1z7MyF9xYSMji7u4xEYfRPu5GR0wTH9rs51Q9yuKQq35iwFxcj 73la0nxq5ikY9Y3UvLzihT386Lc6JUJnCndhTddBtiTZ8e5DP29IK8TadpedbH1tN4Ej PtKxxbZiSTxH2+nKJLiByE1VyHrySrnAR8W0IgY9TTtkCQgHMwTYQhYAVPzVShVOx3Oi 8GkX6sE9mktM2Nv8zPs0zTNj/7oz3HUv6oJDofHjB9E8owHPTJQr09n7juaBxDX6PrF4 41V3c3zIp9cSp/ku/uYeV2Onu97dJ0rrCnJCTqmvFljBrdTQ8EgHh4tfAtgijSlKdwVy 37bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686742553; x=1689334553; 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=PbHzuVw9djUb2dacqpTuChV+YchmANRy5455/F4AJp0=; b=TD5IHBYUiGxjp/UCrzMqrd/o1SUkrDpkp4sJd1UNxNetzOhCJvSBUjVDsrNDORKQ4b GOem4PaKYXgfL+z8Uq2cL2guliV9JoffTpOSyVB26h3OcqKIYc8/STe4cOCQ4y9NzcgH hEzkugFqXuPoBV5r1jgh79jp/s6hYy1/z/af9HTO1ti5C/19z8tA3uweSEdT09FIFx+j GHOZKynXtPCI1UhxeExTHiGyBJeOpC+w7ejxoRMIPa0YrMg6IM3oApIn742NQiY7m1Sf wVcDPrVR83imjOt9dkyrunAJAg9UmVw0XH0BJOYiBmH8cB+d8yuB73o7Gf1TqJdK0yAc 57LA== X-Gm-Message-State: AC+VfDxurPv42hxmEdZ7dxIbAwJkbwfvwWv21VKyS2NnFwiOCAi3q8vC wO3Lb/mON3JHC1fNTH8W6oq8yA== X-Received: by 2002:a19:ab01:0:b0:4f1:3bd7:e53a with SMTP id u1-20020a19ab01000000b004f13bd7e53amr7569927lfe.49.1686742553068; Wed, 14 Jun 2023 04:35:53 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id x1-20020ac25dc1000000b004f64b8eee61sm2088406lfq.97.2023.06.14.04.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 04:35:52 -0700 (PDT) From: Konrad Dybcio Date: Wed, 14 Jun 2023 13:35:34 +0200 Subject: [PATCH v2 3/7] arm64: dts: qcom: sm6350: Add GPUCC node MIME-Version: 1.0 Message-Id: <20230315-topic-lagoon_gpu-v2-3-afcdfb18bb13@linaro.org> References: <20230315-topic-lagoon_gpu-v2-0-afcdfb18bb13@linaro.org> In-Reply-To: <20230315-topic-lagoon_gpu-v2-0-afcdfb18bb13@linaro.org> To: Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , AngeloGioacchino Del Regno , Conor Dooley Cc: Marijn Suijten , Rob Herring , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Konrad Dybcio , Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1686742545; l=1415; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=gsjvRRutg0p4O5/y2LMtWAUeMOWVStHD9z6YTRu1r8w=; b=ci/KzkaFWmBtpokctHZ0kQ1lRBx7DZqVYmrgzDc9/fI22dpniJyL96eFOt8B1wrTgBrY6DuQ4 TshDj9C0V5nDHLSxV12rpBEq6e+82I1p5hR0QeK08Hr8LJZx6qX4F1n X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768679110115138320?= X-GMAIL-MSGID: =?utf-8?q?1768679110115138320?= From: Konrad Dybcio Add and configure a node for the GPU clock controller. Signed-off-by: Konrad Dybcio Reviewed-by: Luca Weiss Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 30e77010aed5..fd35810bcfb5 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -1308,6 +1309,20 @@ compute-cb@5 { }; }; + gpucc: clock-controller@3d90000 { + compatible = "qcom,sm6350-gpucc"; + reg = <0 0x03d90000 0 0x9000>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_GPU_GPLL0_CLK>, + <&gcc GCC_GPU_GPLL0_DIV_CLK>; + clock-names = "bi_tcxo", + "gcc_gpu_gpll0_clk_src", + "gcc_gpu_gpll0_div_clk_src"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + mpss: remoteproc@4080000 { compatible = "qcom,sm6350-mpss-pas"; reg = <0x0 0x04080000 0x0 0x4040>;