From patchwork Thu Jun 22 11:57:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5008917vqr; Thu, 22 Jun 2023 05:00:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yXyHZsbqNt2ubW7seH/H57GWtonZAGMX/T+6XvYz8e3yiuzFQr4g4Kt0l+t0Le+tSXL78 X-Received: by 2002:a05:6a00:14c5:b0:66a:4e26:5466 with SMTP id w5-20020a056a0014c500b0066a4e265466mr3411547pfu.6.1687435214415; Thu, 22 Jun 2023 05:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687435214; cv=none; d=google.com; s=arc-20160816; b=Km90/DkV9QKCsdVk79Cgjqi/yQA/2mEhVykeV8NI/PQxyP5kGRNf/pWe4Ytt1Cq1kN UKae5unt4uHUiXamyJMNuIJezUkhf7DJReRuN5LGgGBdJJVIUZ+/HnI//HYCMFz8IucW E3RaYGvNP+JUznQQazmuv4R+RDGsDbUnA9frOzeN4tWWDLOSreNtnpFL9c0pF4O0oMan W6JgBmMiS1Pp5zpVWzQYXH/suxhFGmFMcs8yc1eWJoXxFpSwbMcP/M9p5WPsAMQ7GVXc UAjj5qfRgG/SJIPgP8bZHJ+kBUKliT4YWon1Frc2wG/5rP5HTUVH/ZGs7Ua2CTsl9xAp 8oQQ== 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=eOFjCTMIWVV57v3lgExuuj9IKwurSwMHmR2BddX7Xl0=; b=zYCiuA0ccnW6TsWRbl6JrsmoNpWaIUNk37ePmHstNxrQa7K562dCz6HAGpIoL+6Yaw tmsJEuyZlBRNAX5OrUsH00oWuw/TNKTqLXxqsqakKTbmQftpNNyfFazeRTQc8PO8l9E/ 4M7vFJwSqSBoQ7ErBybRNE2YUfK8uqULGB4BG71PqXpZHHCHAOpGIm/M8KDn6AdEUyVc C3FQDbtjFGyUEQpjayNfCHuKHrabdqAikGb2saL8LdwjMI7XV2HwPKorc2CeUepw1mam rewqj0qgy+zc+Lufqc3/nFh4UKRfgmuN3MeNbQici4RAvAm+ZWhuftNP0OXWi1t3DWFY GpFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zdL+qDXU; 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 x25-20020aa78f19000000b00666ec58d91bsi6150291pfr.99.2023.06.22.04.59.57; Thu, 22 Jun 2023 05:00:14 -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=zdL+qDXU; 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 S230395AbjFVL54 (ORCPT + 99 others); Thu, 22 Jun 2023 07:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbjFVL5w (ORCPT ); Thu, 22 Jun 2023 07:57:52 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 775101731 for ; Thu, 22 Jun 2023 04:57:51 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f954d7309fso692364e87.1 for ; Thu, 22 Jun 2023 04:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435070; x=1690027070; 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=eOFjCTMIWVV57v3lgExuuj9IKwurSwMHmR2BddX7Xl0=; b=zdL+qDXUcDjdC0PSF6r7Rsicvd/Fc/8yvM/7vxhrWzOV/ymDBW61CL2naugt+DwzJ0 +9u44BaEzuvcjcVLZaz2cN4ThVQGSSsPGBD2K06vD6PVBg1RWRTHgTvx/AfZyiXcwe1g +gcj0xV5Sqv8tq12mArpSqXTWzrczfyaN42xqdkHeRf4tdFgiQK9Ua/B+OgN13CzoW2N /5WXoHtfN+TzJ6tv4ETQKjLJY5+Tup7SCmQs6W7M3dh9vgHY4xw2GiTaMW+mL8D1hubO oGe1ttmA8wsKknixyQL9r/ws9y2JtLkrc3PkB8tSa2mSereG/KXiE51YUHT2kFkn0DZh qCXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435070; x=1690027070; 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=eOFjCTMIWVV57v3lgExuuj9IKwurSwMHmR2BddX7Xl0=; b=IsPgfIJhn9yWhV+rWUXl7u+epuZTTDmfftrUoDjgV8kQpAvTi7zKg1kVQ2AQSuBS9k dPajX67jxmcPguX9AnCSQ4y84+geL+MMCTkojVq9oQWDnYgISv+j4Sl+qN6gM6Ay1izn byHjsIukLI5SITB2dOxu3L2vhPCOqd5J25xUc/jABNAVrISKHFckLx/8AgrDxLiZUvQI d3NcT+myUKfCsQBfTZCrqCNVgAE0c8Sl8dDD9chUCcKTABKZm7XHxqKtUHLnkKXpX0I8 kppETHWUaL1sECz1egonYkKAbpmXepYn5DHruVLTWDT4VrNPtTUikmOdAVfl24Ux7xme j+1g== X-Gm-Message-State: AC+VfDzyr3ezJOLHs7Xy5CNaaByPpQFTjXxZsw2U+NT3OfvaeXLRBVul SoRHdVociHeVptzeZoaQgCwPAA== X-Received: by 2002:a05:6512:454:b0:4f8:565f:8ec7 with SMTP id y20-20020a056512045400b004f8565f8ec7mr6250699lfk.27.1687435069750; Thu, 22 Jun 2023 04:57:49 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:57:49 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:41 +0200 Subject: [PATCH 1/9] dt-bindings: clk: qcom,gcc-msm8998: Add missing GPU/MMSS GPLL0 legs MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-1-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=894; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=F8sCo+8Xd5XxI+0cPZIVX8PD/zdBEi1oKdosoXzGPrA=; b=A04xy8EGlHpSd10ms85yXgvIRB3fkqXy2CskjHYT7oJEcGjyDh3UOhwLi28idwcWGR5jAsHCa 6mNhZkxGrU+CerQACv/uqDtp1BYXsaK6ozrjnN0/9idcqx71HY2n+iI 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?1769404067468264610?= X-GMAIL-MSGID: =?utf-8?q?1769404067468264610?= 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. Signed-off-by: Konrad Dybcio Reviewed-by: Jeffrey Hugo Acked-by: Krzysztof Kozlowski --- 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 Thu Jun 22 11:57:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111650 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5032865vqr; Thu, 22 Jun 2023 05:36:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5H22ewctuxzIEvTv7C2mHIkAZ8glBr1FnFYzOrFa21fKs/GfaVZBrIsxgqaueOp1OUdaQP X-Received: by 2002:a05:6a20:1590:b0:122:de52:eaf4 with SMTP id h16-20020a056a20159000b00122de52eaf4mr7424759pzj.22.1687437370956; Thu, 22 Jun 2023 05:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687437370; cv=none; d=google.com; s=arc-20160816; b=aV5Qr5sAXuuehsGWfcpbYwrsvVYaKkBtmZjy5BCgWNIpVgMlINTwdsplwOBIihnY6C laH6VWX87QK8SGBUSbvVj93csSPBx0GwKRctkTxT3fds3qt6giikdBSokj6C3/0hLvVC RpIXg+0+t3F+b0BlAceT9bDOYr4FcWPjPVtxPYpjM4Oi/uVFIMqphPX/dbFRON3xfyXg IF3w80czjjgGcxnQBb1FgI2ZvlRJheSydMp97Pozd+cuvRoxJAtMImy3nwIwJti07xrN RqaxvHE+w75iuDpdruPGLfm7zXCqajZIf0FbXdxTtMBAuZXjjgyu8dLiS42w2pfoOW14 b0hQ== 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=phgyiyd8NbrxCJu24dU6XdDa1Tp6brfneR4jmAIEZFk=; b=gRh7PWyqdKXKY56+3LGAyqL3HurZNHh/rWol2ewhXJVVrzuRfxPf9nw9mttrQAg15/ SI/VKNz2bdkkT9Wlnzmji9+sfOWfVm9GXg3USDqjMRpCtvmHZXvhBrvKedzDtw1+JGgG tKw+ONTPnSfvdnhnqxxLxZFe1Ql5W2IsrlttexFlLo5GnfHHTiDgzsLN2KBXZobZ7ofF vP8R19/tzNeqroTfnAcMxwZ928eQI/2Umt+747zpJsAmmqjtN8UbobPyeHMVAcFOjt7A dIjYAXQXwWTs7QpHAddtQOFI1LFAO7MHEJpZigFnqa7Hu8re8ALNhWZbYtPi5z5VlBoC MkVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ky6+3kj7; 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 v188-20020a6261c5000000b006687ed7b4a5si6052520pfb.140.2023.06.22.05.35.54; Thu, 22 Jun 2023 05:36: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=Ky6+3kj7; 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 S230527AbjFVL6A (ORCPT + 99 others); Thu, 22 Jun 2023 07:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjFVL5y (ORCPT ); Thu, 22 Jun 2023 07:57:54 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 326C91731 for ; Thu, 22 Jun 2023 04:57:53 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b47742de92so69429621fa.0 for ; Thu, 22 Jun 2023 04:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435071; x=1690027071; 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=phgyiyd8NbrxCJu24dU6XdDa1Tp6brfneR4jmAIEZFk=; b=Ky6+3kj7p1NGvyDHXfF6QwkVm4eKnR1VRxBzDU26dbzn4AIKa9SOlFdrBd4l1wesqC CtoA3RkyAkh4dXKUM93UrfYA7uEVw7fDHWsUrZ5ye4a6kMMJfvEdYd4GC9AreQvVIPdm Tmhi1SaAoxpxQd5CkkLSV9P0lYgxw6ecrtAQKo7B1nAo48m/DaNSFSIgmdpMiT2Kw2nG 6Q4pT0B4MyvbIkLxgvcPmmlccy0nD2M7UuJ9sUwoO5KNnk6ePwvyV+vfGMQd49ppgjmO EU6LX8XtwVDtUuoIx3nntRT6OXnKDEdRnrKbwV0lsj3Llmm/r2xJ7eJ4afUPK8AO+B9l zQcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435071; x=1690027071; 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=phgyiyd8NbrxCJu24dU6XdDa1Tp6brfneR4jmAIEZFk=; b=AvH19l1Q3/fszJITYYvO2E042ymyawS//+d1iRxfLnh3rFBUgyLKgVhXzNGD652qj+ MMKtU6+0ubF7pBarUu9m01hyHDihypBlhwOH/T/Sfdab8vej/KTxEEPzHF6Z55vj/LTw jycFRWAIF0y0buK33MtCniG7XNYrdDOrCBZVmwxnJZugqyM6DM47AH5hCl6D/xuztgBT P6TgKqftNoPdwJO3Y4O5rPnYtFMAmC/TCJsvbs2wsMBuozL6wH0OFGvjHlWFsJrMkaMk 8X2fzSJWI5Vkwlz7VAwuj8kWs/J8aQGcd5kS7aFw7G+QxzYEGD5JQTOXyVMbVuUfbHng /z5w== X-Gm-Message-State: AC+VfDxz3mo7Ehe/q/JixUDtSLteUZexZriwE5sp5mNe8TZpUehTUxQc B4VnfSYDz0NMnMsPRvwEgJ0MfA== X-Received: by 2002:ac2:4db7:0:b0:4f8:5f19:4b49 with SMTP id h23-20020ac24db7000000b004f85f194b49mr9152682lfe.64.1687435071042; Thu, 22 Jun 2023 04:57:51 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:57:50 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:42 +0200 Subject: [PATCH 2/9] dt-bindings: clock: qcom,mmcc: Add GPLL0_DIV for MSM8998 MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-2-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=1020; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=L1ZmGJhvE+3c4nyhdd/kuy9sgSYN3qso+d9Gf0E28bg=; b=Kx7DZaLLz3cEJIXbp9mivyGMd4PNbgP5zWk35jXwsFRj7JGiT5rkci4Mf9psBo5lRJH9qd3Dl NgyA+ZH+KzZA+VuUP5rl+iMpX/+FvhQS8WcWc9r37M83UHbTEKujbRe 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?1769406328841159181?= X-GMAIL-MSGID: =?utf-8?q?1769406328841159181?= We've not been consuming that clock for no apparent reason. Describe it. Signed-off-by: Konrad Dybcio Acked-by: Jeffrey Hugo Acked-by: Rob Herring Acked-by: Krzysztof Kozlowski --- 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 Thu Jun 22 11:57:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5009286vqr; Thu, 22 Jun 2023 05:00:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+4ar3OztVSlwT810NNwyLGfFBff8wIbs2DgopFBsfqLTW4wVNJqp+FSh3/G0yu561aHVF X-Received: by 2002:a05:6358:a5e:b0:12c:9964:2394 with SMTP id 30-20020a0563580a5e00b0012c99642394mr10591164rwb.7.1687435241009; Thu, 22 Jun 2023 05:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687435240; cv=none; d=google.com; s=arc-20160816; b=KK7TqDq5Qm7A+KRaRbq23ayFt03ipjPhCQfTIu4XFDR0IggoUx02ZS85QxeTmEjhHR 8JKt172iioznOvhB0jBbUqiMXQ+APZhdC3WfQCedmggozNDaRwd91EoPc6LaeQEUjGoA 7lKlKk5NCSUuQZhJlzaBxTcj7qZb4Hk6mwL90rY5TWznBC4OSiIV+w4+c/p/nybk5x/T C+P7EhEafYR+QFLr6LVLx0yA1Kq+iI+4VGuohux3sAlSkR8oy3Pdfpn3NdVO87/B0qC4 Fk14LvPlpF7EuAfGdZTVWiN+qare6Gmm+Tk9ChrayuyfTQ9hsrijGBgWD4yf+GmTaWPm Ahjw== 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=PPujOzEdWd2GY4HdeqnnNvNNdoqp42lpZiZ5LAokMOw=; b=q57ohFYvNzbZiEEncYSdOUzH7Ybhx6jcFFezHqxP9+vkq5xIAGCih+STL0coOp1JIq AB9ZP02tlYdE0PhVBiqXnEK6/b6d8FlBT85bg5HuvdMBZI9KW6HW+yYyXtfa0lwcNeUP 8ZYZD5/6lm08LM0MByRg4SrdudsecXoq3E7C8sBsp1lERxXjTN8OSGuJZLCLc0C67IUZ LsSao5rrNASMwqUASx/3FfzIuoV2UO/LBH/MlGlzIDk6VjtWwsiJZttKC2l2GOnticWe 3UZCayngyaaZ+jcuH6dbYNjU7a7g6CQ3zt5hTts/9u68Zx923OkcXJ2Fih9tFtefzLby Kytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HeBuPRYR; 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 x185-20020a6386c2000000b005538ca839casi2955070pgd.546.2023.06.22.05.00.23; Thu, 22 Jun 2023 05:00:40 -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=HeBuPRYR; 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 S231187AbjFVL6v (ORCPT + 99 others); Thu, 22 Jun 2023 07:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230499AbjFVL54 (ORCPT ); Thu, 22 Jun 2023 07:57:56 -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 3111E1995 for ; Thu, 22 Jun 2023 04:57:54 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b47bfd4e45so63000541fa.0 for ; Thu, 22 Jun 2023 04:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435072; x=1690027072; 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=PPujOzEdWd2GY4HdeqnnNvNNdoqp42lpZiZ5LAokMOw=; b=HeBuPRYREe6zUYplbWauXyEe3mGM3Qm9PJU5r3opg6+KycUj+ZKoP5un8DvTCVpere t8gqZ8vZFExYOncaejZszdpOOx4TqBDwVBckVeZNLJRODHT/IQep/MUhJmTILpfQHLfK 4oIHr/2qEylM2u2bbXE3gyvSZ7MnMnm0BIhp5b1WH+UV/pwFx0K2bN4HuOfMU68rYtTV 7zr1BKDYbtIEJ0bCVFRTsgl8PCq6mldpIZwY/qCTwxSHGtPD5mQRlphYCGrqTusbIxby UDlhKyIbN/G3n+vu4TLEEs3y6eBivZHww0Rks19v0r2hSkDBXRhz1biwh1+QfQv6R98k SnnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435072; x=1690027072; 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=PPujOzEdWd2GY4HdeqnnNvNNdoqp42lpZiZ5LAokMOw=; b=fEKMWHreoqAvTnAD9m9IpIubfr+c+10AWLcmIZOF8ZMVzw+R4ZQ/J/pWMTZ2vnprJo FpBN47Rxk9ZELNXwiVt8jFirVsfO/QPO4urZh2xao2JljGD/uF+2hSnahYDigU2s7m1H 5jX+iyS0qX7m5sR96phwwGyect6KXGHIOvl3eh2vqSPJ6f/BzfcNZnbbgDtOuK2/63sw 2xKYmlfym5BWIqw7/Rera77jkRCTvswa3Ky2z8bpNNW0TnOQAV/3TRdHEQkBgjlHV7zb emJmSExMzNGHN+oPueOBzM0IBBTZWkHnOwHvJTIAHrkPDQCF/uCKXHIXMj8wR4ENP6ni yiyw== X-Gm-Message-State: AC+VfDzNTOoVOODGLVIDxn81RCJhaDFuB5hfnmz2+vkrjoE/2tsWfpAp l2cArKf03xFogSDOhCDGzac71w== X-Received: by 2002:a05:6512:10c5:b0:4f9:5c89:5b08 with SMTP id k5-20020a05651210c500b004f95c895b08mr3797275lfg.21.1687435072400; Thu, 22 Jun 2023 04:57:52 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:57:52 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:43 +0200 Subject: [PATCH 3/9] clk: qcom: gcc-msm8998: Control MMSS and GPUSS GPLL0 outputs properly MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-3-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=3280; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=wORPp1SOzai0xux6F9EqW6IU4OmrOUhUsCj/CQktK9I=; b=3mR5/0vkTCm7oxEnW0JY7n49EAER0TAEA7du9t+GVJsy+6i3aZPJA8czEKOCs6nlId6KF6oM3 JEdpkERivfkCdE70AGqlpC46WbXidxGXkd8XCLIuf1QLYsAeq1Muayo 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?1769404095296580989?= X-GMAIL-MSGID: =?utf-8?q?1769404095296580989?= 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. Signed-off-by: Konrad Dybcio Reviewed-by: Jeffrey Hugo Tested-by: Jeffrey Hugo --- 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 Thu Jun 22 11:57:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111651 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5033144vqr; Thu, 22 Jun 2023 05:36:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4cVpDttK2zk6bXNrrkDCs9Ud1b/+cXguZfu7cHM+OHJZoep7OMwaKjyXt+AyjxHrTQUK2E X-Received: by 2002:a05:6a21:339e:b0:121:b590:fb65 with SMTP id yy30-20020a056a21339e00b00121b590fb65mr11696160pzb.11.1687437397129; Thu, 22 Jun 2023 05:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687437397; cv=none; d=google.com; s=arc-20160816; b=fGjEtuaT3RFwwQ6REYjacXH9SRqP/Q83GU4HlrvBDjZOkvfJARcaJ9BvGnQ0vmtWpO v4le3oMUec8jDr5N8KepddQwwUgIle7RPgnv/ZK1EPzL6tf+14FTVCBlt8+N9lF4wXTJ FH7ty/DctzoOChjqUATsiEC20Z7P9Hsqytk2kMFBlFPLa/+RY+hT2d6KNpZdpSiL0SP4 knOIJyel71nLr/FsMUAZ3eFa4Rc58k1k8C4cX2KwYGdZi6vFzOq1x7m/755MioYqe5pJ kJSH3RdR5D2CfkwxJv30bL3A97eTjtSubG/8L5Lc7thL6Yyftr2ax4lfSILWAh9lalFo xVoQ== 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=XYM9GLuG18nnF6nHkBdPR8db3X7aGOtPbmA0W8Oaw2Q=; b=Q5S0QApFiTxykXFVyfR6cQF8Byv+kPgApxA7rCUPcafAr68Gs55wuN8kjV4dDd34kM mQ6zUJR1cXrmP5WXd8HzbiiQl580/GB0covOyflSeaIKBDecTaf7Dap0DSSCKy0WsADe cthTohwcBYY7SJdnZUaIgNGw8kk/QEosONkJVaoNJVg83hXFhhP7RIXFHdXElGNyYSf7 p+R4bkrezmS54lgvaj19Vz1h2AuJRSNvt3yy/I5pRYj9BwS67i9hqYh4ScVEXXfABeLM IHyDCnOZ1aR7fDmA3TIjuan5qxRr/8d64l6/oCWh0w3aJSpPFKSqHq4pvOES3WMOMEyw IobA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tWkFXXf+; 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 lb13-20020a170902fa4d00b001b533facaa6si6009731plb.313.2023.06.22.05.36.10; Thu, 22 Jun 2023 05:36:37 -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=tWkFXXf+; 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 S230343AbjFVL6j (ORCPT + 99 others); Thu, 22 Jun 2023 07:58:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjFVL6B (ORCPT ); Thu, 22 Jun 2023 07:58:01 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FDB6199D for ; Thu, 22 Jun 2023 04:57:55 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f8777caaa1so5228230e87.3 for ; Thu, 22 Jun 2023 04:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435074; x=1690027074; 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=XYM9GLuG18nnF6nHkBdPR8db3X7aGOtPbmA0W8Oaw2Q=; b=tWkFXXf+LTDED7jkEwbL2slXesxdxMJvvZvoJYzrsrSSw1F7bGh/adUXo7/Tj5cwbM f4NLqqdbnanr3aBp1sHLkxnoIFFz29Uf/yBk1Q9sglNtkGpOdlgmlwkSUSXTix3LowPu 8cEswdLY/S2812g1LAhAB0oAy2qR4R8uqCTv2FrVMUTA6E91JQ4gYOyGZQMKtsRcP03K ZCv2VdEoW8sZGFs4NGVa9itbBfNpvDfZ9L8VhQ0LmLE8gYHCe/vJH9tPll5HmUwrTjdS qJzIfIHo2py+RKodM4bh8Mwc/OBW/DZ0aTTp3xqnerKrIDi5rIlkKizVkAy/vUgvzMjO L2tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435074; x=1690027074; 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=XYM9GLuG18nnF6nHkBdPR8db3X7aGOtPbmA0W8Oaw2Q=; b=XnCMqzGWsyKoQKpXePuVJAO9035201F+KLfJeReoOffCSHYPzcytx7cKRX8myBnFHB OTtI8T7lbq6/4pB21H43IcXgKv8Ef653La2ojQoEDXZtnu9zNBexv+n3AoUAaRgE+BGd 2YZArcWPoOI46eyLPGxtfXRGG9s6FrFGbz+g826khgjfu7W61zoFaKjtXfPw3nc+/kvz YWN8nd+qDt+W3NUdDqUENtIkUb2z/IN7vvcy7wpC8mq8bp9GZ2AnyZPq9zbRZzDaOsbG vL7UeqyreRnJ8ua3utXy8V2/17rJvT1oiZ6y1XoIULwySq0sTWUmQnshBZWLXUxet2vK Vv0w== X-Gm-Message-State: AC+VfDyfkDOtOVqQnzzV+c9nWjAblFIOVsyCsj68x3ThnyaM0YXGbUtH 5sLseAj8ukODoLd3wZaBwhgzrg== X-Received: by 2002:ac2:5f96:0:b0:4f8:7895:a1a7 with SMTP id r22-20020ac25f96000000b004f87895a1a7mr6210191lfe.6.1687435073738; Thu, 22 Jun 2023 04:57:53 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:57:53 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:44 +0200 Subject: [PATCH 4/9] clk: qcom: mmcc-msm8998: Properly consume GPLL0 inputs MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-4-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=4835; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=9epwHHXm7694llyzrYE8Ibwsw00gm3N8GTw3CFx13Eo=; b=/5bBV3ls3t77na3yYjGyjhu7xsiRfwCJvHKl+HBCsTzQcNyR12Mt3ea+q2bU6DG2PMtnqK14Z EGgxaYz0RrTADqd7ZPNET+VKfwNmfpSsUKCz3+6lnIZzOVkj+iv2gCY 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?1769406356066306190?= X-GMAIL-MSGID: =?utf-8?q?1769406356066306190?= 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. Signed-off-by: Konrad Dybcio Reviewed-by: Jeffrey Hugo --- 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 Thu Jun 22 11:57:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111642 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5015643vqr; Thu, 22 Jun 2023 05:08:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4qEdQCzJmX6BN4jeXVl4TJHdqZVobCEqBKGtW1vX00JLnvWGSsHWN7dpcsO2aa9BOdrie4 X-Received: by 2002:a05:6a20:a5aa:b0:123:7989:ba54 with SMTP id bc42-20020a056a20a5aa00b001237989ba54mr2972165pzb.38.1687435717812; Thu, 22 Jun 2023 05:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687435717; cv=none; d=google.com; s=arc-20160816; b=V7pklb+vFYaJKaz5TPxJZpi7MLFku++RpS19WkZLnKYtG7T56YtZqFgOhrFMuD6DeH mzggk1DbwTfP260WwxP47BJEF3PM2AKd0ghDgz3ls1n1veZMtMdFxoibEIjBc5h68Czr iVkQuG3yzBynWnQSbLZu4zh6XTLaoo8AjR2K1T6jLq5jNd3WhcF5x7T1Diq7w2i8GU7S Hdy0NjqlZfTmkCRQtX1Ox0OwlwfD1uJUHhrqtSWhlYGyWK83twuKO5A+chp0PCj3DTGW wtx6RdoGnZVvCRuBVCh5q2nhup5S4/EokVKBmqvOAAzeNGroHvg8RO9DKAPjD/W4Ch7/ 6oaQ== 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=aU/QNfxVjYbWI2/agoiWsfl5ruwbIjST09FyM+SFUY8=; b=wmSaHPvy+Rj8l6zBtpad339MlX5IfboASV75PPZcTJLBzQRURQWBirwFwhIvUikkrn DxxlMmWlYzUZjX/hy6nzOUGRDe0d0k9hHmuDMHKIj1E5Lo3t5UT+fZ+RkYAY8sEeu2Fw 4o6zc42qbyc4l3653xGr9foFjU8nNwl99FnRJdKBHP3sLjZegQ8CJJddIXqDxX9R+1Kf qq1yz4079m4rcXkxUG4Ge6B/TOxMAO6Ae5BRlBa7PqdqtXrgtsc4UiS3tLsd5RP+TSkR 5URPoTAQxphHZkchbDHvrqSfjsUWg8YlBrDooL/eAxYrpUXyei7ccJtTx0SW88uUnp72 tN/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MZqIss5v; 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 m3-20020a637103000000b0054fd0012d40si4125704pgc.316.2023.06.22.05.08.07; Thu, 22 Jun 2023 05:08:37 -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=MZqIss5v; 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 S231138AbjFVL6n (ORCPT + 99 others); Thu, 22 Jun 2023 07:58:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbjFVL6C (ORCPT ); Thu, 22 Jun 2023 07:58:02 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C9B19AB for ; Thu, 22 Jun 2023 04:57:56 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f86bc35f13so7301523e87.1 for ; Thu, 22 Jun 2023 04:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435075; x=1690027075; 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=aU/QNfxVjYbWI2/agoiWsfl5ruwbIjST09FyM+SFUY8=; b=MZqIss5vdkr3pmHI1Er1dLMAr5Ff3KzM02vZoyn+nZrjnUMDy3s+CGl1BpIIYJyzxr Wbfv5nTfSeccmipVeh31WiKD+U0rqCUHj0GHs/2jGDMnKR09BPHs9/kIW+kNkw4gm2F7 iKgVri9DcPoEn0pM3yY0U/rcEpsAYvh0VxKREUDOf5sXBFjrNjpk9lNW0k7H5WLmBh27 f+kL/mg26deC+cCddPjd2GYOF0igNBUURQ8IeH5qZ0OcwaRP8gneOpOdZkAl3LstOWcY pvUvPeG76K1zvyd4H6Nn478XaMn58QYAhfYa+xMoSi5uCuT/EntQNOVnmDQsZlxltJQ0 OMtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435075; x=1690027075; 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=aU/QNfxVjYbWI2/agoiWsfl5ruwbIjST09FyM+SFUY8=; b=ABSQj0aRVLtNJHxNawgkqAUVJrRAM6JhYpOfbi2r8b5+pyAPWBAX0wrO0mp96lAkm1 /nLsXjQlb0+yUflb+u/AYQT+MvJq4PhZ0x2k5UMpBaMb5qJskG8FIl3LfBDjmc2W4ugb y3K/fMq4OpPiEzJRCUBwyQG5wcGYCS4Jv2zONuyjsZnoYN3i6sB/lA727lPLXzZjGK3q owhlE+QfxCzQLdNsYTO8fI8S2pwNxIEiqYsv0EypPV0NJq10aDAl10f1JNNRVJN3NifN wH973t/4gvOyYkiZp5C8IUpB6kCeY8UFdbiAlJHD/Hg//ampXgIzDbold+/w9dPCjY7I NWjg== X-Gm-Message-State: AC+VfDzA5YtEs3mdcw3ClRjNaOa1iutowjV0JAkqVoc+SgGUOqKbcvDC mztJJsqNpn3DybtyZrhTElo+bg== X-Received: by 2002:a05:6512:54a:b0:4f4:cacb:4b4b with SMTP id h10-20020a056512054a00b004f4cacb4b4bmr11234730lfl.18.1687435075017; Thu, 22 Jun 2023 04:57:55 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:57:54 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:45 +0200 Subject: [PATCH 5/9] clk: qcom: gpucc-msm8998: Use the correct GPLL0 leg with old DTs MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-5-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=831; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=i8Lw042X9XBNaAM5OkUSQrnlDPICd5ZeS5J2C6fGlZY=; b=me7knvddhaTPeU8nQVjnZIZmIFOw4YVK/zy9Jno9N9rZoEuEB2x5vTP8eDxWxY3fRQaGj/mek 38sJXMWE1YHDajluayrbOh+rK4B3QARql0uWfUQ/+iR8n7Y4XG5Inpw 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?1769404595138726426?= X-GMAIL-MSGID: =?utf-8?q?1769404595138726426?= 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. Signed-off-by: Konrad Dybcio Reviewed-by: Jeffrey Hugo --- 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 Thu Jun 22 11:57:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111640 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5009304vqr; Thu, 22 Jun 2023 05:00:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MJHvPOcQ2PWaIQMrgfMJ5rU5RaQgkYaqRxlYVUdG8bunLVdJWY9owxJNM68ij6plhHls4 X-Received: by 2002:a05:6a00:3a24:b0:668:98a1:5e9d with SMTP id fj36-20020a056a003a2400b0066898a15e9dmr10932976pfb.6.1687435242059; Thu, 22 Jun 2023 05:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687435242; cv=none; d=google.com; s=arc-20160816; b=ol0b+9VF0/OE+TrRkzOLzy652E+tkIXq2SmqiUdu80mZxaQgHXLTBw5iCpGaEGH6Qv CtYT8Y+IG4y8mG9J4Y3W/H3Mh1G1fQcA7S+BgdR8ha3gv48bsBtWkEPKx4t1o4PKfCVo uhwEvkg4PSLYu+KtokzoZ2qHKzk4DwlEZX6UL53QGUHQe+0ExiaMtTG76101x7f9t6WR RBtDFSYA1b9QKVYhnQJMWVJeAaJQLKT18NV225MeEfiiNoGSFVgvxiGYyr3lM4TqvegN o6OXwf829VubYWesoX84Ds60usjrFnoAjiifw3MbLtlEq0r0Kw0ng/4zLP4zWL61MIvA O5yA== 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=1BeSpE3Uo2n8gHC5/9wqy8m/N9Ajlsi5ROuDjpnkB8E=; b=OuuD4Xu2SY/2gvEr+fJVJik2FIsp8I9szyy/z4DY2aAIPJiTWByKmrNhxVUS5CMNu6 l0lUtSkwiioifjfLQhRfDh4I1F+UcCr4KvCHvzcNBSf5R9uPSPd8MbN4FIKWrLn4d9UL D1g324bqzI2mul5VE5c8q9IJ/xvXxqE7bIAiR9Ua8iFsEKuLVxLf9Egr7TOBn+C38F9M 7wYznDUujbqB42b6Nv9aLKEKiSLKB27YufYgXYpT0ASOwoADLNRceEDK4h7a4LXIvUnQ CLS96DbyKWLOfMYdhE19sGNWDrp384oJbk35jSkuAcuyz/F0euz3Wg5hgf9F/ot0hx+U FmoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uN9D9VCr; 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 k5-20020aa79985000000b00666e788d8fcsi6143018pfh.57.2023.06.22.05.00.22; Thu, 22 Jun 2023 05:00:42 -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=uN9D9VCr; 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 S230171AbjFVL6r (ORCPT + 99 others); Thu, 22 Jun 2023 07:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231161AbjFVL6C (ORCPT ); Thu, 22 Jun 2023 07:58:02 -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 3E7211BF9 for ; Thu, 22 Jun 2023 04:57:57 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b45c289615so95028241fa.1 for ; Thu, 22 Jun 2023 04:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435076; x=1690027076; 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=1BeSpE3Uo2n8gHC5/9wqy8m/N9Ajlsi5ROuDjpnkB8E=; b=uN9D9VCrZ/r2UEX6MtywDEFINRAwY0Xmp4Z/J8Qc38fn2mKMGtEH8SxxyGAGkNrJZv XgV/ojRqO28ptAy7Sn3JXO6QLfBHM8Y3UTmUHX8iTw6N52UJSmFrII+Scpemkl5TLW6i 7KUrsepVkTY+Z6wEJ1yMVmMETIB5cfYl8wP5yBWJAGH+MfAdjAsrhxmIHAwjU2gLJvnD Sv4tOhpQaqhrbdPw+xR5ENTnEFBg/CPYoqb2dIgh28Yzdaejy8ylVpaHTnoPIpbqHXkS jcGYk6HZTaW88U9EJXlkyVg8VTd9f2RkxjukzrcSiu28QSC10vUml+WgHgvhBFZqOiki a9og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435076; x=1690027076; 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=1BeSpE3Uo2n8gHC5/9wqy8m/N9Ajlsi5ROuDjpnkB8E=; b=kO/EGz1hlpxdzgNcr8uJ6WcBS1CZRrxOrO9S3r3NqDCjeW/wgw2VZiL0/nIhOgZ748 /DEzYKn0/pNu2ULiDBXkxkE/KXul0kMS1SUigCFxSNbvefG1qk/ydY0kzyadsXDt2onj oCj42NImnii9nOdoCHPKAcqLPcAR7WgnvY2VlHRvWu3I3CviPEKC2Bw2coHzUDQ8OZlQ m+WiJITl8Z8nXiskJUefv4tUkxXMNwZd+hxa3bSRBTd9zg2c8cymODnT2Iu3R4Am/vNr h7xR4NbH7SRyZKEphVg8uks3GixVeo+IfwXFFITeT27omqEaFRlgSvOezpKDLJpQGEFI 64Pw== X-Gm-Message-State: AC+VfDwsvZ1a8zpvJdypejWVY+ld0qS7bP8UaC0XwolCJV19l0luo2TX QEfzNTZ8rfAofo/kLvxaOaxAog== X-Received: by 2002:a05:6512:68:b0:4f6:3ab6:3d9e with SMTP id i8-20020a056512006800b004f63ab63d9emr9859962lfo.59.1687435076336; Thu, 22 Jun 2023 04:57:56 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:57:56 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:46 +0200 Subject: [PATCH 6/9] clk: qcom: gcc-msm8998: Don't check halt bit on some branch clks MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-6-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=1420; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=RMdpPTx0djdmSD0IRCOXo7v4qwhogMdk+CvkRbKSXoY=; b=nXGgMQ70zoaumt/TBlld6IqSQFvVaxn2XlqCKqTL97RyXLaeCUKWnUU136fMxxQeDB49j6YkX Nay9tUVEsgPCUFc3D8OUJSnju0/0HSp8deMuJoJKr+0Sy8N7N7hXXor 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?1769404096611613181?= X-GMAIL-MSGID: =?utf-8?q?1769404096611613181?= 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. Signed-off-by: Konrad Dybcio Reviewed-by: Jeffrey Hugo --- 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 Thu Jun 22 11:57:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111641 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5009444vqr; Thu, 22 Jun 2023 05:00:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7O4h9aAIYQrVOhQKVBZBXrO1c/lUJ2USolh2LzDgrNaloEk+yJlkIEz70tRfS6FTcVUfvu X-Received: by 2002:a05:6358:9f9d:b0:129:c564:63e0 with SMTP id fy29-20020a0563589f9d00b00129c56463e0mr12839341rwb.23.1687435250197; Thu, 22 Jun 2023 05:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687435250; cv=none; d=google.com; s=arc-20160816; b=PmsQBit/cg+muxmaTovqd7ZiyhHWkmtfNkJlMRrHeD0jZW0gUA1zUzQYKsTMitwcBu +cdON670Srt0TbQtBiFNLb4pGpY1sHSej17FTETlBOkmJZpmzu0l0jjQvVu6OC1Md+Pp Qwt6diWwe6oZ7gIl07iGl3cdqTgXpeG8nH94j0MCRJKUNJIjlf/rUYEp4SLhx06y4iz/ WiJhudy4xdkbFaQ7vZxa4RRRgQLigsRvJQo+7MWdcj0zh/ZySp7RMbGafHq/5+6qaXsY oNOyARuqZz8yyXqiOb43IdCnZ5vunOuhBGkG8wkjTwOIme2PIeCbBALy2ZS1viin2rdS HpFw== 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=ui/BOOndyfM3aIC3fjk2ZOYgUTAS5R3hDINVZmRj27A=; b=NNLQuO+xKz3oHfCh5xMfrxK0e66tl5gbkhcPBV+Nu6KWfCDkIZBhxODU0wx2Q1H7Qw 6WNkbxyaBM+++B0Xqla5BtEiABUBBiE4D7yyfKpwubW8LQlfUHpRS0PwHcXVnMjZuHtq DjCfkfxh6+oSzMMb2cHxqQQ/VIOPNudCSjToxtEyOcSpJRX3aF7AiHicANqpxnxBULvG yGuYUVYakaGR1DrnMlsShdvjoO4Lb7gt4vOlOj4rzUfXvRO6nyxxhgmoqpMg3xejH4pr BzLh4gWIFSIhETmqQPLpVSHaIxyWi091aZyYTt3Zh3PxvrfN8nONYtTxMrA8qla27l8A ZP7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G51dqI94; 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 x29-20020a63b21d000000b0053fb3688fadsi681726pge.144.2023.06.22.05.00.36; Thu, 22 Jun 2023 05:00:50 -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=G51dqI94; 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 S230422AbjFVL64 (ORCPT + 99 others); Thu, 22 Jun 2023 07:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231177AbjFVL6D (ORCPT ); Thu, 22 Jun 2023 07:58:03 -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 4FA1D1FCB for ; Thu, 22 Jun 2023 04:57:59 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b45e6e1b73so92126191fa.0 for ; Thu, 22 Jun 2023 04:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435077; x=1690027077; 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=ui/BOOndyfM3aIC3fjk2ZOYgUTAS5R3hDINVZmRj27A=; b=G51dqI94M4i4IoL75MXheNZetaeRNUfDFt8S35vZUGj26eZxjgTbZOIzRYJD0HucV8 rAs3iW+wMcnuDoX4mI6iKB+qLUbMm2L7xSSCes9QNqE1o1/akrk+sJw5ELyoDJcY809a tNLjN5qOuj3C8nrdCLNpMxMjEwQiSKJjJKaq3rAPGPix4U25stmqbH08hJxLNcDxqLbI pDZL5bZ+tpTUiazWnAjjXgKGB4OSqD399MM8mwrQ0+9BEzHr/KnD36roAdWj9z9kflWX uPGTIOX5cJ0ytC8hdZPpfyEBUMdIvCNtR2BBnABIQH2oc2NfHFNWkc5O2AQsBRgcDxp/ TzkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435077; x=1690027077; 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=ui/BOOndyfM3aIC3fjk2ZOYgUTAS5R3hDINVZmRj27A=; b=fKGGzHBnGGv+TEJiPnU5sfMHmQYYhAtRmYzeuONGQleOGLn3EdxElhuEwkAnzFi6DS pgYKwzanIHShFl7q3PFMUcXv5sRawGHWIdrmFxMj62lyA8D8Jlz+1i6Jrg0a3/WCjU3B QgSYBEREva6lGV8y+Vv0Q6ISGF0i0qnKu9HtogBeAqtNERRrLF9dLLTg124oM3W4szNN XrBOSGeskZimZ8QNyQUhLBuPvoICcbpwjB2OX+tDC+lY7G5S93IPLP2WJgof6vbI9SFa DWO6sLjyK6jdGTLFBwd2lEl4Id4hlXsnjZWQqU3UUfiVpCB+IntEo3cLAKjA8/1GwieU m1WA== X-Gm-Message-State: AC+VfDz9/2KUL1cBD8R8JxNKchGp4wJU7T9ssHzLf43HpR4bwtm2sC/5 R096BN18u6kwyWbN3/5jrKjK/g== X-Received: by 2002:a19:435a:0:b0:4f8:5905:8e0a with SMTP id m26-20020a19435a000000b004f859058e0amr9990226lfj.6.1687435077710; Thu, 22 Jun 2023 04:57:57 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:57:57 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:47 +0200 Subject: [PATCH 7/9] clk: qcom: gcc-msm8998: Don't poke at some BIMC GPU clocks MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-7-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=2115; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=xt2xPT5OWFY9FXJ7H/2LPYsGPu00r53wEVIqMuapaII=; b=2hr6uDLk8/eJg7nshvP5I7TXQUvGJL8vGwFfDFLbEISgkyuS7aAIb5FCtKRIygJ5N7EZdjXrW KWdmpt+lRi2ANl52Dl0WnNjZEpFIn2kDxSk8B92YxqJ2G82pnjvV3rB 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?1769404104449768544?= X-GMAIL-MSGID: =?utf-8?q?1769404104449768544?= Linux should apparently not be concerned with gcc_gpu_bimc_gfx_src_clk and gcc_gpu_bimc_gfx_src_clk on MSM8998, as they're preconfigured for us. Unregister them to prevent issues. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-msm8998.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8998.c b/drivers/clk/qcom/gcc-msm8998.c index ef410f52f09f..980b5a1b58ae 100644 --- a/drivers/clk/qcom/gcc-msm8998.c +++ b/drivers/clk/qcom/gcc-msm8998.c @@ -2136,19 +2136,6 @@ static struct clk_branch gcc_gpu_bimc_gfx_clk = { }, }; -static struct clk_branch gcc_gpu_bimc_gfx_src_clk = { - .halt_reg = 0x7100c, - .halt_check = BRANCH_HALT, - .clkr = { - .enable_reg = 0x7100c, - .enable_mask = BIT(0), - .hw.init = &(struct clk_init_data){ - .name = "gcc_gpu_bimc_gfx_src_clk", - .ops = &clk_branch2_ops, - }, - }, -}; - static struct clk_branch gcc_gpu_cfg_ahb_clk = { .halt_reg = 0x71004, .halt_check = BRANCH_HALT_SKIP, @@ -2168,19 +2155,6 @@ static struct clk_branch gcc_gpu_cfg_ahb_clk = { }, }; -static struct clk_branch gcc_gpu_snoc_dvm_gfx_clk = { - .halt_reg = 0x71018, - .halt_check = BRANCH_HALT, - .clkr = { - .enable_reg = 0x71018, - .enable_mask = BIT(0), - .hw.init = &(struct clk_init_data){ - .name = "gcc_gpu_snoc_dvm_gfx_clk", - .ops = &clk_branch2_ops, - }, - }, -}; - static struct clk_branch gcc_hmss_ahb_clk = { .halt_reg = 0x48000, .halt_check = BRANCH_HALT_VOTED, @@ -3032,9 +3006,7 @@ static struct clk_regmap *gcc_msm8998_clocks[] = { [GCC_GP3_CLK] = &gcc_gp3_clk.clkr, [GCC_BIMC_GFX_CLK] = &gcc_bimc_gfx_clk.clkr, [GCC_GPU_BIMC_GFX_CLK] = &gcc_gpu_bimc_gfx_clk.clkr, - [GCC_GPU_BIMC_GFX_SRC_CLK] = &gcc_gpu_bimc_gfx_src_clk.clkr, [GCC_GPU_CFG_AHB_CLK] = &gcc_gpu_cfg_ahb_clk.clkr, - [GCC_GPU_SNOC_DVM_GFX_CLK] = &gcc_gpu_snoc_dvm_gfx_clk.clkr, [GCC_HMSS_AHB_CLK] = &gcc_hmss_ahb_clk.clkr, [GCC_HMSS_AT_CLK] = &gcc_hmss_at_clk.clkr, [GCC_HMSS_RBCPR_CLK] = &gcc_hmss_rbcpr_clk.clkr, From patchwork Thu Jun 22 11:57:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111648 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5030306vqr; Thu, 22 Jun 2023 05:32:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4VyRC1bsaspxa392lJYB1ratjFU4gXdxi6btbyI8mScD33w9bSVb2szI9s8/30h9pwTekT X-Received: by 2002:a05:6a20:7d89:b0:122:b651:f8c0 with SMTP id v9-20020a056a207d8900b00122b651f8c0mr6750166pzj.28.1687437132614; Thu, 22 Jun 2023 05:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687437132; cv=none; d=google.com; s=arc-20160816; b=d9NxKP64MkSlgZet5YkmIaECUL1OoouNYFXjo0u6w/Gsj6P9wQOzyKoMTTkfUpEkxc 1EQmGYwrtm6Im8pWg22stSNzwfjyiKPHzPiADYE0BwfQq7zVOCMNTHQu1qmaRC1yK6dw U7DLCUnPIy1nnj8hIdNoTs7cqM8aCFldkVdgv194PS8ngTIrFW0nbarAr/bKF7Mv8jPG v8J2URuwallxGpi7RtpIcNM4wX9dqr6UQohiZjb400t+wIzou0wdoPuBZzrMYfGtsYQg zPQJMcehm3fWs3ShlaQQBkeF8/GwhdQz8+KDTq6RzO2I6k1CeVdN3qarfcW2PcSDUn8b cvGw== 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=ZILjfplVkyXwwY/Vk9vNMVAT/CrFw5qFILje9oH7ZxI=; b=nHy7Ci2VonW6DNSye3/iQAMlEETS/0WyKWC/RGdsMbhBZpxTOmlwPOHiX0bhgTLV62 533i4evPjwvmPsKF//xKPTDQEDPBQTTE37YorC6324W3uH8xb8HshAyrL7vvPo3PWe3p ZS4b/Weo8QnAmYSBqClUju/Oh8h/+hp0203eDxFUM2ALtiK60HBqzwGPTRZRX+MXrydi 4J1Uok4x8GGmVBk2rxo1gVlwDE2E53n+N4g/SeWPY0z8Ofx5yvecz6QWsdXcq93V45XM sEgeiJbxbswR6SABRAIx/4pfBXdc/RQFdQVKG6daaKUikCgd9WZfGqtSht5JP7GXuylt GAgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LFBzzcgB; 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 kt15-20020a170903088f00b001b4f6066f11si6123342plb.160.2023.06.22.05.31.49; Thu, 22 Jun 2023 05:32:12 -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=LFBzzcgB; 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 S230425AbjFVL6h (ORCPT + 99 others); Thu, 22 Jun 2023 07:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231214AbjFVL6F (ORCPT ); Thu, 22 Jun 2023 07:58:05 -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 3580C1FF5 for ; Thu, 22 Jun 2023 04:58:01 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b45b6adffbso95921521fa.3 for ; Thu, 22 Jun 2023 04:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435079; x=1690027079; 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=ZILjfplVkyXwwY/Vk9vNMVAT/CrFw5qFILje9oH7ZxI=; b=LFBzzcgBhdvdLMdLBlLx7ZI7Tbs8dLvXoX+sZiLRdvnn1fl4QQpTvnEsaiC+BagjKr 2XFndg/MxLlKknPcrXMlBOWXB0SWNWyMyS8FiCFTGRq3utGkWa/T2QpN2rZte6NigmUR tiPBaoyKKNyE5NvyH7vm14STfo/RCdqaLQyd1sYX8ts6f3kg0x4icfNr/+m8YX3YKSJh wrRTGLdPOzbKMFiatMpycMLTtgFmujXhcEdEHewhtQoebwEQLl98pEOSEEdzVBO6XBf6 84UdRTCigMjnJCmQ1wEo8+rMR6grFI6lS6zWRzKt9UdpRw+msamfuH7ZrHBLwDer2YZ9 zXXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435079; x=1690027079; 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=ZILjfplVkyXwwY/Vk9vNMVAT/CrFw5qFILje9oH7ZxI=; b=bauzQtFpLnKkrcRYntImfTQW5fFWV5VsmWFVHatspVq5YVQ0DcS2Jt8KOFdgi+k6Vv uQe8DShCfUDu6uNi4uTsbPuB8BEFAvM3BBL8/IFQk7Z5r+9HbdiQl9/YUb/KDEJYHYks 7vGFIhuAWRzlb8yAe3Odgbv3F3mE3DX9h79itNtosuFRCZaSxJx0PWhgkx6iuDroP0vf YwAqrKDhRirwsQNW+7mq52xNsBMPLHwwsEaSQdTVV/ANhFhS0GzDnsprj19DevtT2trN z9Hk2DtqsrxA+nKHHgIcKORtZQryngaWpNTx/hGQ1b6Dv41EnBx8tWES1dZFlVZbXy7I F/nA== X-Gm-Message-State: AC+VfDzSvc4Mf2iQWLxDrqpkByEbVgFtQY8L8y9MeXOPAOMPwxDYcvaW Sw3j+Vknor5vq9sPfSJrVGqGVg== X-Received: by 2002:a19:711c:0:b0:4f6:3000:4d5a with SMTP id m28-20020a19711c000000b004f630004d5amr10848140lfc.38.1687435079156; Thu, 22 Jun 2023 04:57:59 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:57:58 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:48 +0200 Subject: [PATCH 8/9] arm64: dts: qcom: msm8998: Use the correct GPLL0 leg for GPUCC MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-8-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=738; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=ih+ryM16TgO1zmWBZ5fg0NCby9pNBTJkiA0FEt7oBOI=; b=3x7GPBHGo/0XQ3mC4GY7XNBfXJTntEfg2XEHTbDuKkHQXoTAbrtUce1oLaNP9lDyknU0kLBdt UNjKraJy5nODREE6ElWLP7/tZhZTPee5Ge0CwmJkHSYDHd7PSGbWTdk 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?1769406078714135646?= X-GMAIL-MSGID: =?utf-8?q?1769406078714135646?= GPUCC has its own GPLL0 leg, switch to it to allow shutting it down when it's unused. Signed-off-by: Konrad Dybcio Reviewed-by: Jeffrey Hugo --- 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 Thu Jun 22 11:57:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 111638 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5009181vqr; Thu, 22 Jun 2023 05:00:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4JtbRfpkDMFfmvGFgHHdLVkF+RVTS1NvqZ/bTfSMTv8XUL2IhmWhX/V0pjqzYTnhV8i6UW X-Received: by 2002:a92:c841:0:b0:340:94d7:555 with SMTP id b1-20020a92c841000000b0034094d70555mr12261272ilq.20.1687435232976; Thu, 22 Jun 2023 05:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687435232; cv=none; d=google.com; s=arc-20160816; b=B0J0nFKu7uq9YUjLeZbtQsSWy0pcZ8Nb+aj6lPe0BP7gTNG9Csknsj0ShRoDxtkO9Z fRjVxxOgSPp2m5MyWXLV2rX2jOTHLXsHpoS9MjSBqlZ/CS9rbIMlDYTCSEckiXlg2Nfa YRWGE80+ksIO3AeIHwtw4AoWg2wFLRt8bYEXVV4qzNDf7jYs2UGQUopVqalV/hJcSV8g Yw56uOksb9Bo0BfDemtPfbppkdBK+oFJDuFKoP/s7LD2M0J75ZQOC59UW9CxdrcNY1+C uJh2jmW/b4CWyqmf2bt5Z3FEp75SxfH7bxDjzCahaPSEHJTU5DM5FvWFGbs99Vq4A39f OQJw== 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=qd4+5bYIJSD1AWeQPTgthQXsn71VUDPalDNC260pIEQ=; b=lVrhtSgAyRoJmwHWysJhs1SdpuShuyCnG69b3qwO/pGOdRIQPbths76ekOnrGZmVT2 Bajzhx78yUunDoeaddaht6KbRpdcKdjG+3/bInqM6KsbIg8gcKgZmANWCpXBvAjs3N9R I2N+Q0cfH6SXCIQUB4YOz+u8fOzWIwLTGhdRATuFiegz1mcODrBTE/qS+tKoRPMv/R4L GjM8L2MRyvSgxbAGn8oIlb2kSOroSXStP/riTEQjVr/L/ycSu+nekeVZID0rwGfH1k89 bNNukVwB5qP5Gta6u5ch6F8e804CuoxCXphQCVZi8YDN49q76tCyFn/jDJHyNup8yVHx j/vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s0PIpjdH; 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 h71-20020a63834a000000b00542b1792242si6442754pge.720.2023.06.22.05.00.10; Thu, 22 Jun 2023 05:00: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=s0PIpjdH; 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 S230519AbjFVL6a (ORCPT + 99 others); Thu, 22 Jun 2023 07:58:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231253AbjFVL6J (ORCPT ); Thu, 22 Jun 2023 07:58:09 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A489210B for ; Thu, 22 Jun 2023 04:58:02 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f955850e30so683090e87.1 for ; Thu, 22 Jun 2023 04:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687435080; x=1690027080; 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=qd4+5bYIJSD1AWeQPTgthQXsn71VUDPalDNC260pIEQ=; b=s0PIpjdHBrUCmeQJXzRAvu/7Mwfkh5y9yHnSBMd/UCbKepsIHfBNbp1Ck5i4GSkk6W Ypof/0JQ4qeLyg4e5sM0TyAwowvArVeU+FnQO5mXoIoyqEkvCdwiL/a9jT8baQZVWdjH jjKfLQOfsufM6WNmjlKHKSF0P/FbW/XEtI57A6VQfdtDuaiM8Gb+8DdXzFH6BBk+Mmml c/bL5/g5YiZm2g2pe9Tqrj+8sM7xfOeGQNYsvesoY7ak0ZaU6cDeHfjQn+1EVGrPf79y rwtB4glx+8vV1qCKtbx9jrcnsU1UeQCLQDGvwmw6fG8TZkZo4aUwQkL/ge9wGP9adtl4 E1vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687435080; x=1690027080; 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=qd4+5bYIJSD1AWeQPTgthQXsn71VUDPalDNC260pIEQ=; b=KM4IPp8G9Vadvdfyt6TeydcH9n6pRj8MTe5SSLr8bq5ueI9UwaQUpLAPZAu8bxqMT0 jHn2khvl/SwNYrbehsHhB/u5AzLjK7sKyjmrRuG9/mdwkMSw+ZAsJJMRu+WtPZXehYyX S1A81WZwIr6x0Jj0w7/txrKp7HnNsR2HKDCJcVqBFAp4D/QhMUw8eFmEyQtKoIEY3Qge teITOEgPBnDnLuGPsQcmbgUPc1Db5Ga1lO0rNlNdE9+mylbjs5vAuJeWgSN0z9tmXj4u a1n+HZs7miPbMKWSleZursN8cr2fW73a/eBRMKmXeUOBVN+fvoLr9+Slw1lyDD72jfuE ZvfQ== X-Gm-Message-State: AC+VfDxgsNmzuWC0SacvvOGXPcHppBKp0n6hU4AQoQTVhmaoxtWZ6YJ4 klyA3N0DA5bm95wwUioxf5vplQ== X-Received: by 2002:a05:6512:12d1:b0:4f7:65a7:4d94 with SMTP id p17-20020a05651212d100b004f765a74d94mr8080678lfg.7.1687435080447; Thu, 22 Jun 2023 04:58:00 -0700 (PDT) Received: from [192.168.1.101] (abyl165.neoplus.adsl.tpnet.pl. [83.9.31.165]) by smtp.gmail.com with ESMTPSA id eq21-20020a056512489500b004f4c3feb9fbsm1099235lfb.61.2023.06.22.04.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 04:58:00 -0700 (PDT) From: Konrad Dybcio Date: Thu, 22 Jun 2023 13:57:49 +0200 Subject: [PATCH 9/9] arm64: dts: qcom: msm8998: Use the correct GPLL0_DIV leg for MMCC MIME-Version: 1.0 Message-Id: <20230622-topic-8998clk-v1-9-5b7a0d6e98b1@linaro.org> References: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@linaro.org> In-Reply-To: <20230622-topic-8998clk-v1-0-5b7a0d6e98b1@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=1687435067; l=1056; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=gJtjlM23H/np8JPlgrRMMzMMmFruemZY5INaIEO4+Kg=; b=ZOzGxwxyKdjB5CuoCZtPs1vOWhS12y7dZRhQ3MdXQ/4bwzI2xByM4FWZDx1OQatfW2recggXb 6Hy5kqKivQtDFlZuMQ0ki2sV22O+49Wdan7ocq1Q56hCZGjMNz5OB1y 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?1769404086785684652?= X-GMAIL-MSGID: =?utf-8?q?1769404086785684652?= 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. Signed-off-by: Konrad Dybcio Reviewed-by: Jeffrey Hugo --- 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 {