From patchwork Tue Apr 26 07:30:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 566291 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 B11E5C4332F for ; Tue, 26 Apr 2022 07:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343997AbiDZHfU (ORCPT ); Tue, 26 Apr 2022 03:35:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343994AbiDZHfT (ORCPT ); Tue, 26 Apr 2022 03:35:19 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27E94F69A7; Tue, 26 Apr 2022 00:32:13 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id p10so30368175lfa.12; Tue, 26 Apr 2022 00:32:13 -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=F0g9qo3ybY8iEO2/2tlXYPagk9pjmzx4hk34peH7j8k=; b=Co2nwDWBQVsthBmDYH6dvU1VZThHhk5SWTKvxo00/nQBInmNp2Nv7XedF/gfE2OdWo JkR6bYq97ykNARMB5OemScMwI1v+ZnuA8880YF3wQlkwA0uGSXH9XAG1wj53FFwArT7H IjNL8HYXhkw0+QBqQMRU1bTb1au5sk9ycQ2IZinlxHAMm+XnmaQTIicDXdVOHbdYrQjT vI1aSxRX4xLx1dy9MxrHxCSmTvYADpSi2mD7azgo3KfGy/alFJyPC93vUF2saNgALPy8 +L9BG00AOD3auO4h8qWFxrjmkC08Kk8QkSCC9PGpc8nOgV3uIN7mAj5egGT38gDSj6RK 27Tw== 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=F0g9qo3ybY8iEO2/2tlXYPagk9pjmzx4hk34peH7j8k=; b=V28mCWkNFcd4OsQlD/63IxSnc0NuW3fB4fjkhPid2Efwv0XNXiZdgwzXX1Mq25f5Nx ge3ZlC4YgrfNVxkP8SVs8uvqBGmjgPbD6PqhIlEgabM3UHC6EzJqWkLjZphaf0Is5cBi 3XJv9Oy4xsuZG2g9NiYNmmxhdOqy8bO/04w3SNE1pacPcOEsigkohTUY+gmie3Z5GXSa +OKtynB5S9CVIRmkuf5VA5deM+PTBbPquFpeWRctoPB/poUDvmKRMTFMvaeb2kYVPPtY OasHyTkdaZMK1XcG/eH24tIVyTAFqpkWfFGuIq2+n4XKsJczmDiBedquNZ+Vxl0TMMCP fghg== X-Gm-Message-State: AOAM531QEmIigAcvlugkSbrsztWtSrmnh9nMx+SX0l9QaeCJhMwZkUOq 4zJfVSn5gKg0IklxvF4iKGq5WEruztY= X-Google-Smtp-Source: ABdhPJwdk5fuJSUq/x1Yu+hY94qEr03UpTwjOfxptGJoFyvl4taVU1gXJkkrm70HzsVYWP76KDaoZw== X-Received: by 2002:a05:6512:3341:b0:44a:eb29:c59c with SMTP id y1-20020a056512334100b0044aeb29c59cmr15523622lfd.596.1650958331332; Tue, 26 Apr 2022 00:32:11 -0700 (PDT) Received: from localhost.localdomain (adla4.neoplus.adsl.tpnet.pl. [79.185.4.4]) by smtp.gmail.com with ESMTPSA id d2-20020a056512320200b004721999f1cesm103509lfe.66.2022.04.26.00.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 00:32:10 -0700 (PDT) From: Adam Skladowski To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , 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 v2 1/3] clk: qcom: gcc-msm8976: Set floor ops for SDCC Date: Tue, 26 Apr 2022 09:30:46 +0200 Message-Id: <20220426073048.11509-2-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220426073048.11509-1-a39.skl@gmail.com> References: <20220426073048.11509-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. Leave SDCC3 because on this platform it's mostly used for WIFI/BT chips, like on Sony Loire familly 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 Tue Apr 26 07:30:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 566290 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 CCFE5C4332F for ; Tue, 26 Apr 2022 07:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344007AbiDZHfZ (ORCPT ); Tue, 26 Apr 2022 03:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343994AbiDZHfX (ORCPT ); Tue, 26 Apr 2022 03:35:23 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0B79F8E6D; Tue, 26 Apr 2022 00:32:15 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id j4so5852099lfh.8; Tue, 26 Apr 2022 00:32:15 -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=P6WlvW3wqo4x24Uwzd08Bn3kfSqQqu/KbsEV52Q03IvO/1VG1D619mnLMCkfTX4k6T /yvDC3uQYpHV6Wt3hrZFP5WCtyGLX8ikJ7SwfAZWfMDLAZ+k4ZyTPvJGcqgakrD/wmHE Ag+L+MikjZayiDcAus2RbeZBvL7SOQb1gY/JkvJeGbgwFsSlpeRzJ+JqGb8ThkXyawyJ LUgNRkwapPoZo/E39jHvJkmaiIcG8L4E1OX29RDP87ElAjXwJrmPmrilyTtKf+Fe1j1J uAPcjE6FslRIZU59L5lt5Ay4SHu5Kmj5EPAGZqq/4vc9RNebPemOaKBKGx9I1YWEZRTz GFbw== 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=f1DtVfPuZ2uDgWeIUHXquQ+leHv65dXEFTNytlxDHiPq86Eu0tYB6brtXZWQIwp/rB 9U6U+lQeR6clcrphLcVZQXTZNbXuwb3shOKTkUfcg9xzJKXi3R9Zp2lRuFvJ+E4pfYO4 ZF09LAdmrmo7p/lKpx8JtCAfIxSrr6WgesYiovzVBj0nfigOdl8flYLgamfSS74PQk8u Q8dm8x6ouy1pIAB2zTvsl2FVJffJnliNN6ncffC/02LliOhS78MDM45+ivGbwD+iBxOr lhtXVTAEHuY1l8HU/NVyVzu6Q1OHnbWkbf8Lc02n+sHrdmrbARFaXxMJFEZq1GACjpxb o3qQ== X-Gm-Message-State: AOAM533TzSZxbLt7RqsrRZWXdYtMsri6qv7KEIDcVvn0hDZ1oILqX7Zl BPeC9fRW9/Yg7EkC7EssnHOGOt/O3J0= X-Google-Smtp-Source: ABdhPJwj24dKYh8u9U8BrMEF/22P2maMsTwPVANpPrzenuzF+i3ei7pUoEMxm3XWhRW3UoOAIlsF+Q== X-Received: by 2002:a05:6512:1319:b0:44a:c200:61e5 with SMTP id x25-20020a056512131900b0044ac20061e5mr15854052lfu.550.1650958334164; Tue, 26 Apr 2022 00:32:14 -0700 (PDT) Received: from localhost.localdomain (adla4.neoplus.adsl.tpnet.pl. [79.185.4.4]) by smtp.gmail.com with ESMTPSA id d2-20020a056512320200b004721999f1cesm103509lfe.66.2022.04.26.00.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 00:32:13 -0700 (PDT) From: Adam Skladowski To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , 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 v2 3/3] clk: qcom: gcc-msm8976: Add modem reset Date: Tue, 26 Apr 2022 09:30:48 +0200 Message-Id: <20220426073048.11509-4-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220426073048.11509-1-a39.skl@gmail.com> References: <20220426073048.11509-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[] = {