From patchwork Mon Apr 25 18:51:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 565835 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC525C4321E for ; Mon, 25 Apr 2022 18:53:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244671AbiDYS4P (ORCPT ); Mon, 25 Apr 2022 14:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244658AbiDYS4N (ORCPT ); Mon, 25 Apr 2022 14:56:13 -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 6B4B9B7C54; Mon, 25 Apr 2022 11:53:08 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id m23so8182272ljc.0; Mon, 25 Apr 2022 11:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Nj6eqnbP/GgROpu1brsyfiHpGDpgD6a78O1S1lHu9aY=; b=AHamvxBLZw2yYVCl4t9M+9QhNa/DTOFTQDa4/vCWXOoTLXuGblZpQmVLCv5YTVHX3B EiGSzPrU8FrzOK6P9A2LWGgJAesoluf1m9lXqgV62994zkr5VqnjelME9M1tDm7GhMLj DJfUAXsfc/cz8pLHF202IwZoP3qIMK7QGJXeeDT3hjirGgr2sBIJkl/o7n9xMRlsNA0I fzvfn+0r1i07WjYG/EVBu9emgq8kNfTONQh9Bc5q8uagQbjiZrQW2SewVg6JAH4YcLIk JfIBx3IavMFFxFhebghGAPwjCoaExZaPieAloVg/R6MrunWEUD16bVOt/H+8tOlnf9MD 41vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Nj6eqnbP/GgROpu1brsyfiHpGDpgD6a78O1S1lHu9aY=; b=4868ewat8o+D2oU4ND3XRi5NZ3hcF+qigh5mNj/Pfioyv2oBzqUQT5gu1poBca4vh2 rEnoT+q/+UY1wyCkFV6gYTwJLVwn3YdP8inOQDbiTOOcML+bedI1GYn0TTkAyoyCnL1h evjfUAW2ttuVUyBd+dCnzacmTnfxhZ4GBYtfoKpmCk22pp6PeX8rorW5xf53TmZDnzf7 Q8rjFSHPLRrVp1oJ9L04HZXWZ5Ph1yO55l+GZiSwIzYxNkLbJlSmRK9+2vu/hp3DjDWV Q74AOHKIfKfKyDphsGLQb+HNrIaJp9vmkEkHCQPC5QIc+6JKQtefmqfYmi8E5kMdwqpU YCmg== X-Gm-Message-State: AOAM53244RfAEHSSax/il+QK8bSlNI1dq2rvAEeEfxwLg1XvHGTZyiMy Ecby4emM30UTcunt4EgYyZAg8Z6fMHU= X-Google-Smtp-Source: ABdhPJzNwPjSPPd0jKCKkPua8sNceB93G4IKePYT8GgNmJosIkvJ01B3EuKWWdgZ+6WQC9zAQD5cMQ== X-Received: by 2002:a2e:9497:0:b0:24e:eabd:bf61 with SMTP id c23-20020a2e9497000000b0024eeabdbf61mr12048155ljh.93.1650912786756; Mon, 25 Apr 2022 11:53:06 -0700 (PDT) Received: from localhost.localdomain (adla4.neoplus.adsl.tpnet.pl. [79.185.4.4]) by smtp.gmail.com with ESMTPSA id r20-20020ac25f94000000b00471fcf5b4basm913135lfe.90.2022.04.25.11.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 11:53:06 -0700 (PDT) From: Adam Skladowski To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] clk: qcom: gcc-msm8976: Set floor ops for SDCC Date: Mon, 25 Apr 2022 20:51:38 +0200 Message-Id: <20220425185140.15154-2-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220425185140.15154-1-a39.skl@gmail.com> References: <20220425185140.15154-1-a39.skl@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Just like in case of other SoCs change SDCC1/SDCC2 ops to floor to avoid overclocking controller. This commit only sets SDCC1/SDCC2 which are used for EMMC/SDCARD. It leaves SDCC3 because on this platform it's mostly used for WIFI/BT chips like on Sony Loire family devices. Signed-off-by: Adam Skladowski --- drivers/clk/qcom/gcc-msm8976.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8976.c b/drivers/clk/qcom/gcc-msm8976.c index a8b15814933e..5781a7bcecc6 100644 --- a/drivers/clk/qcom/gcc-msm8976.c +++ b/drivers/clk/qcom/gcc-msm8976.c @@ -1486,7 +1486,7 @@ static const struct clk_init_data sdcc1_apps_clk_src_8976v1_1_init = { .name = "sdcc1_apps_clk_src", .parent_data = gcc_parent_data_v1_1, .num_parents = ARRAY_SIZE(gcc_parent_data_v1_1), - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }; static struct clk_rcg2 sdcc1_apps_clk_src = { @@ -1499,7 +1499,7 @@ static struct clk_rcg2 sdcc1_apps_clk_src = { .name = "sdcc1_apps_clk_src", .parent_data = gcc_parent_data_1, .num_parents = ARRAY_SIZE(gcc_parent_data_1), - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, }; @@ -1547,7 +1547,7 @@ static struct clk_rcg2 sdcc2_apps_clk_src = { .name = "sdcc2_apps_clk_src", .parent_data = gcc_parent_data_4_8, .num_parents = ARRAY_SIZE(gcc_parent_data_4_8), - .ops = &clk_rcg2_ops, + .ops = &clk_rcg2_floor_ops, }, }; From patchwork Mon Apr 25 18:51:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 565834 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4A0CC4332F for ; Mon, 25 Apr 2022 18:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244686AbiDYS4R (ORCPT ); Mon, 25 Apr 2022 14:56:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244683AbiDYS4Q (ORCPT ); Mon, 25 Apr 2022 14:56:16 -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 599B8B7C62; Mon, 25 Apr 2022 11:53:11 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id g19so27876779lfv.2; Mon, 25 Apr 2022 11:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N+fC4tIw9/ys7TcIy0WZlZ78Vh7fLcIzflyXEOhgB6Y=; b=GsOMMIUrqiLQJvz5OznDyW8MRUrCZnp9s/6KzP6JH5rl/E6bRGFUlj8e8yVP4MrxXQ d/NF6FwJssHuIVHYM93YNdQ+MnH1dkOcUBP1BZpTzajzYEWGvJT2gu8lUHZtaQYp/yCF ij0EMOvXadyv8BV7uN8/qU/3xm/g+0/ggGCMHYwUTjdwT2s4V8wuUvz68Zt8xF2bEhVf YW5mHoY2hMYSD5IUUxtfeYUXS+QL1FtG8rtwmjQF4odeHxfTdFpL6j4F0apftqXQMO0V xoqpnbvUIyvtvHOZA2456UK45tSsdxGwUiDEe013tSBWR/LGhB6nYG93I0fXgItOcQcP HZFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N+fC4tIw9/ys7TcIy0WZlZ78Vh7fLcIzflyXEOhgB6Y=; b=EC+APxvUS6axqbwLtJzakoWSZQyyws5TkkE7Y1S5sEvPDv9rbxNgjgcGShW06a4q3h L4Ckykdj+CtACAe6PTVCbhip3YHsgNaDeLGQNcervGjhdAuiUzNEUIUxUN/r05Nh+GPa 3HKtWcLPY4xOgHFaJJLfUra9xM26owUJ3Q895zQ3+krt1l2QLXtlsralV9yHLQvHtkjG mplUYeP62ISTL4q3TUNZfHTXJaLwid638DPc43CzTywLCGOPmvpNRnhO4vnMhf3mPpoy tVrPqt+erskWWIW6VKZNxT0Q62sfVqabsmkjXUnm/hYojlcOuq8KCd43xakeWxsxVJ/e q9JQ== X-Gm-Message-State: AOAM532q6AeK8M+32UMuVmxCkEh0ooMunqOX0DTSK3OMonWOt/uHKEEd zOt/3ASNJ9WM7Kr2gZR9ccGd/Oi0i/paSQ== X-Google-Smtp-Source: ABdhPJwoEwSO53wZ2hL7cbcL5YhMZfx3ScOq7v1kwWcZL+8NCuipiD7CX8GC5zFr6eJUDxiRGcZz/g== X-Received: by 2002:a05:6512:31c6:b0:471:a1f2:91cb with SMTP id j6-20020a05651231c600b00471a1f291cbmr14810405lfe.364.1650912789541; Mon, 25 Apr 2022 11:53:09 -0700 (PDT) Received: from localhost.localdomain (adla4.neoplus.adsl.tpnet.pl. [79.185.4.4]) by smtp.gmail.com with ESMTPSA id r20-20020ac25f94000000b00471fcf5b4basm913135lfe.90.2022.04.25.11.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 11:53:09 -0700 (PDT) From: Adam Skladowski To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/3] clk: qcom: gcc-msm8976:Add modem reset Date: Mon, 25 Apr 2022 20:51:40 +0200 Message-Id: <20220425185140.15154-4-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220425185140.15154-1-a39.skl@gmail.com> References: <20220425185140.15154-1-a39.skl@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add modem reset, it will be needed during modem bringup. Signed-off-by: Adam Skladowski --- drivers/clk/qcom/gcc-msm8976.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-msm8976.c b/drivers/clk/qcom/gcc-msm8976.c index 5781a7bcecc6..6b112984694c 100644 --- a/drivers/clk/qcom/gcc-msm8976.c +++ b/drivers/clk/qcom/gcc-msm8976.c @@ -4056,6 +4056,7 @@ static const struct qcom_reset_map gcc_msm8976_resets[] = { [RST_CAMSS_CSI_VFE1_BCR] = { 0x58070 }, [RST_CAMSS_VFE1_BCR] = { 0x5807c }, [RST_CAMSS_CPP_BCR] = { 0x58080 }, + [RST_MSS_BCR] = { 0x71000 }, }; static struct gdsc *gcc_msm8976_gdscs[] = {