From patchwork Mon Jul 3 18:20:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 115462 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp714771vqx; Mon, 3 Jul 2023 11:34:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlH2eUt7nTNrWEXGwRpMef4EAdpURfPnxAulXtYSDc3xBYgObNguWsiq2ka2RGe9xA8P9MTu X-Received: by 2002:aa7:980a:0:b0:677:bb4c:c321 with SMTP id e10-20020aa7980a000000b00677bb4cc321mr12414457pfl.0.1688409239614; Mon, 03 Jul 2023 11:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409239; cv=none; d=google.com; s=arc-20160816; b=XMioFrq0DTgFNDPoD2KWn9fE3oopSJ21mtrFi4LXMwmYbP2zjx4aoJ4fMTbwSRhHbu DJ3pUyKHy8LB3sQx6HXZA8H5baVf4Mr0fRXX65AR2F5Nrs5QfhkFAKQYrSIZp9SvSA9t uhpEIRj0kx949gYb6I5NrRC75UMjhj713Is6UtBC6JM7pTNDjxGNwUDUx/AH/pBtw369 eeD13emu2H/AMYB1I+oL0VkDJftzHGujvebSfnLLL48kBfXdwoVh98GUBF12fLBvVvoe yJ9vy6gtMKsk8xlEybPyZedzzrTcGP4Ye4jo3vOn9y+jS94T59RcgXDrOc6gPhPuz1EB 4nZg== 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=fy3w9ZErCL0BlDSMy/TiatQjTzRvjJDARdwjHF/mGRU=; fh=vS0tN9DWtDLMPesS13ibRw14Re3TW1B89jbJ3BZW1U8=; b=jC5VPFLWZ4yLcK8LKaTtLL+YQcebyxGAoEYiN8Tap8Iba0FOhq11+bfzcqOSFue9LJ i0ELc+ixfSu01j73PNC+2bPuH/7C9H0AE90GlEqM7OmbvV2OlxkZw8V9EaXuCzpMcFwN A9NZM5b3Q84NbWP6h6jen8Ink5rnUakTkbBhrGeSvrJ6oAwl4mbZ6hpeWs+TUKp5g4Tf xcTCRQFrQzzI25JfNWd/3A190RND5zg3PaXtK5KNYVMwWCPwL+xgTaN0pp+kbkengNo+ 3ssF0yrpsOiHMWrjMLOKvekARVaFta7oRYUkVc0x8gzrephDoX9jPJQnlnWH6EsGwTTi wnkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ek9UtWIy; 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 d37-20020a631d65000000b0053f2551834esi18774220pgm.735.2023.07.03.11.33.45; Mon, 03 Jul 2023 11:33:59 -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=ek9UtWIy; 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 S230452AbjGCSUR (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbjGCSUO (ORCPT ); Mon, 3 Jul 2023 14:20:14 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FEB8E6D for ; Mon, 3 Jul 2023 11:20:12 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b6b98ac328so70714441fa.0 for ; Mon, 03 Jul 2023 11:20:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408411; x=1691000411; 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=fy3w9ZErCL0BlDSMy/TiatQjTzRvjJDARdwjHF/mGRU=; b=ek9UtWIyuD/xpwYcGqI4EunDqUcCaAWNiLpeyhz+ZMULa4FNYC7sST0/xUzjCygngD giHBd8zYriREYoXksKyQu4xx791sccc03bOeCKqlezEPXzJNUidbtqsBhNpJzDMXLdIe i6f4uzT84jmotiHcdQGD4Bkxxvg/aHHnbmSPyjQ45V1IvJI+HslmFLTisP9WpO00b9TR Gg1gnM+gk2IMVglhkYE5k7nReulDrDyHM4uf812PDasIZryMZNGEmFrcodZKXp+Elbn7 Wf9ZIIHPzpctKH2vICPVFQo8i3l/uHuLCT6tT12eCduAuFE7s17mRx9H/Tk42+5yXnbu n2hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408411; x=1691000411; 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=fy3w9ZErCL0BlDSMy/TiatQjTzRvjJDARdwjHF/mGRU=; b=jdIEVGDl8jfyK0J+EN3jcXseBVDWVyovMlCh7k8TYZp7ezUePjr1rlEsIOjeNxGCRg ADCJB5FrA9UcE2U2+NcnmxxJNc/e6Nu1QgVanYVj7r1IVrt0D+juQHiB0eW3znVZJQY3 /gKwovE2ZKoKRSQ6tVXaLBbe3jStaxse8w4+K+L3/fU+Es+CB4/e1ytQyU1xJRGxt1IG 8OIAFxGEicD+Bb6wID4lP/aquektcWJBcK8x35aeFiGHuVjR+DNUfu9t85B+A/htlFG3 BFJvvMFPAqMSg5VI3/zyDM3727kV0DAwIvDvQfrurTpD5xYzoedohoKPrnEbm+/B1+QU jscA== X-Gm-Message-State: ABy/qLYu/7cAJfgZQVJHLQarDkmRr0sM2vrdY+cNLmKtkfC33G8ucRlG RJE7TJpo+xw3vuaaAP2oExQZag== X-Received: by 2002:a2e:800b:0:b0:2b4:7380:230 with SMTP id j11-20020a2e800b000000b002b473800230mr7542739ljg.13.1688408410893; Mon, 03 Jul 2023 11:20:10 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:10 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:05 +0200 Subject: [PATCH v2 1/8] dt-bindings: clk: qcom,gcc-msm8998: Add missing GPU/MMSS GPLL0 legs MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v2-1-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=1010; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JIx6npJcVBGixIBbPlj9ig6P9iKP6MTqkDy6Kyhia0o=; b=8hu0iu2JreuANFYEfJK59dDXmixKP/h9qapYapLFNzlQCIOJHewgI7ULe7OXOFQ0LcQX/dWsV 8woRuyDsuBiDCY50v8hv6PjcrKEwXDb3uweqLT3HJJoWz/5gg/FkjcH 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 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?1770425406840965203?= X-GMAIL-MSGID: =?utf-8?q?1770425406840965203?= GPLL0 has two separate outputs to both GPUSS and MMSS: one that's 2-divided and one that runs at the same rate as the GPLL0 itself. Add the missing ones to the binding. Acked-by: Krzysztof Kozlowski Reviewed-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- include/dt-bindings/clock/qcom,gcc-msm8998.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-msm8998.h b/include/dt-bindings/clock/qcom,gcc-msm8998.h index 1badb4f9c58f..b5456a64d421 100644 --- a/include/dt-bindings/clock/qcom,gcc-msm8998.h +++ b/include/dt-bindings/clock/qcom,gcc-msm8998.h @@ -190,6 +190,9 @@ #define AGGRE2_SNOC_NORTH_AXI 181 #define SSC_XO 182 #define SSC_CNOC_AHBS_CLK 183 +#define GCC_MMSS_GPLL0_DIV_CLK 184 +#define GCC_GPU_GPLL0_DIV_CLK 185 +#define GCC_GPU_GPLL0_CLK 186 #define PCIE_0_GDSC 0 #define UFS_GDSC 1 From patchwork Mon Jul 3 18:20:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 115464 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp714889vqx; Mon, 3 Jul 2023 11:34:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlFGzr55b8zhIoI8k1IoQLgLxp+cjkb074KwHbf539LzV48PG4Os22+05WnmAUaJD8LGFUE0 X-Received: by 2002:a17:902:b20b:b0:1ae:4567:2737 with SMTP id t11-20020a170902b20b00b001ae45672737mr11513882plr.2.1688409250876; Mon, 03 Jul 2023 11:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409250; cv=none; d=google.com; s=arc-20160816; b=mcYOvpsGs+HgRLPMEnt5omJa8dA6s0quSrXUWLD3GU5Fd/RgxcFhP7NnUsUbyIzrng 2B1cZI2RAI5nKKvME8AsYH43268qtTjwfoCtDSknW8LxhrucJEE63kAZKUTuRmuZqbJd N1Et9i2z/5nVoUKnNv3kkwKDxCRqgvX9vjR7+DyVTTGl1x+tWSoCXHrohPq5X08l6Qwc u76uvLk6V4hsENXVCoThmKWCqCEYNYCV1a/3f3HaOmTf2HvH9K3qb9jTYKWjvCN7u92p CytFfld9kZ4kfoaQTVU+lMdqHJ+7A1vZqLgil+8R4lgbrvWP2fj+Z9mUSZXxvGtgxZf6 odNA== 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=4b/59TX3NkNSrRx1/m56RgmPe4rp5T4RY2auPLNOxCM=; fh=Xzhwa86yRR58WvKluEVM0fQtL6yZyScXNwaNikBqafg=; b=pfOsLW3kU03LVOhEdHJb9njMsBz/iimkHwNqzrN0ZWyxvPVgCQEXEZOH/U5BTMPLus AxJPiPMhespFytVVsymBxxLNyAxcuTNPkISXVe36DfleU2BW6FiHldc+HcJHDEHaXgTo kCSp4XxFnrPNa+sTsaUGhl3eGaOkLU2J9FW9ozsheE+uevk5IQmErJ1TNKgsbfBl8Jrj zAW3aU+0yP4Jwypi5u7VqOJtqKELK94yfy9PqQq3ThDQ4251yT7H5lDuIq75BrXdYVsr ZYHvaqg6CVEjEU4fBeXSgfs5hVryb25ezU/NIWnp9YMXMH5nwy3Nw+d/Oqf+XZ8LS76M mCLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vEPPO14X; 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 u2-20020a170902e5c200b001b3a1845497si19874432plf.535.2023.07.03.11.33.55; Mon, 03 Jul 2023 11:34:10 -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=vEPPO14X; 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 S231166AbjGCSUU (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbjGCSUP (ORCPT ); Mon, 3 Jul 2023 14:20:15 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E502DD for ; Mon, 3 Jul 2023 11:20:14 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b69e6cce7dso73424501fa.2 for ; Mon, 03 Jul 2023 11:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408412; x=1691000412; 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=4b/59TX3NkNSrRx1/m56RgmPe4rp5T4RY2auPLNOxCM=; b=vEPPO14XFcYlPOIaEAuxo/dZhl7EL0xbkhERdiyxO9jl5hO1Pa/Z5i4RKbrfWqxk5T QlbzvIylhE0SxOo2KatRqme3tYrrknajkFtUtTD86/AQ2dGv5m3waBEy5t4jjpqfQP5c av5VmAo9fAomrYxIasldvTfbSp4JrFV80pDB8Q+6Aym3JmE+27hta/CBsZSyErSY/N8G YYSQLbIpc78CLK4e04yswes1/CjJzHv5FP2Zyo9rAl5lCe/WfZiusUpiCOkd0fRqGHE3 Sjs6ziqWuOe9xmWn+Ji3/uS+s3p/F5vZBZmuF8A0/rnDl0O9W0bJgBtWgK6zThLbs4zM 0Z4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408412; x=1691000412; 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=4b/59TX3NkNSrRx1/m56RgmPe4rp5T4RY2auPLNOxCM=; b=PLmin4n7I3DkLfQD59193tI4H6HeJ+y0uidxjqExWGmAuQKCMWzZL/v5xoaNpMFjQu rLThsYQpXMHBj2caD4fTsYjdFSR86jEAOq+j+06Cq5dnxozQ5uX/GQH8xoxI5MaZ0m/x gfZeTPiE9U/JYfruq3zXmmUZScEFx5jkLC3RntC66cnRUM2J1j8OHrShas0uHLpDeQ6t sarUTa5H/7+blsfvrITAqmEwEqqZgKWjL6BGy3xrS28TY8habS3v0yODtA4Sd7AxQ4Nc MUT5z+jQtvjjb+q7rJBn+Smh/q4Gdm7WRH9PVqn9asMGKsgzBIH8xFnrx78/xgNcSzkB pHUw== X-Gm-Message-State: ABy/qLai1CR7dUaNBcg0BOizKLx5L5jPgRWLlHCWiJ/OoA/m6AXpH4Lv MGGPe1iVnfTwk6w9QB5fDrO45w== X-Received: by 2002:a2e:3815:0:b0:2b6:a804:4cc with SMTP id f21-20020a2e3815000000b002b6a80404ccmr7031505lja.53.1688408412303; Mon, 03 Jul 2023 11:20:12 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:12 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:06 +0200 Subject: [PATCH v2 2/8] dt-bindings: clock: qcom,mmcc: Add GPLL0_DIV for MSM8998 MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v2-2-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Rob Herring X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=1174; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=NW778pWgYBPPqowr5L2HeywHk4bs4soIi+/Ehlrhk7Y=; b=VKw260lOv11+Bdr4GUzbu4N6czUT+8U9InWU83w0agHhegZ8fbsucgItBgK6kRqVlr8r2yyBE 5QnXGmY9CkNAkb0YfFoedubjdsslTg2PraKIjuu7vByCF0LEmv5bUD4 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 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?1770425418700388439?= X-GMAIL-MSGID: =?utf-8?q?1770425418700388439?= We've not been consuming that clock for no apparent reason. Describe it. Acked-by: Krzysztof Kozlowski Acked-by: Rob Herring Acked-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/clock/qcom,mmcc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml index 422f5776a771..67e1eae0bbd0 100644 --- a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml @@ -297,6 +297,7 @@ allOf: - description: HDMI phy PLL clock - description: DisplayPort phy PLL link clock - description: DisplayPort phy PLL vco clock + - description: Global PLL 0 DIV clock clock-names: items: @@ -309,6 +310,7 @@ allOf: - const: hdmipll - const: dplink - const: dpvco + - const: gpll0_div - if: properties: From patchwork Mon Jul 3 18:20:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 115455 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp708165vqx; Mon, 3 Jul 2023 11:21:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlGsE+xin4t9c0XMS/yj2HCVWEXckZo30BCKgrOgGoPyI6MVFvvVwRN7sWMurG37eD/CEvVf X-Received: by 2002:a05:6a00:1249:b0:66f:3fc5:6167 with SMTP id u9-20020a056a00124900b0066f3fc56167mr13711435pfi.1.1688408478905; Mon, 03 Jul 2023 11:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688408478; cv=none; d=google.com; s=arc-20160816; b=ybsr46HiGibsRN3tKDzyTcmFkpK+x19P8Sid1kYRbV+M6uUVn0FGTlbhX12z5me7mt W2UB/J0WFEB8JDfnyOY3PICuIzJhTaemqDgm3RlEuqE5nyHZ7qu9OjinC//eaOJa88Et BDxHps0z4xRAnVIsaGg+eTdJF35H2+UWb0TTbhWUT2Gmr3uKk67KsJ6DLVez2RV9gmlG c38sMgJ34vFQ4HzgBfY3cFaJYJHLln4jDkHj3VxeQUD8QKiJIGekvLimxeqJuSaTEQsA S/lBCS45sp27cPPxwpGSj7ij7dW06Fy+t9IXizGsuOF6GI26u5j5oi7dqtkdNduEO6Db ZJqQ== 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=6nV+W23ixU/gsOOwjBJ3HxinzG6QROQL9vhOLjLD7/c=; fh=qlMPOal/Qkg2LQpocX7vYbzTtdVFSj3bgc1rELmt3A8=; b=Dbr6I9JdqxJmsKYz/EtAdga5wUfQ2kho8toSwOkiPj9XAiFB2HZK2HBi+YGL4W4rv8 I7aUvLzW4kXGHnSWaspM6XsV7b6cbNMxN0uKtME8TYks5LJMRSbEbdhawZ9E9Hmx7LMC PbLSBHbewmurOUQxXujLlZrG/X3ldHhxm3olklJiFa0D6Y83ptXIsS5ugYCudz9oDcRC ALrN9ehv6ELrn3k+L/nwbdf//cuC1n13QWSav7YkfZMUpdH/PSx8SDAMKn86n5wDSR2i UH/VjqWQvX0VvYgKXvPB/hMsYDApXnIYuQW+LvE9BnNp1HEBqasymtAEkxVCaKXEyaPg 0bOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hBPfrZhe; 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 20-20020a621714000000b0068267c56811si6602118pfx.167.2023.07.03.11.21.04; Mon, 03 Jul 2023 11:21:18 -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=hBPfrZhe; 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 S231129AbjGCSUY (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbjGCSUR (ORCPT ); Mon, 3 Jul 2023 14:20:17 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4131AE67 for ; Mon, 3 Jul 2023 11:20:15 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b69923a715so73476221fa.0 for ; Mon, 03 Jul 2023 11:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408413; x=1691000413; 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=6nV+W23ixU/gsOOwjBJ3HxinzG6QROQL9vhOLjLD7/c=; b=hBPfrZheoomPOR+k1h07sXx3Y/6OjceP3l2BrMg2f8BhDAOnz9JGggba3WBM/AVPMe r7GPJ5j7UyAIyeT7ZMIS103fKWaqWNPx2ILu9XqTf8Kx3uFxo/ZHV0Uf1PbB/N1feMo6 5IIx9cn+JA7yeeijtQX88W8geHebsVNs9YNfoFE6yuX3drB08iGMroOP69/NWHS52OrY UclsqeO3ZEN/aS/uV1a2NUk3DepG6U3YijgHcjWubIRHEEWWvPXFK9tUU6LGyx66vK1e bsygjdC8yIWpJjL5bZDgarum040OP2LLekzRln5+vzez73etfBkLzl8Bl3QoMNByt6Kn /Pmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408413; x=1691000413; 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=6nV+W23ixU/gsOOwjBJ3HxinzG6QROQL9vhOLjLD7/c=; b=SrVXs19IkqChNS4NGtX5ju77DRUN4AeZ0cGzn6vsRG4orsiETASW3dS2nbK70GAUPV J1q57GaT+fZN36HWvED6Gy/sX87t2wi55Z3GRHkHJ76k18g09ME8bs6Z5SwQSA5V3ow8 y6n74FvRH564L043J5XMB9iJOjHifViZxL15+YTSjxwWyb1d/AyY9F5aA5+KN997N30D bIT7a/4Q+cBzyUoiuEe/brUjaDV6qGu6XlyXQQWDOAcgeU1jiw2s2xAIkB1oE4dyXWvV A7vKJkhor9fM+AqubP0QMxXznz55sZJ8c/RK+Xbruv4tKHzNYeKrvBlyPCt00TVQwTbj Rk/A== X-Gm-Message-State: ABy/qLbNka/cboYgEDg09Pivl6+XAco6SQ7ceeHfO22155h1B/h6wW7S TQWxx5TO+duQvbQyaCvCLyJs3g== X-Received: by 2002:a2e:7a11:0:b0:2b6:a19e:5153 with SMTP id v17-20020a2e7a11000000b002b6a19e5153mr8108582ljc.15.1688408413644; Mon, 03 Jul 2023 11:20:13 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:13 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:07 +0200 Subject: [PATCH v2 3/8] clk: qcom: gcc-msm8998: Control MMSS and GPUSS GPLL0 outputs properly MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v2-3-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=3382; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=t/yKGa//yIWyr0eUqgxiqgLvRVjuxq7khyy0L6VwrLU=; b=HoYPHPJnk0lOO6Hc8Rh3ktspFtE9vgXAD7FBr8jeDugiD0WzNx4S2Efdic/bsr7zNcNSzrJlq 8303bTIwgimC7yIxEYNL+pS65ffRsKVhKNMvMBOepk9qQakiP4IW4Fr 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 autolearn=unavailable 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?1770424609040510068?= X-GMAIL-MSGID: =?utf-8?q?1770424609040510068?= Up until now, we've been relying on some non-descript hardware magic to pinkypromise turn the clocks on for us. While new SoCs shine with that feature, MSM8998 can not always be fully trusted. Register the MMSS and GPUSS GPLL0 legs with the CCF to allow for manual enable voting. Reviewed-by: Jeffrey Hugo Tested-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8998.c | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index be024f8093c5..cccb19cae481 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -25,6 +25,9 @@ #include "reset.h" #include "gdsc.h" +#define GCC_MMSS_MISC 0x0902C +#define GCC_GPU_MISC 0x71028 + static struct pll_vco fabia_vco[] = { { 250000000, 2000000000, 0 }, { 125000000, 1000000000, 1 }, @@ -1367,6 +1370,22 @@ static struct clk_branch gcc_boot_rom_ahb_clk = { }, }; +static struct clk_branch gcc_mmss_gpll0_div_clk = { + .halt_check = BRANCH_HALT_DELAY, + .clkr = { + .enable_reg = 0x5200c, + .enable_mask = BIT(0), + .hw.init = &(struct clk_init_data){ + .name = "gcc_mmss_gpll0_div_clk", + .parent_hws = (const struct clk_hw *[]) { + &gpll0_out_main.clkr.hw, + }, + .num_parents = 1, + .ops = &clk_branch2_ops, + }, + }, +}; + static struct clk_branch gcc_mmss_gpll0_clk = { .halt_check = BRANCH_HALT_DELAY, .clkr = { @@ -1395,6 +1414,38 @@ static struct clk_branch gcc_mss_gpll0_div_clk_src = { }, }; +static struct clk_branch gcc_gpu_gpll0_div_clk = { + .halt_check = BRANCH_HALT_DELAY, + .clkr = { + .enable_reg = 0x5200c, + .enable_mask = BIT(3), + .hw.init = &(struct clk_init_data){ + .name = "gcc_gpu_gpll0_div_clk", + .parent_hws = (const struct clk_hw *[]) { + &gpll0_out_main.clkr.hw, + }, + .num_parents = 1, + .ops = &clk_branch2_ops, + }, + }, +}; + +static struct clk_branch gcc_gpu_gpll0_clk = { + .halt_check = BRANCH_HALT_DELAY, + .clkr = { + .enable_reg = 0x5200c, + .enable_mask = BIT(4), + .hw.init = &(struct clk_init_data){ + .name = "gcc_gpu_gpll0_clk", + .parent_hws = (const struct clk_hw *[]) { + &gpll0_out_main.clkr.hw, + }, + .num_parents = 1, + .ops = &clk_branch2_ops, + }, + }, +}; + static struct clk_branch gcc_blsp1_ahb_clk = { .halt_reg = 0x17004, .halt_check = BRANCH_HALT_VOTED, @@ -3080,6 +3131,9 @@ static struct clk_regmap *gcc_msm8998_clocks[] = { [AGGRE2_SNOC_NORTH_AXI] = &aggre2_snoc_north_axi_clk.clkr, [SSC_XO] = &ssc_xo_clk.clkr, [SSC_CNOC_AHBS_CLK] = &ssc_cnoc_ahbs_clk.clkr, + [GCC_MMSS_GPLL0_DIV_CLK] = &gcc_mmss_gpll0_div_clk.clkr, + [GCC_GPU_GPLL0_DIV_CLK] = &gcc_gpu_gpll0_div_clk.clkr, + [GCC_GPU_GPLL0_CLK] = &gcc_gpu_gpll0_clk.clkr, }; static struct gdsc *gcc_msm8998_gdscs[] = { @@ -3235,6 +3289,10 @@ static int gcc_msm8998_probe(struct platform_device *pdev) if (ret) return ret; + /* Disable the GPLL0 active input to MMSS and GPU via MISC registers */ + regmap_write(regmap, GCC_MMSS_MISC, 0x10003); + regmap_write(regmap, GCC_GPU_MISC, 0x10003); + return qcom_cc_really_probe(pdev, &gcc_msm8998_desc, regmap); } From patchwork Mon Jul 3 18:20:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 115467 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp715528vqx; Mon, 3 Jul 2023 11:35:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlEkXT7tnG0XuGsQOIxA+T4X1Dddgt4noMryfs7bjxqIy6vbTxwTOzD6LA23auZMWw/JqpIi X-Received: by 2002:a92:c608:0:b0:345:a3d0:f0d4 with SMTP id p8-20020a92c608000000b00345a3d0f0d4mr10359465ilm.3.1688409324631; Mon, 03 Jul 2023 11:35:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409324; cv=none; d=google.com; s=arc-20160816; b=mr5JiNY9ZM1RN1lmqExlps0wqkLAfUVIJyYRP6+UStDTAllmaM49AqEAjTHJGpj4wM lJV92xFPCY79yt/TSp07JOSiklgDqlk1bguJSvahieL9xZUMl9jBoWoIk49zCYl3jQoG fGD0vyYKafQUAxkeHhqJlAYQLRsZVGWJBHcJOoSjWfRsEsQ0TOS5aH3yPOOyedOwxQQO bIdfMuSjvrDxsDDdwbjJ2CXnm3ia/gUo2hwpz6X5rZMEJFZtTbqPGqdbdwtgUtEg9PCS D25km3UvS9zhv6fF3cYc7x1wuHKTDiA0wJWvUUXZb09HEmP+x3PiTvp/EV7AecbHs6u/ NO5g== 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=IgXZ+eRdRJHN8xsGvQGmmBaJDurThI2IbqW/jpkrGj0=; fh=qlMPOal/Qkg2LQpocX7vYbzTtdVFSj3bgc1rELmt3A8=; b=K16ApryrNFxWfMsEWTTBo3E4AGahJ8A5JG8+L1FdFcTBDbok7WwmYUMIX+tE2X2fBh qSkRDw84+C0NxdprR4pSJT3Gri0zwys2jAzaBLK2Qls+ZG8OBoOLPKrWp5isDuLpVQGS pjDoCJKFOBzkXVHg3PJ5v+4U4RzfVUdbdhuTbRL7xBEqIGgRwDDmT2IzwnKjT6NB+lxc YCSkUbqA/+fehuci/ihdaDheaNlaOpQUBsJrPbFLNQy466r3dp0x3oTXoRSUEX81NYj7 sS7e75VoFTUryINtOBScqUQzZM2Hihw6S974dafPeD4h9Y1CbiC1XPpghDHTvWSdfiCP c1pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uceXZfbY; 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 6-20020a17090a190600b002507cbb009bsi19069057pjg.112.2023.07.03.11.35.12; Mon, 03 Jul 2023 11:35:24 -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=uceXZfbY; 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 S231256AbjGCSU1 (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbjGCSUW (ORCPT ); Mon, 3 Jul 2023 14:20:22 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3AC2E6D for ; Mon, 3 Jul 2023 11:20:16 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b6adef5c22so73346751fa.3 for ; Mon, 03 Jul 2023 11:20:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408415; x=1691000415; 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=IgXZ+eRdRJHN8xsGvQGmmBaJDurThI2IbqW/jpkrGj0=; b=uceXZfbYZOlKkij7wFKMEyEmOpiTzp3vyUd3NWusgPamjZjrHdpgJB50UATD5qUJVN yp9pOw3lJ8SjlVVYm3i9XTH4z67lRQT9XmOFr7EK/+QEn1B6pJDUG73+Fk6XQW/t23a2 v09orOz49sLAu/xYaPDQBEPMjCS1afCRFuR+6U78OnhG8jZvNRC5lXe/en01U6Gg1WjL cR/IIlBbTerGBIy2WAlGeTDhO/9b5YhATd9fyCETx5k0HZbk0ht0bbpSYpR6r3Gp5+fp f7D1r7AhCXIxdpsTXe8BO2DYWL2ll75pKS9vibr74/hVWcznEJImkXoQYS89pdVafroc C2QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408415; x=1691000415; 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=IgXZ+eRdRJHN8xsGvQGmmBaJDurThI2IbqW/jpkrGj0=; b=IcdtuUIYSN4Yxxp18I069BZKM3KjFJSqSAniIVGgOw/3FqarEdGuGHaE0mrSDzMO/U vnQ4oQ76Q0Srpa37F7TgVL6kWQO0bCECscz8Rg14Ijei5YWifO+OGw0ftjqI9Ce2m2vk j6citQ6SmDBvwOKNBLV1iPmsxXpAxIIGUtx28q880zuuAy+lYhP0iJ7xT/eeii4+LYGE BUC2ZscAV9DlfggFG2SM264JizFLkrGidO8smpHcQ957hQB4Zz3UoTZdNM+RLxlFL8o+ ohVh+SwPmZTTzFNAji7ntrDqtEHFomozQjHQBccaZ+TSsQlyS3D/bz1etDHkDKq2Kvp8 6yZg== X-Gm-Message-State: ABy/qLbMLo+gfDug0WLaaRXcL58CMSGu4OR3zohTI1Py37J+f/MtxZKV 9H3VYcGxxjkm6w5WgY/NwXUAmQ== X-Received: by 2002:a2e:9143:0:b0:2b4:6eb0:2a27 with SMTP id q3-20020a2e9143000000b002b46eb02a27mr8806972ljg.17.1688408415010; Mon, 03 Jul 2023 11:20:15 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:14 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:08 +0200 Subject: [PATCH v2 4/8] clk: qcom: mmcc-msm8998: Properly consume GPLL0 inputs MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v2-4-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=4937; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=pNpFd/werWG+oLvuHHpeYrlGmkALZ/dmf7xfH7d+kHc=; b=VW4i1+gxxDJfK3DsiUrdpLeAHClFLSCtu4j6f+S5L06ubK/8moZi9q4rRdK2cSupBisds/iH7 KHuuZiZqwb6AZ12Wzu9X4/WrbFYWG53iiaAox16NU35zKUvncwcDm8W 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 autolearn=unavailable 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?1770425496333225281?= X-GMAIL-MSGID: =?utf-8?q?1770425496333225281?= Up until now, the GPLL0_DIV MMSS input has been modeled as a fixed child of MMSS_GPLL0_DIV that's always-on. Properly representing the former in the GCC driver makes us unable to keep doing so. Consume MSS_GPLL0_DIV through fw_name ("gpll0_div") as well as add a fixed .name link to keep backwards compatibility. Reviewed-by: Jeffrey Hugo Tested-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/mmcc-msm8998.c | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/drivers/clk/qcom/mmcc-msm8998.c b/drivers/clk/qcom/mmcc-msm8998.c index 4490594bde69..040c495e91e4 100644 --- a/drivers/clk/qcom/mmcc-msm8998.c +++ b/drivers/clk/qcom/mmcc-msm8998.c @@ -46,19 +46,6 @@ enum { P_DPLINK, }; -static struct clk_fixed_factor gpll0_div = { - .mult = 1, - .div = 2, - .hw.init = &(struct clk_init_data){ - .name = "mmss_gpll0_div", - .parent_data = &(const struct clk_parent_data){ - .fw_name = "gpll0" - }, - .num_parents = 1, - .ops = &clk_fixed_factor_ops, - }, -}; - static const struct clk_div_table post_div_table_fabia_even[] = { { 0x0, 1 }, { 0x1, 2 }, @@ -354,7 +341,7 @@ static const struct parent_map mmss_xo_gpll0_gpll0_div_map[] = { static const struct clk_parent_data mmss_xo_gpll0_gpll0_div[] = { { .fw_name = "xo" }, { .fw_name = "gpll0" }, - { .hw = &gpll0_div.hw }, + { .fw_name = "gpll0_div", .name = "gcc_mmss_gpll0_div_clk" }, }; static const struct parent_map mmss_xo_mmpll0_gpll0_gpll0_div_map[] = { @@ -368,7 +355,7 @@ static const struct clk_parent_data mmss_xo_mmpll0_gpll0_gpll0_div[] = { { .fw_name = "xo" }, { .hw = &mmpll0_out_even.clkr.hw }, { .fw_name = "gpll0" }, - { .hw = &gpll0_div.hw }, + { .fw_name = "gpll0_div", .name = "gcc_mmss_gpll0_div_clk" }, }; static const struct parent_map mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div_map[] = { @@ -384,7 +371,7 @@ static const struct clk_parent_data mmss_xo_mmpll0_mmpll1_gpll0_gpll0_div[] = { { .hw = &mmpll0_out_even.clkr.hw }, { .hw = &mmpll1_out_even.clkr.hw }, { .fw_name = "gpll0" }, - { .hw = &gpll0_div.hw }, + { .fw_name = "gpll0_div", .name = "gcc_mmss_gpll0_div_clk" }, }; static const struct parent_map mmss_xo_mmpll0_mmpll5_gpll0_gpll0_div_map[] = { @@ -400,7 +387,7 @@ static const struct clk_parent_data mmss_xo_mmpll0_mmpll5_gpll0_gpll0_div[] = { { .hw = &mmpll0_out_even.clkr.hw }, { .hw = &mmpll5_out_even.clkr.hw }, { .fw_name = "gpll0" }, - { .hw = &gpll0_div.hw }, + { .fw_name = "gpll0_div", .name = "gcc_mmss_gpll0_div_clk" }, }; static const struct parent_map mmss_xo_mmpll0_mmpll3_mmpll6_gpll0_gpll0_div_map[] = { @@ -418,7 +405,7 @@ static const struct clk_parent_data mmss_xo_mmpll0_mmpll3_mmpll6_gpll0_gpll0_div { .hw = &mmpll3_out_even.clkr.hw }, { .hw = &mmpll6_out_even.clkr.hw }, { .fw_name = "gpll0" }, - { .hw = &gpll0_div.hw }, + { .fw_name = "gpll0_div", .name = "gcc_mmss_gpll0_div_clk" }, }; static const struct parent_map mmss_xo_mmpll4_mmpll7_mmpll10_gpll0_gpll0_div_map[] = { @@ -436,7 +423,7 @@ static const struct clk_parent_data mmss_xo_mmpll4_mmpll7_mmpll10_gpll0_gpll0_di { .hw = &mmpll7_out_even.clkr.hw }, { .hw = &mmpll10_out_even.clkr.hw }, { .fw_name = "gpll0" }, - { .hw = &gpll0_div.hw }, + { .fw_name = "gpll0_div", .name = "gcc_mmss_gpll0_div_clk" }, }; static const struct parent_map mmss_xo_mmpll0_mmpll7_mmpll10_gpll0_gpll0_div_map[] = { @@ -454,7 +441,7 @@ static const struct clk_parent_data mmss_xo_mmpll0_mmpll7_mmpll10_gpll0_gpll0_di { .hw = &mmpll7_out_even.clkr.hw }, { .hw = &mmpll10_out_even.clkr.hw }, { .fw_name = "gpll0" }, - { .hw = &gpll0_div.hw }, + { .fw_name = "gpll0_div", .name = "gcc_mmss_gpll0_div_clk" }, }; static const struct parent_map mmss_xo_mmpll0_mmpll4_mmpll7_mmpll10_gpll0_gpll0_div_map[] = { @@ -474,7 +461,7 @@ static const struct clk_parent_data mmss_xo_mmpll0_mmpll4_mmpll7_mmpll10_gpll0_g { .hw = &mmpll7_out_even.clkr.hw }, { .hw = &mmpll10_out_even.clkr.hw }, { .fw_name = "gpll0" }, - { .hw = &gpll0_div.hw }, + { .fw_name = "gpll0_div", .name = "gcc_mmss_gpll0_div_clk" }, }; static struct clk_rcg2 byte0_clk_src = { @@ -2544,10 +2531,6 @@ static struct clk_branch vmem_ahb_clk = { }, }; -static struct clk_hw *mmcc_msm8998_hws[] = { - &gpll0_div.hw, -}; - static struct gdsc video_top_gdsc = { .gdscr = 0x1024, .pd = { @@ -2855,8 +2838,6 @@ static const struct qcom_cc_desc mmcc_msm8998_desc = { .num_resets = ARRAY_SIZE(mmcc_msm8998_resets), .gdscs = mmcc_msm8998_gdscs, .num_gdscs = ARRAY_SIZE(mmcc_msm8998_gdscs), - .clk_hws = mmcc_msm8998_hws, - .num_clk_hws = ARRAY_SIZE(mmcc_msm8998_hws), }; static const struct of_device_id mmcc_msm8998_match_table[] = { From patchwork Mon Jul 3 18:20:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 115466 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp715200vqx; Mon, 3 Jul 2023 11:34:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7j/bdDWuBtVQjzcEwL5t9F1fFxUYFryUAS6akStiyVBE8vMWJCMieJDVkoYVK4GbLJOHMy X-Received: by 2002:a05:6a21:9989:b0:12c:bbd3:a0dd with SMTP id ve9-20020a056a21998900b0012cbbd3a0ddmr16101343pzb.0.1688409288020; Mon, 03 Jul 2023 11:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409288; cv=none; d=google.com; s=arc-20160816; b=JIvl+BgPzeIsYAO1acnJ5lEd7CIWUcalrQpBUG/5XB8heGHvL/4rZL/eX4QFjmUk9k ciS+QuWPn5ytiJDBB9p6gyDlRqwmyvdYJ8XjiNRPAY0qj1qPxUvejavCEg49t9X1eL8y e/tdg0arGepCs6O2jO0rxu9AmNmgHaYKxvzpAv9IxFo0ZfYxaouGcH8o/6+Q4f+X1Mb/ rct3cENQ09uG3NNXTm+JhggTuGhzN8/LGfzQiK+LMxa7Nuh3HoiTzeMwvWZyNHLhFW0V 2OL+s9cRFLDmUUaM/fBibumfZozPf7fIXZoxF4g2vgi3g+yOoER96nrXqEtRJlgUDIfe YQvQ== 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=mMoCMtDKw+oilBFVn9iuBCIfJo4ov6JGgxWl+DyeDZI=; fh=qlMPOal/Qkg2LQpocX7vYbzTtdVFSj3bgc1rELmt3A8=; b=ToXdIp1hEyEajpdFyVToy90cU9WWoSl7rXYdafRiePObrhTCO+lxVHl8AzicJ4RinC Ky7jBLEdoM1yfpsM5na8iFnizJqRa3uq3z4zoYLXS9N/3mEzGmsUbS7LrMQk/hUnCgy3 Obcv5gbyKfGbe4/lfoDfWG5NyF5qQNe1AcBVykTfdf6SJID47GwDzi0tjhjRDMYyFzQP hLW7SMR9mcwk6br8CU7/rg8jm3MgIw4yIbmtFyh8MIH9G3o/SiosmqNLrSF/UxkwRsfr lP/PvrWlgvPcPZf1+ATFlXhtl4zyFBVjmvg2YRBjeacj75XpS9itSExEjBvdPRZsYt9B o5Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mkJkyf3c; 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 a8-20020a056a000c8800b00682850547a9si4623405pfv.201.2023.07.03.11.34.33; Mon, 03 Jul 2023 11:34:48 -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=mkJkyf3c; 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 S231268AbjGCSUe (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231218AbjGCSUX (ORCPT ); Mon, 3 Jul 2023 14:20:23 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFA66E73 for ; Mon, 3 Jul 2023 11:20:17 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b69ed7d050so76377991fa.2 for ; Mon, 03 Jul 2023 11:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408416; x=1691000416; 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=mMoCMtDKw+oilBFVn9iuBCIfJo4ov6JGgxWl+DyeDZI=; b=mkJkyf3cCt0nkb+4LfexC3d1AK/CC33YpQLi4RMAQ6jddtFVDVCNk19KxBVVO6ex41 YvGg3As8fxUKT30C51+08/We/atAU6CPC1fL+X+Wr80NDrR1FzxgtlrQYz1BYZjiut5S eOXVX8pm7UaoKk0A7OSsOsDnTaeHOWqx1sgSAnJNFnXGewtViaMpNltNK2/Q0g+G7QqZ dqaZPr3QWDKwfUP15wFfX0qogXcNuXAs+aYCmMjaztul5N4wOszC/ksaLHFh76jYp4T6 ErOSEmsFGQfjc3rDOb1zkalHqG28fXu/sY0oc0N3q3tQh4eMi4ERY6oqkLN/9WTq68dr MprA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408416; x=1691000416; 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=mMoCMtDKw+oilBFVn9iuBCIfJo4ov6JGgxWl+DyeDZI=; b=iYlVqLLATa5dEUYM2J9AKrwCqEn27+2Oy5ZZtDmKgDHFOwNqOgK2XLXWv0boAtorbm dQ3O/FKWji+L5kTlzbmG5wE3JQBlBoaO2hA76REVGr6um2uPaTmKhWKVDF9rBOPqwnic 6Jo//2QmbzipDzrsk1uFYTNjpG8GNgyPQoiB2zT0yi+loYKqQS9s1s4wy0LUjIsOX8cn syMG16HYtxiLZid+9gfJ7bF1hpicKZ3AlXBNeNS7WJ5XCdlCfU/fIp9AnJ/ctk50A5Mc goCqqVHIU0TpiGyW4D0Jcjrf3SPS63L/YpEVja151nOkCLP9cb0TZGfEj94UPD/RNp3p UbQA== X-Gm-Message-State: ABy/qLZkOCqCcPLIt9z2PO7PxDSHtxG+V1WJ5jvYFUogmpqyqftDR15r 9gIYz3ojrUNeaknwU+ulUAvHow== X-Received: by 2002:a2e:80d5:0:b0:2b6:ec2d:a4b with SMTP id r21-20020a2e80d5000000b002b6ec2d0a4bmr2256165ljg.42.1688408416333; Mon, 03 Jul 2023 11:20:16 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:16 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:09 +0200 Subject: [PATCH v2 5/8] clk: qcom: gpucc-msm8998: Use the correct GPLL0 leg with old DTs MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v2-5-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=933; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=of30u1SnABmz3I8AeyXXYsnJq/vKvFUI7MDU8kDdOEI=; b=e9UlQ0qbi7SeWjuaZi73FWEHwOV0ZkqBcHYh6CVRQzhQO0sDUsTh8aV0y0/KQriKJ31lc0ZYV pRgsGnb1AjrCnAOwk3EgQifWya7nK/l3i4qJkj3d6QG2UOwInovq6dY 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 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?1770425457675473675?= X-GMAIL-MSGID: =?utf-8?q?1770425457675473675?= GPUCC has its own GPLL0 legs - one for 1-1 and one for div-2 output. Add .name lookup to make sure older DTs consume the correct clock. Reviewed-by: Jeffrey Hugo Tested-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gpucc-msm8998.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gpucc-msm8998.c b/drivers/clk/qcom/gpucc-msm8998.c index f929e0f2333f..cc0b43354787 100644 --- a/drivers/clk/qcom/gpucc-msm8998.c +++ b/drivers/clk/qcom/gpucc-msm8998.c @@ -98,7 +98,7 @@ static const struct parent_map gpu_xo_gpll0_map[] = { static const struct clk_parent_data gpu_xo_gpll0[] = { { .hw = &gpucc_cxo_clk.clkr.hw }, - { .fw_name = "gpll0" }, + { .fw_name = "gpll0", .name = "gcc_gpu_gpll0_clk" }, }; static const struct parent_map gpu_xo_gpupll0_map[] = { From patchwork Mon Jul 3 18:20:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 115456 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp708497vqx; Mon, 3 Jul 2023 11:21:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7uyvlZw/vC0tzz01jl/ypgY5FA+RJ6jp3o9Fj2oYUdHXsixPDW/RTe/PF6n/mXAfYCTSB9 X-Received: by 2002:a05:6a21:3389:b0:123:3ec2:360d with SMTP id yy9-20020a056a21338900b001233ec2360dmr16816846pzb.5.1688408517340; Mon, 03 Jul 2023 11:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688408517; cv=none; d=google.com; s=arc-20160816; b=UtSBf7OdP55zTvFWMw2UPPb8+0Lz8EHTZ8cee6pGQCVfxwxsFi84/fjObcE81jWSPa 5sBx5uda/Ag4hcV4IAXQ6jZi9lYgQZQD2G1caf8/lZ1b+MVZwihxH4CGaMBe9FzHqXzE XHmsO0tY2BFk6hDqFSRoARykKW+1IekZTi1bhavwkPU98Lb6tgtcvxk2HrH/zi7Xkzip nVY7Os4rDhnjZbYSnSPiMLpR1Xu3u37h0ilA87KdgsIw9a9wZ7wfLOK1dpJU0g/SZPzT aVtkt8rYVpzFpCPPep+8ZJ1bDgIm4HYndgofZYVr5EeufQSTaQHBnKrzv9i3v1qtEarn YSog== 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=Qt7V3UlchNnOxeTA5rMeaxcrjkQGtjZo+XDYRU++2Ls=; fh=qlMPOal/Qkg2LQpocX7vYbzTtdVFSj3bgc1rELmt3A8=; b=AmfSp2Kzk4vNliRDAcOEgnaJTSCSewrT6tL+Gj9hs+1BstG79ubw2LSDuLedIBf+B8 WTjEIh9+vhHfSJHWmkA4jc4HAEMrjnK8yk9CdJlvNupRhlW3jqYXlJemlO5BJyDmC2uW 4yQaM/kKCbqaHN6snrxdLjvtTrdzkodBNFNKemrsG5n7ZuRcch+jvHoeydGIFHvZQEzR BX1g16Ck9GEiGjpUccx1O8j/jNlb3RpdoHj2YHOINxbLuXzw/803TIJq4m3b1MOUa/kl 8fUW6GXkkOexRWqGRHJq+CbHG33/t3SHbN3Y+kcB75im5rrcGKLEo46mnRBxfQpFTqSw uH5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vpv3etGn; 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 20-20020a621714000000b0068267c56811si6602118pfx.167.2023.07.03.11.21.42; Mon, 03 Jul 2023 11:21:57 -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=vpv3etGn; 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 S231344AbjGCSUh (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231230AbjGCSUX (ORCPT ); Mon, 3 Jul 2023 14:20:23 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE0D7E6A for ; Mon, 3 Jul 2023 11:20:19 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b69f1570b2so79430141fa.0 for ; Mon, 03 Jul 2023 11:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408418; x=1691000418; 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=Qt7V3UlchNnOxeTA5rMeaxcrjkQGtjZo+XDYRU++2Ls=; b=vpv3etGnXrrEh35dcbEHYW1nSyzFNZEy/767Pgh23Vnu80xCW8YURIg24i292S2E7I jrQ8RX+QYccHX+6ADW0dXKmvV/zz18cPkqaimQb/IPky3Xo7/HSbnbgrbdf46ZgbM0pa hD1BcT8M6RXz21wKPk21BEEGEMdd99Zx6Av+pp0LyAz/3I+2NrEcWZSEdrzPJhyKPeTy accz4U/BiVbEN2XG4TdertR42GI48Qyx5Yn7CN96aPz5uktTO/nPL/viWzIj5W9wACif PxfxXSslREtYASdLoEdSkMjFb0+rp4Xrp61Z45h2LyFPuMguxFEgdVQnisbWiWWJbbrB Rk1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408418; x=1691000418; 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=Qt7V3UlchNnOxeTA5rMeaxcrjkQGtjZo+XDYRU++2Ls=; b=dARYf8hKsT3jyjzc2rGqbjaTjQ6mYd/AQrOexkNuzlRUDApfkgVBF9eBhGx4KWBf4+ L88krTAvqM6PvMNtHWjZaWgBSeVBprn8Tqw9vuom3cH7uhSRZvJB7/VZCK6oAqmQ1OR7 cOxTIlJi2O8OjsnuNZUOca55hRJkIyd4pMSn1KbMGz7tD1w7+CSdwPJno50kn72Fn7hy PQ2Kh0vVeJkE/DSC85YNsIWkjMLo7qnu95dqPQtn44YJ9D6l1HUjVKx0Hj9loDzAsjsA 6CtoOIlc+3v//5VXI4g1JTUnBHabm7lEzhhl8/inXlGOVNWYj3ONgcaqttPEmq4UCseM FIng== X-Gm-Message-State: ABy/qLb9usBfnY3dhQNj+eF5LxTyYQVfeLeLbW0uFtVyKyLeg20R/U6G 51IaQA7WsH00W+DmXvyxvVDBbw== X-Received: by 2002:a2e:9059:0:b0:2b6:9909:79cb with SMTP id n25-20020a2e9059000000b002b6990979cbmr8308978ljg.42.1688408417855; Mon, 03 Jul 2023 11:20:17 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:17 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:10 +0200 Subject: [PATCH v2 6/8] clk: qcom: gcc-msm8998: Don't check halt bit on some branch clks MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v2-6-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=1472; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=viesbfDPZKW9ahGiPob2JBLSqZxiLZQDZKyuYqbzZTo=; b=ISB50XHa+GvfrRMOqhYdMo/UVo1dJsdoFWkSeQP1LpOycDTxnSvD3Uk7LzgTPleZL750EOjEM wY5p0o2x5bFDrPaT2fUtoswPpgixUEuOBZ1XrhPD9XifJHjRvie6ZE+ 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 autolearn=unavailable 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?1770424649543701618?= X-GMAIL-MSGID: =?utf-8?q?1770424649543701618?= Some branch clocks are governed externally and we're only supposed to send a request concerning their shutdown, not actually ensure it happens. Use the BRANCH_HALT_SKIP define to skip checking the halt bit. Reviewed-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8998.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index cccb19cae481..ef410f52f09f 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -2112,7 +2112,7 @@ static struct clk_branch gcc_gp3_clk = { static struct clk_branch gcc_bimc_gfx_clk = { .halt_reg = 0x46040, - .halt_check = BRANCH_HALT, + .halt_check = BRANCH_HALT_SKIP, .clkr = { .enable_reg = 0x46040, .enable_mask = BIT(0), @@ -2125,7 +2125,7 @@ static struct clk_branch gcc_bimc_gfx_clk = { static struct clk_branch gcc_gpu_bimc_gfx_clk = { .halt_reg = 0x71010, - .halt_check = BRANCH_HALT, + .halt_check = BRANCH_HALT_SKIP, .clkr = { .enable_reg = 0x71010, .enable_mask = BIT(0), @@ -2151,7 +2151,7 @@ static struct clk_branch gcc_gpu_bimc_gfx_src_clk = { static struct clk_branch gcc_gpu_cfg_ahb_clk = { .halt_reg = 0x71004, - .halt_check = BRANCH_HALT, + .halt_check = BRANCH_HALT_SKIP, .clkr = { .enable_reg = 0x71004, .enable_mask = BIT(0), From patchwork Mon Jul 3 18:20:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 115469 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp720953vqx; Mon, 3 Jul 2023 11:46:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlFkHbDhzOYIjSiNaA1tcXYvqidTEG9LVSY1JtMXS91Ubp44YfkqtL1ySxh1Adk2OdWZ41Sq X-Received: by 2002:a17:902:c9c5:b0:1b8:50a9:6874 with SMTP id q5-20020a170902c9c500b001b850a96874mr10919499pld.5.1688409992608; Mon, 03 Jul 2023 11:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688409992; cv=none; d=google.com; s=arc-20160816; b=R4XUtpvBNCfPszxl6i0cYIdTmDNio7av5erfIIHDnSmIpu3RpcleoDfMo0UkxzDpTK IEpBa4GDe6LniYUIjVLjr5VNcibgtnPZ5in+W2RxDAcXrbvd1Gw2eisBubAmAoD1zLzS a0TsAqpVWHptaFeEerkuwX/iqxN79dKtz+BPf9RZwazTbl34/crMTG+84fH3PFbXQA3j sbPYEt8OYEcATz8FiMSR/RTNmAv5/G2QajjrwPPPCGWSShieq1d3A3TVtTF3uYJbm3Yp 8NU2OYpkh+wPsujZQm3GNRCIjzgGmxwmQ48G203mYwlJhe5EH/EseCxLT7GwKVO5KHm7 TL3g== 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=hijFl2QUFFsHhXY1yCqHSNQt/9fhgFqGawyucytFczE=; fh=qlMPOal/Qkg2LQpocX7vYbzTtdVFSj3bgc1rELmt3A8=; b=WE0ijG92ZuLg8yUSITYhjksb9hEt32Sfy/lNvW3ng3gTXHH2OaHalwe6OPrWAIxV6d ERyXcCo+uETZnH0D0llawHnIaSwtTETiE/SXwxqHqXr9vqjs5zOiJVm4UmiCl74XwAD/ 9hK0gNowWoDomzISkuQlQ2Wf3MUzU4JmkgyoZy4R6oBpv3mzWdxbkQvM0XD9fT+pFOog s58km3nVCsiC9Pn53bUu9GBjcsysTq73H27U19wwBoLQE3aufDmAAtDEIc/VUJRgxc8J F5mkHJYAnjJmiAt0Z1Y0oLjXtOgBQdv/z4ZCdQ5wp+T7ZG8Hej+TwfYMgh8NxoAuQmai ZzmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vt5mos3t; 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 w24-20020a1709027b9800b001a6bb7b7a44si17760231pll.307.2023.07.03.11.46.14; Mon, 03 Jul 2023 11:46:32 -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=vt5mos3t; 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 S230515AbjGCSUk (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbjGCSUZ (ORCPT ); Mon, 3 Jul 2023 14:20:25 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE97610C4 for ; Mon, 3 Jul 2023 11:20:20 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b69e6cce7dso73427451fa.2 for ; Mon, 03 Jul 2023 11:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408419; x=1691000419; 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=hijFl2QUFFsHhXY1yCqHSNQt/9fhgFqGawyucytFczE=; b=vt5mos3tXUkE80GqbGibWwnnDX1jnTo2f17aW7MX1H5Rs1ZV1Zn+Cqz5TynUOaSQvn b0ZEpblbGjJ+J9BLO/meW0b9tpTx9RKr58bQLDj0v41Lrq/CcSN2cdDFSViGYUYtHVlU xuFkahbIct3Rs9h/M9SAvs1ZjBTLOGV6jjFfg5VAy9rc+HB5y2jlegSvvLWNbYaqAY/1 fjDYLjBW9UpG5zwMzNpDyGhtsncq9AKosnsFn6PgWAa+wwYIyVfEVBUQOF6m2NcQD7LQ dPiNfyypt30gqvFcN3oI6fjb7jlIJLYSwSbe7AI9vF8Cndn+vRI8zk9Y6rjcR4Z3IUNz twnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408419; x=1691000419; 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=hijFl2QUFFsHhXY1yCqHSNQt/9fhgFqGawyucytFczE=; b=eAoW3OK3nW4vwqJs3UUcD8ccXrOlj1ZhNmAqUUkIjKhjWkwiEoPbZBFwm35HivFzxQ +T2BPP2loBmu1EsQTM6aWPsIoCay8RZkVn4yTH6+LMobqYtGOGrxibVO7L9tkN4Xk2F0 54Qrx71Hyp3G+u21ib0CMQ3q0yGnfVAEdve6Hd027QjvnCS1JEdhCS3X4S2xMPLSjwqy mTgM99LoJkHHNeZhzfqEhxQqkv7NPczSAS+Mqwv/PkhplNowKd1Z+rwHFqxV9WOYyGoa 04b7tHurzHlWayqsPs8U9njB7xdh8CVUkaZxpxJwkCiMtNblx2gCRu5rL7XifuihEbdO ULHA== X-Gm-Message-State: ABy/qLbypwak9wZnPb0mg28qs9VqsGONFoT6Fei39TpbxbfCGAzyF0a9 QON8PYD/Qc/4xKA65868gn4s/Q== X-Received: by 2002:a2e:9c0e:0:b0:2b6:eceb:9bb with SMTP id s14-20020a2e9c0e000000b002b6eceb09bbmr1833215lji.45.1688408419279; Mon, 03 Jul 2023 11:20:19 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:18 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:11 +0200 Subject: [PATCH v2 7/8] arm64: dts: qcom: msm8998: Use the correct GPLL0 leg for GPUCC MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v2-7-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=790; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=bqBo821nh08iVKE/Ewr81Hlfh17hRb8F8VMbdnAAnZk=; b=hnGnT/+QKMk5tBC41mZER+wx0TcAZ1S/ACQphxhRJ8EjUoBZn/0nGbgZpC+Vep0idptLEkuee T72NIxEv2YWCewN2w6IEYolABdHrMyv95ZOmXJuno4SSraoDS63cVdq 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 autolearn=unavailable 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?1770426196242535854?= X-GMAIL-MSGID: =?utf-8?q?1770426196242535854?= GPUCC has its own GPLL0 leg, switch to it to allow shutting it down when it's unused. Reviewed-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index f0e943ff0046..74bd05579796 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -1574,7 +1574,7 @@ gpucc: clock-controller@5065000 { reg = <0x05065000 0x9000>; clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, - <&gcc GPLL0_OUT_MAIN>; + <&gcc GCC_GPU_GPLL0_CLK>; clock-names = "xo", "gpll0"; }; From patchwork Mon Jul 3 18:20:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 115457 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp709464vqx; Mon, 3 Jul 2023 11:23:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlGvLy9G1DMML1fPkFXs3+Kv6DoHbzD/3RsgdWWXM1tL1pXnDKdseoKwCVlY4qwH+HWrrDlC X-Received: by 2002:a17:902:fb8e:b0:1b8:70d2:eb3a with SMTP id lg14-20020a170902fb8e00b001b870d2eb3amr10549205plb.0.1688408623790; Mon, 03 Jul 2023 11:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688408623; cv=none; d=google.com; s=arc-20160816; b=ZOOazfT8eTr+uL5Y6yTYugzm73mqX2JzKYfykempGd9pUwG7XdQQnSCtX1Lo44eNht 2LGXLIXwzl+6rtDNylmBK9yQgM60h0DvdLJ5Pwa/yUUCv7Fihxi63UC6SNxW6erdWZ7z xJnmUi0P/macVR3EW8jTZLOOR1uvvA1pV3Or19c/EZhHuzDqCWmGTJ/HYQpEVdz66TlX qKWw1brI1YHog9xEZzG7OkVSCpzG9Fb22sgeCxjSgnxkLIvHPl6nSGL/fFUg1Y6WyMBd u1C/yGvCiRvpMJwjStfoydarTXHZlC3TlTGZScQ605UrxquNr+f6Wz722n8faAp8stxz sbjQ== 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=bMGOdp2WrmK72JlLnA4GZHmaTpxK++joMT5QYp1sllQ=; fh=qlMPOal/Qkg2LQpocX7vYbzTtdVFSj3bgc1rELmt3A8=; b=dnn7zZrf3E8+wBvRiuC89M4jnqZH0xXnv1Hgmmty4yPTOHtiitKeN7NLK3sLwaHAuA p2PhYqgs7eRpOFjkLGNszGnBSSVh5+T28b319SzYLxt0eJJVukbDm+SN9x6XxJe5unH6 PK2eid1TGM1Fjhg/Z6+SlY2PotfR/zRJ+9CCKuP9nclLKncfVM/4tSQPwL9Vv4UcIW/q C41sHrC8xibqWdrLB+ReJCjplWVreSTIWS7sXs54hbma46yRuJkuA7ByN7THz66PJ4A6 qyfsApRW+2ZBsVYB7VjLkC0uCDna20vU2eJvQVU7mLbPM73dEfsFur5pZ4xHBM5L5YiP 5TQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lhTdDtnH; 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 b6-20020a170902d50600b001b82da85c5asi12587118plg.336.2023.07.03.11.23.28; Mon, 03 Jul 2023 11:23:43 -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=lhTdDtnH; 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 S231435AbjGCSUs (ORCPT + 99 others); Mon, 3 Jul 2023 14:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231292AbjGCSUf (ORCPT ); Mon, 3 Jul 2023 14:20:35 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D430A10DC for ; Mon, 3 Jul 2023 11:20:22 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b5c231f842so70378371fa.2 for ; Mon, 03 Jul 2023 11:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688408421; x=1691000421; 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=bMGOdp2WrmK72JlLnA4GZHmaTpxK++joMT5QYp1sllQ=; b=lhTdDtnHM8h9ePa+Murs4OHPWVomZDeXPgOpnX3OehH26YGjrpqtm70lui0AjPvQtG jaYtgTl041ICwg0AI4Wu/6jmusMI2Acl+N7AmDGsFWGtT6866CWdY9kiiszXiQ16XoFs A9Zwi3qrscx/QnLuDmfkzMKizuAqL6rk2AEMpLN5mHtsCFBTZgXwn4nB87wANtHhph1C l7rty66I47+ALpGD0xCaWOQTSslViZZL5N2vJizbzhkoKG/lHLx6vaQJ0VTebvOFmOcS LgOawt1ww1e0qSzzYnBdCVMLj+ZkF2SfC34Lw2HJJ4ZnNaZjhR/zsnn7qh5S1pPQbFPi da4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408421; x=1691000421; 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=bMGOdp2WrmK72JlLnA4GZHmaTpxK++joMT5QYp1sllQ=; b=YSjVCs5IY5OLcjggNQB2w0c/5aFQ90/45xKkfS9S9n3U+BmkjN/qVk9NEnXBPy9Wi5 BYmOAeYqtGu7lJzFEpvXxdNZ1RpGiS6kL1hvT3VBgel6nSKxdX+3BoJJx91WuHZhSWbA 6TJB29T08HikGXpbCVhFr0w+Gy0lBqbtzhyZThwkp+oIwpI+Bz1LE4KSFhIYc9eGgmWt Ncr6FBHpk17ElvoSVdzy08xYGXQiXoHOjmCNX88Fb6IKgLM3JQqC5yuDU5A+GUpiTvp8 /7ZJTxVKmWXFVgJaPvRXYjUU9MlNUCqlo3PkHWb1rXC+gHzEV42ayKDPeiyCnDyp1MXP p2hg== X-Gm-Message-State: ABy/qLYre8rK+qOdkgQTh93qXrVB6MU4UN994bwcqWqujqj+bMUyMkC/ 9Dy4HpawwqkPMQ7/LVw7K91t8Q== X-Received: by 2002:a2e:850b:0:b0:2b6:ba00:f733 with SMTP id j11-20020a2e850b000000b002b6ba00f733mr8333259lji.18.1688408420733; Mon, 03 Jul 2023 11:20:20 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id s9-20020a2e9c09000000b002b6995f38a2sm4946224lji.100.2023.07.03.11.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 11:20:20 -0700 (PDT) From: Konrad Dybcio Date: Mon, 03 Jul 2023 20:20:12 +0200 Subject: [PATCH v2 8/8] arm64: dts: qcom: msm8998: Use the correct GPLL0_DIV leg for MMCC MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v2-8-6222fbc2916b@linaro.org> References: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> In-Reply-To: <20230622-topic-8998clk-v2-0-6222fbc2916b@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jeffrey Hugo , Taniya Das Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688408407; l=1108; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=rcLA8twyqUlcJD4D43vneN0vw2noKKbjZxFdyfHDJZM=; b=J9qF1k7V2CcK1QdJjF8lyl9xKqY04T25afPjuYYxmly9bH9mpvemJtiRXtaKrrEaWRVNontZE 8X79xc6aeF3D7pgVQuJGJEZIkWOOAAtyaan6pgi66L4r5buBBT1lL5i 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 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?1770424761185317464?= X-GMAIL-MSGID: =?utf-8?q?1770424761185317464?= MMCC has its own GPLL0 legs - one for 1-1 and one for div-2 output. We've already been using the correct one in the non-div case, start doing so for the other one as well. Reviewed-by: Jeffrey Hugo Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 74bd05579796..c4faba092368 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -2718,7 +2718,8 @@ mmcc: clock-controller@c8c0000 { "dsi1byte", "hdmipll", "dplink", - "dpvco"; + "dpvco", + "gpll0_div"; clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, <&gcc GCC_MMSS_GPLL0_CLK>, <0>, @@ -2727,7 +2728,8 @@ mmcc: clock-controller@c8c0000 { <0>, <0>, <0>, - <0>; + <0>, + <&gcc GCC_MMSS_GPLL0_DIV_CLK>; }; mmss_smmu: iommu@cd00000 {