From patchwork Tue Jun 20 18:54:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 110652 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3875498vqr; Tue, 20 Jun 2023 12:00:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6BLt8utnSI1EDFPs4dKqdCf9mh7s17HKmQLYwVygGx/cotQaJ9wkBmuao+SibYVCctairX X-Received: by 2002:a05:6808:18a3:b0:3a0:3249:b2a6 with SMTP id bi35-20020a05680818a300b003a03249b2a6mr5209305oib.1.1687287641904; Tue, 20 Jun 2023 12:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687287641; cv=none; d=google.com; s=arc-20160816; b=UKTeS9AhsfF9G3AdWlyKaWJ9c+BERkgP247NTEylE9ewpc1MHg5H7t5oLqa/s42ia5 yy6Q36ubGfWl8ZtQ+kHU42xZnC16brsO9FwN5js7j1XaLcJCdqfh3R9MH87eTgSDX37M LLExtHyCgD3CqkiV2gguh/lkKqLA8v39aGZoRPLRpgS4UCnZwn9p/jeSORrkXrgFitBF u9wghrz1fuOUsffjgi0rpya0r+NDYTU6zdhUB7ME6d8rHfJhJptxLvk6Phs7lWIV1Lk3 2S7fw50DhXyeTm/YdoMeYnHHGoCXlwlLxHLeNRNttUpoZm9YySvruoStPh8KbmqJkwEK DFsA== 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=K2584mY2CIIT99nEUdLfXKaqA6hVAl1xKCUH5FIpuMY=; b=BohJQ/xTVriBvBjw4ShAGX9/gQqzBRbH7c13HsV0aY6wyTDTBroJjZgG/4Qvo1oFNo 9XwdINoqDxSA7lcWi+bT7XCC/MfJ+2CnOOjDEIDlanAMa411iBxU/HLZlN75cEY9pwW2 DBfvOlet5pJSNiFKwTeDpggoMRq89Sr8vlqp9ImAeD/M0wtyGfQAk2ngXHAwjY0gOaGt XFHEfFRUwKj6Usii/MfEaAxv0NZ4PemOmoJNJxqQvlkaPX20i4XvyHQvBPm3aQd3/Smn Wam+2NytBBNszpoGa3LcUPeNxFzHyoMpJsp6A3HXBuxzIxBVzU7MYCAd9WhP4ORCHKPj ebiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pA3az+vl; 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 k13-20020a170902c40d00b001b02658db01si2644796plk.580.2023.06.20.12.00.24; Tue, 20 Jun 2023 12:00:41 -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=pA3az+vl; 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 S230237AbjFTSzN (ORCPT + 99 others); Tue, 20 Jun 2023 14:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbjFTSzG (ORCPT ); Tue, 20 Jun 2023 14:55:06 -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 5594C172B for ; Tue, 20 Jun 2023 11:55:03 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f87592ecaeso3088667e87.0 for ; Tue, 20 Jun 2023 11:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687287301; x=1689879301; 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=K2584mY2CIIT99nEUdLfXKaqA6hVAl1xKCUH5FIpuMY=; b=pA3az+vlsg1FbU4r0H7GRSrMO1K/6APbS4mEww46QipnUF30dtExLhz1gYYX/8F5Rl OpUamyM3sKBleOa6+du24TuSsJysMv89q4m7VrlT+OiStX+h5DvMpuCXU0nk16gLZINW cqRcjhA3kHi28mQwnGrMSRls9xYwJKupH0zgcKZh7lO2P5WReXe4BdW7daYnY+0DWX2t jBLbdLGbJIf+/92EErAvaazbezajMfty0lSg60A1M3b1EiuCiCax0Lxvzlj/vUH87cjs JqroPLqRlXSezbV02SYBCqETLfoT+qZbe60EL9p1mjezyF+wirizL0AoMsK9wzWQLJuK XfCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687287301; x=1689879301; 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=K2584mY2CIIT99nEUdLfXKaqA6hVAl1xKCUH5FIpuMY=; b=AglHK4b4bFGx0/DxtwycfWrf9CQcikEQqyGhg6oZY3rmdVH3rxOIOE/C2I/xarybSa ZkRLa8fw+sgPYO+4sQ6SOMdVlwr6sWSn9JEpZB/hWgg7Afn1bF0sMzUToXdig8GTHAEv sR9t/9mJhFuI7NHu5pxXqdduFPuL87TPfQBJ77cMo1mutSGECVz7dKuo2WkUSCbfvwBt ZsrEqNdDn2ahpelCq5fWMHdpHsIO4ZM8dxx5dIvfn1xCu8qthvDXaogYg5ZnHqpJp8uP 4fRl7ldoW86xCvPNcT3LYF8cFcDuEWppB5hVqjFKU1djfkYOTJWZZ9N25qwu++B4RfJB RFuQ== X-Gm-Message-State: AC+VfDwcup2yD6jbyjxbpKvwO8bO2oXqXBHgM1lMp7ouGInDrTEKkcZK LNrlc2dp7x2dnRQecOs/X/DZ7A== X-Received: by 2002:a19:d619:0:b0:4f4:bbfc:3615 with SMTP id n25-20020a19d619000000b004f4bbfc3615mr7200331lfg.68.1687287301516; Tue, 20 Jun 2023 11:55:01 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 11:55:01 -0700 (PDT) From: Konrad Dybcio Date: Tue, 20 Jun 2023 20:54:58 +0200 Subject: [PATCH 1/3] clk: qcom: gcc-sc8280xp: Add missing GDSC flags MIME-Version: 1.0 Message-Id: <20230620-topic-sc8280_gccgdsc-v1-1-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=3934; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=zD4bAJffraIfwpzANPrCFCADlOJ036wDsQU07qiY6ho=; b=QeHHi6DuDgq2P9ODBKrUwVusAD4mrYFTqdvimc+cpr1Hb+Wy74AoiQrrbeeaKDiAHakNRCQr0 fWI+tRowT3cCeLWbIHV9X7jtAfUXn/EPu5u9EeENzqFp+5Pqxg/4WKS 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?1769249326490484851?= X-GMAIL-MSGID: =?utf-8?q?1769249326490484851?= All GDSCs were missing the flags that describe how they should be treated, namely: - HW_CTRL - whether the hardware control mode is enabled - RETAIN_FF_ENABLE - whether to enable retention registers Add them as appropriate, according to the data from downstream. Fixes: d65d005f9a6c ("clk: qcom: add sc8280xp GCC driver") Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/gcc-sc8280xp.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c index 04a99dbaa57e..80bc741ee75a 100644 --- a/drivers/clk/qcom/gcc-sc8280xp.c +++ b/drivers/clk/qcom/gcc-sc8280xp.c @@ -6760,7 +6760,7 @@ static struct gdsc pcie_0_tunnel_gdsc = { .name = "pcie_0_tunnel_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = VOTABLE, + .flags = VOTABLE | HW_CTRL | RETAIN_FF_ENABLE, }; static struct gdsc pcie_1_tunnel_gdsc = { @@ -6771,7 +6771,7 @@ static struct gdsc pcie_1_tunnel_gdsc = { .name = "pcie_1_tunnel_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = VOTABLE, + .flags = VOTABLE | HW_CTRL | RETAIN_FF_ENABLE, }; /* @@ -6786,7 +6786,7 @@ static struct gdsc pcie_2a_gdsc = { .name = "pcie_2a_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = VOTABLE | ALWAYS_ON, + .flags = VOTABLE | HW_CTRL | RETAIN_FF_ENABLE | ALWAYS_ON, }; static struct gdsc pcie_2b_gdsc = { @@ -6797,7 +6797,7 @@ static struct gdsc pcie_2b_gdsc = { .name = "pcie_2b_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = VOTABLE | ALWAYS_ON, + .flags = VOTABLE | HW_CTRL | RETAIN_FF_ENABLE | ALWAYS_ON, }; static struct gdsc pcie_3a_gdsc = { @@ -6808,7 +6808,7 @@ static struct gdsc pcie_3a_gdsc = { .name = "pcie_3a_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = VOTABLE | ALWAYS_ON, + .flags = VOTABLE | HW_CTRL | RETAIN_FF_ENABLE | ALWAYS_ON, }; static struct gdsc pcie_3b_gdsc = { @@ -6819,7 +6819,7 @@ static struct gdsc pcie_3b_gdsc = { .name = "pcie_3b_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = VOTABLE | ALWAYS_ON, + .flags = VOTABLE | HW_CTRL | RETAIN_FF_ENABLE | ALWAYS_ON, }; static struct gdsc pcie_4_gdsc = { @@ -6830,7 +6830,7 @@ static struct gdsc pcie_4_gdsc = { .name = "pcie_4_gdsc", }, .pwrsts = PWRSTS_OFF_ON, - .flags = VOTABLE | ALWAYS_ON, + .flags = VOTABLE | HW_CTRL | RETAIN_FF_ENABLE | ALWAYS_ON, }; static struct gdsc ufs_card_gdsc = { @@ -6839,6 +6839,7 @@ static struct gdsc ufs_card_gdsc = { .name = "ufs_card_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = RETAIN_FF_ENABLE, }; static struct gdsc ufs_phy_gdsc = { @@ -6847,6 +6848,7 @@ static struct gdsc ufs_phy_gdsc = { .name = "ufs_phy_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = RETAIN_FF_ENABLE, }; static struct gdsc usb30_mp_gdsc = { @@ -6855,6 +6857,7 @@ static struct gdsc usb30_mp_gdsc = { .name = "usb30_mp_gdsc", }, .pwrsts = PWRSTS_RET_ON, + .flags = RETAIN_FF_ENABLE, }; static struct gdsc usb30_prim_gdsc = { @@ -6863,6 +6866,7 @@ static struct gdsc usb30_prim_gdsc = { .name = "usb30_prim_gdsc", }, .pwrsts = PWRSTS_RET_ON, + .flags = RETAIN_FF_ENABLE, }; static struct gdsc usb30_sec_gdsc = { @@ -6871,6 +6875,7 @@ static struct gdsc usb30_sec_gdsc = { .name = "usb30_sec_gdsc", }, .pwrsts = PWRSTS_RET_ON, + .flags = RETAIN_FF_ENABLE, }; static struct gdsc emac_0_gdsc = { @@ -6879,6 +6884,7 @@ static struct gdsc emac_0_gdsc = { .name = "emac_0_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = HW_CTRL | RETAIN_FF_ENABLE, }; static struct gdsc emac_1_gdsc = { @@ -6887,6 +6893,7 @@ static struct gdsc emac_1_gdsc = { .name = "emac_1_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = HW_CTRL | RETAIN_FF_ENABLE, }; static struct clk_regmap *gcc_sc8280xp_clocks[] = { From patchwork Tue Jun 20 18:54:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 110657 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3898082vqr; Tue, 20 Jun 2023 12:42:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5r/UHjtGdcVczNzEVC9CP5hAlvdEZxYabnqtuXVAr5b1271VG+QRVK+irr508HU1JDay4m X-Received: by 2002:a05:6a20:244a:b0:10c:b9ed:6a38 with SMTP id t10-20020a056a20244a00b0010cb9ed6a38mr17721730pzc.28.1687290172824; Tue, 20 Jun 2023 12:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687290172; cv=none; d=google.com; s=arc-20160816; b=fBdZwM8jv/0YWdxkTFQ6l2b4Io39AxcINLeWcmqI3iIpTyDGFrc2Ta+Y3zUeRDatkI iUJqXjI6CMGkKhVcqp1rKR4To3mO3ItYPm4CDq1/NFjYco1Rp4fBEYOyoCxL7ouXm5s6 750ul3zq9XZSoT9af65XE0Z1fz/NV5FTvaPtJaBmJJM3AkJTkycx/1ll8wrkQMpcCFAT bJdU5xoBsvHHH8FAgt1xKBmeH5dd0yFbJCphsUmeaOxNHWPKvNEOZGTV/QKN8xtWCGqz hEFaFJCrDEBhEh/taZUAbiFf0iRSbYFlA4Gbm6cQkds2sr9HD+zlkZepTKguYi9rXwGE v/Kw== 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=xwVfz2bEaJCer+jeAEjthcK+T4pqpqU1JsGzvN+M+jU=; b=iIRoNZpnz1k7rbrFvxmYc45dnVPuhz9TQlSvMgcomCJDXxFGtXTv3r1plmPVTOQT20 4BhrTY7dQOjJ28TbCBWWxp0bsMt0rS/vAoVb3JVXRORw0CKnZniUOmE4v6IyruANC9JO LJ99hOKaGHD/KOCiABOZnMo4jGZHrOVySfTV1E1mh/ffLT8MQDav4ye4MXE73xR8HnTo PpbUxq/B3brpMndjWPM1TLAqqMyHJGPfdsEdLMoVUC4hneTsJ7Cs3mxeucMaoxAwpn7C l+7GmRsMm/nKFJ5PP3CxUMnYoWR2dLc7jSqx2WKHVqKTUeUhu787RedsZEkyqmz33dqk WyrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vVS7AWD2; 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 bs70-20020a632849000000b00553921dbc23si2171433pgb.675.2023.06.20.12.42.40; Tue, 20 Jun 2023 12:42:52 -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=vVS7AWD2; 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 S230246AbjFTSzR (ORCPT + 99 others); Tue, 20 Jun 2023 14:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbjFTSzH (ORCPT ); Tue, 20 Jun 2023 14:55:07 -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 7AF7C1731 for ; Tue, 20 Jun 2023 11:55:04 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f954d7309fso1051107e87.1 for ; Tue, 20 Jun 2023 11:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687287302; x=1689879302; 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=xwVfz2bEaJCer+jeAEjthcK+T4pqpqU1JsGzvN+M+jU=; b=vVS7AWD2Ro7EqTvhyl/8jS19LvItmOsclhWMkd5u+dM+swadAAaDmHXkFtB9n7IxPS 2dyKtlvdyQv6fh0qHMV1KUn7+dOCyskxVlmyNcNfds69QW6/sxqSEY03Og1xmq5gOxnQ imymHWim2uhKXw2/EJVeNhhI+dKKJCPR45yxmWaYPPlTdv8U90yxsZbkc9132q9QXyqj m2833vbC5CMBGFkCCD+la29WYDcyJ3S2geeCKJElbTxeXcIGzQ2xLAj7wBwXEXmQWwHV 0UBVk27jUVw+7YdTXCWxWzNtsb7+irUWFoBKw+RSWAIgsfnmnDLQkSNUF9I44lXXP0td Q0xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687287302; x=1689879302; 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=xwVfz2bEaJCer+jeAEjthcK+T4pqpqU1JsGzvN+M+jU=; b=azNEVLOAFVRDUIW+jpG5MXJKV6+Lf+lU7T2TBjcGG4qwSv7vVvbW9NIkaQFmyzV47N iE5Y/JahtknyM82qlmUvTPy5nFTLrLc4I4ilL2wuM09clYqooolxQuSE9aatHkuNDy34 EmTXvL4yM/JLNIeYbb46nkFeIE3RSgrBAwCj9wOYmduMhl4jWl/tXcFF7eEspB9hmkqc 9EQiwV4C0VL3VwwQSd30NDwnqaiYtvaaddv75vXSMmJeduGRAp5Lh5pMcB/Nvgs2L6pU tsJF6aOLfo5ciYmbmuaAxHVdRqyUxEiVXyLbmq7K+TwgT0hgi+F8HMEd2Ah02oXaGqeH Ik+A== X-Gm-Message-State: AC+VfDxgKMHp9lH0XqELQfBkg3pF8NTL/chBhtLwESlGcitwElGItJIA obw+mZyub2GlttRJ6nD38aJ00Q== X-Received: by 2002:ac2:4e0a:0:b0:4f6:56ca:36fc with SMTP id e10-20020ac24e0a000000b004f656ca36fcmr6774364lfr.6.1687287302737; Tue, 20 Jun 2023 11:55:02 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 11:55:02 -0700 (PDT) From: Konrad Dybcio Date: Tue, 20 Jun 2023 20:54:59 +0200 Subject: [PATCH 2/3] dt-bindings: clock: qcom,gcc-sc8280xp: Add missing GDSCs MIME-Version: 1.0 Message-Id: <20230620-topic-sc8280_gccgdsc-v1-2-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=1221; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=b3fOscs1Mn/FZl6XBM8E/StqOKB/3kR+0hvtGTWE+Sc=; b=rNBqt6XmLf0P7ecxaLthk40wXEGKyTzaMwyMBAMhvtphgvrZ7hu6snLFeHJ99EMu726CTI6k0 3FgLI+QykNZCH3l5T7GwuSNgrdyjZ8qAsHUzpHkalPCHeOSinLp/ziq 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?1769251979916672982?= X-GMAIL-MSGID: =?utf-8?q?1769251979916672982?= 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: a66a82f2a55e ("dt-bindings: clock: Add Qualcomm SC8280XP GCC bindings") Signed-off-by: Konrad Dybcio Acked-by: Rob Herring --- include/dt-bindings/clock/qcom,gcc-sc8280xp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sc8280xp.h b/include/dt-bindings/clock/qcom,gcc-sc8280xp.h index 721105ea4fad..845491591784 100644 --- a/include/dt-bindings/clock/qcom,gcc-sc8280xp.h +++ b/include/dt-bindings/clock/qcom,gcc-sc8280xp.h @@ -494,5 +494,15 @@ #define USB30_SEC_GDSC 11 #define EMAC_0_GDSC 12 #define EMAC_1_GDSC 13 +#define USB4_1_GDSC 14 +#define USB4_GDSC 15 +#define HLOS1_VOTE_MMNOC_MMU_TBU_HF0_GDSC 16 +#define HLOS1_VOTE_MMNOC_MMU_TBU_HF1_GDSC 17 +#define HLOS1_VOTE_MMNOC_MMU_TBU_SF0_GDSC 18 +#define HLOS1_VOTE_MMNOC_MMU_TBU_SF1_GDSC 19 +#define HLOS1_VOTE_TURING_MMU_TBU0_GDSC 20 +#define HLOS1_VOTE_TURING_MMU_TBU1_GDSC 21 +#define HLOS1_VOTE_TURING_MMU_TBU2_GDSC 22 +#define HLOS1_VOTE_TURING_MMU_TBU3_GDSC 23 #endif 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[] = {