From patchwork Tue Jun 20 18:55:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 110653 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3875692vqr; Tue, 20 Jun 2023 12:01:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7HzLMNQkUFsjlSqg1E57vSNFxr3Wq0KKqAk/97ev5Fn8gGpjBXxH7P33Zw/6bZ7cGbSl6c X-Received: by 2002:a05:6359:6a3:b0:12b:de97:1be4 with SMTP id ei35-20020a05635906a300b0012bde971be4mr6103950rwb.30.1687287661023; Tue, 20 Jun 2023 12:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687287660; cv=none; d=google.com; s=arc-20160816; b=njqdnFjEojJOtp2Dve/jKNgTpjZ6gOSrGSG/BwT1ADzYXg+625zed5eoxdVpQsyLfy GMrlXgPWSmb+AtFRSQTph0hJ5oFI5MN0P5HnNt33TJH+T9zV5BSuSIqrCrTegQyBRyZK kcKl+Esy8vidvSrSLUcP/VeDjX3caM8qeTOCjtJoKc/Y0ujbGTvqw8KOHqag9CjeMmYt 4vUXgj8qUA9aVLtkI/ecmkXAqPlHV/mjOlvtEhx8BQNYMO2Y71j9c1Rt7X6ztGOdvfrI /m0goq2/PE3uVe5QlSQnmrI5aU9CPo20M3BybzJSfJ0MXt71uzAxqirR1ZF6nw9gzgKH xNmw== 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=aHWhWGxI+gIWrgxdsIEoKDAbK3764Y8ia34V6xPpSZ8=; b=hhkLYRPd6xUkBfOwtrDjZhfZRuBUndfhCjQGeZM64FKTqpuv9x7+SsMgOOagngzVa8 VhSzKmi2CyRA0M6bbhochsAYSyvzS9vUOytAv98WmMUsK7MnmhMTOHIqHgBlDC742GHc Z0Bybqr47bSlt/jeNGRfJe95zQ8VMiSN77I1gwbr6WWcRG4vQ8pULvfLKUqA+Ruu/yGk XyxXC7BEUlZP2b9UVZP2B0AfRIuHTWEdbj6HX5QChE+5UN7v/sHi7H1GrZb1OIi49hnT XSqs/2e9/3s+GQxFlKaJH0OvUszeRjX/t7plxpgCqYv1yJDvSgKIZ+fMmutuSbbB2Mgx /XZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zdmxr2BW; 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 w11-20020a63b74b000000b0055338653beesi2318866pgt.271.2023.06.20.12.00.44; Tue, 20 Jun 2023 12:01:00 -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=Zdmxr2BW; 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 S230145AbjFTSzW (ORCPT + 99 others); Tue, 20 Jun 2023 14:55:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbjFTSzJ (ORCPT ); Tue, 20 Jun 2023 14:55:09 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1ED01706 for ; Tue, 20 Jun 2023 11:55:05 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f8777caaa1so2385572e87.3 for ; Tue, 20 Jun 2023 11:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687287304; x=1689879304; 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=aHWhWGxI+gIWrgxdsIEoKDAbK3764Y8ia34V6xPpSZ8=; b=Zdmxr2BWekZ+o27AOP9dolQpYQxC4bAFXbhwPHvW80URY06BETFu8tgVie4+dajRCW 5RupB34sETrjljyoIZfnmhYZfitgoYATq2Qly75rgyoCFPPNnJgdD0jXIX9DNrCEkJhj qOmt/kbkbYjr/pMCXJdEjkEK6YD4OeC6tPO82XkCz+Q+/R0/ImHFq3lVOFPd8p2J8IkF L7iJwOgFNutOC/m6wZ264XxHeJPje0mkFsOEFIq4c/baFYvzxnB3X7m1V4gFXTjFXipU axfdSbDlJ6ty8i3kigJ3SkBfGcaQ84eBNDVYQGY8B1B341fmQnhKEz+yantknIiv4Tg+ KEkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687287304; x=1689879304; 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=aHWhWGxI+gIWrgxdsIEoKDAbK3764Y8ia34V6xPpSZ8=; b=VL71lqVEUdvQLpTEKYwE6xLe5Yi1t4HtXktRer16C8VnhES7Oo3B8b2ob1U4+xQcxL 4ZeZKhGhiARUHpUcWy7mnIlltATBm/GkEX5NAGrX5envgHEB1E8Ge6L1CBnRAosTqGvr /GWf2vquliqtcghJDOfWY9B6q46KTJWaCP1+JI49I64c7wRlhnSGo+d6gDmj5FSuzVqu HsgYOsW5UdagjsdABr85kXSkqj7P+PN/9lX/AzawTcDcqnppy/WUjFBRebmEwujQPgLy +tcvHf7npkjmYEQt+1oNSKuMWPJLBuC0WZPMcvnX23VlP1JqdoPhmKu3Hqqf7Kx44coM pGsQ== X-Gm-Message-State: AC+VfDzWD3apV+U6seAC0ltI3xZ0ppJtlscf8N/PIhq9l6L8LWf8ZrZV Lfww9wmxJoecRPZBQ9CAS6yvfQ== X-Received: by 2002:a19:7108:0:b0:4ef:f11c:f5b0 with SMTP id m8-20020a197108000000b004eff11cf5b0mr7396017lfc.54.1687287303979; Tue, 20 Jun 2023 11:55:03 -0700 (PDT) Received: from [192.168.1.101] (abxj193.neoplus.adsl.tpnet.pl. [83.9.3.193]) by smtp.gmail.com with ESMTPSA id v1-20020ac25921000000b004f867f8d157sm463899lfi.124.2023.06.20.11.55.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 11:55:03 -0700 (PDT) From: Konrad Dybcio Date: Tue, 20 Jun 2023 20:55:00 +0200 Subject: [PATCH 3/3] clk: qcom: gcc-sc8280xp: Add missing GDSCs MIME-Version: 1.0 Message-Id: <20230620-topic-sc8280_gccgdsc-v1-3-0fd91a942bda@linaro.org> References: <20230620-topic-sc8280_gccgdsc-v1-0-0fd91a942bda@linaro.org> In-Reply-To: <20230620-topic-sc8280_gccgdsc-v1-0-0fd91a942bda@linaro.org> To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687287298; l=3796; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=UpWmAPr/HPOctqmlcpw284qW29dCVKn9J2MOK2Err1E=; b=nyJGHDOyzmKntivEByH56F5Fz8sy1mETEgpXQOJMHvkopLccQhqqmFH/x/YiLcfPIjOp4MVY+ u4pddd3PmNtD4EwvjxjxPIky+dcWF9oJLblEq7tHI51K7Uwc6lRE5it X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=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?1769249346060878521?= X-GMAIL-MSGID: =?utf-8?q?1769249346060878521?= There are 10 more GDSCs that we've not been caring about, and by extension (and perhaps even more importantly), not putting to sleep. Add them. Fixes: d65d005f9a6c ("clk: qcom: add sc8280xp GCC driver") Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sc8280xp.c | 100 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c index 80bc741ee75a..910d4f08af89 100644 --- a/drivers/clk/qcom/gcc-sc8280xp.c +++ b/drivers/clk/qcom/gcc-sc8280xp.c @@ -6896,6 +6896,96 @@ static struct gdsc emac_1_gdsc = { .flags = HW_CTRL | RETAIN_FF_ENABLE, }; +static struct gdsc usb4_1_gdsc = { + .gdscr = 0xb8004, + .pd = { + .name = "usb4_1_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = HW_CTRL | RETAIN_FF_ENABLE, +}; + +static struct gdsc usb4_gdsc = { + .gdscr = 0x2a004, + .pd = { + .name = "usb4_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = HW_CTRL | RETAIN_FF_ENABLE, +}; + +static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { + .gdscr = 0x7d050, + .pd = { + .name = "hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, +}; + +static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc = { + .gdscr = 0x7d058, + .pd = { + .name = "hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, +}; + +static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc = { + .gdscr = 0x7d054, + .pd = { + .name = "hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, +}; + +static struct gdsc hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc = { + .gdscr = 0x7d06c, + .pd = { + .name = "hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, +}; + +static struct gdsc hlos1_vote_turing_mmu_tbu0_gdsc = { + .gdscr = 0x7d05c, + .pd = { + .name = "hlos1_vote_turing_mmu_tbu0_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, +}; + +static struct gdsc hlos1_vote_turing_mmu_tbu1_gdsc = { + .gdscr = 0x7d060, + .pd = { + .name = "hlos1_vote_turing_mmu_tbu1_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, +}; + +static struct gdsc hlos1_vote_turing_mmu_tbu2_gdsc = { + .gdscr = 0x7d0a0, + .pd = { + .name = "hlos1_vote_turing_mmu_tbu2_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, +}; + +static struct gdsc hlos1_vote_turing_mmu_tbu3_gdsc = { + .gdscr = 0x7d0a4, + .pd = { + .name = "hlos1_vote_turing_mmu_tbu3_gdsc", + }, + .pwrsts = PWRSTS_OFF_ON, + .flags = VOTABLE, +}; + static struct clk_regmap *gcc_sc8280xp_clocks[] = { [GCC_AGGRE_NOC_PCIE0_TUNNEL_AXI_CLK] = &gcc_aggre_noc_pcie0_tunnel_axi_clk.clkr, [GCC_AGGRE_NOC_PCIE1_TUNNEL_AXI_CLK] = &gcc_aggre_noc_pcie1_tunnel_axi_clk.clkr, @@ -7376,6 +7466,16 @@ static struct gdsc *gcc_sc8280xp_gdscs[] = { [USB30_SEC_GDSC] = &usb30_sec_gdsc, [EMAC_0_GDSC] = &emac_0_gdsc, [EMAC_1_GDSC] = &emac_1_gdsc, + [USB4_1_GDSC] = &usb4_1_gdsc, + [USB4_GDSC] = &usb4_gdsc, + [HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC] = &hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc, + [HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC] = &hlos1_vote_mmnoc_mmu_tbu_hf1_gdsc, + [HLOS1_VOTE_MMNOC_MMU_TBU_SF0_GDSC] = &hlos1_vote_mmnoc_mmu_tbu_sf0_gdsc, + [HLOS1_VOTE_MMNOC_MMU_TBU_SF1_GDSC] = &hlos1_vote_mmnoc_mmu_tbu_sf1_gdsc, + [HLOS1_VOTE_TURING_MMU_TBU0_GDSC] = &hlos1_vote_turing_mmu_tbu0_gdsc, + [HLOS1_VOTE_TURING_MMU_TBU1_GDSC] = &hlos1_vote_turing_mmu_tbu1_gdsc, + [HLOS1_VOTE_TURING_MMU_TBU2_GDSC] = &hlos1_vote_turing_mmu_tbu2_gdsc, + [HLOS1_VOTE_TURING_MMU_TBU3_GDSC] = &hlos1_vote_turing_mmu_tbu3_gdsc, }; static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = {