From patchwork Sun Jul 23 16:08:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323233 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 C8D57C001DF for ; Sun, 23 Jul 2023 16:10:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230262AbjGWQKe (ORCPT ); Sun, 23 Jul 2023 12:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbjGWQKR (ORCPT ); Sun, 23 Jul 2023 12:10:17 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B258E7E; Sun, 23 Jul 2023 09:09:48 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-992f15c36fcso624269966b.3; Sun, 23 Jul 2023 09:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690128563; x=1690733363; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nA1IXoblbGcTRPbYr/vN/81mKW6fq6S+ZkLioQzIX0I=; b=R9GX4n0zrjH/JwkSD1MhAKnxJKk82PhEclnVcHItsIu7N/Mi54J5bw3PXkY+MawXYg RyGa1j1bNVqcX/8yMSMolTk5n2g+21mEqtF5uWPtdfpR0MEwyQiAmdwx+1oRc+QTT2m3 vtPsEmod1iA/M5D9c81m7WkA5MRN5up5RXn7wxtkVKR9ddhzh49ntjJwCtOmylKdvbqH DGGn8AR2U4dkSb0avJB0YLXEjK4BxC3q7zh1+9q85IYnNVMBfYs62yor0BnX201IVLSk z2tAK8ci7oCGURSXvgkzxWVlusazrL2MmqBVxnQxuQNhIbLVtHPJ3D4DNXNbKbbhcoCM Q/6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690128563; x=1690733363; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nA1IXoblbGcTRPbYr/vN/81mKW6fq6S+ZkLioQzIX0I=; b=JFNIQgvKkdKL/n5hyJBAHz68STG5Ys6xMCQSgmy+CdUHs6L+QS6bUpaz65WGlb7ehF EWCZK69qgr6qSWIr3TR0suKhk3Aov4Jw8kUQ/qUj2HS4tM+7UdkJAVF1HeTsoIc3Jk2z Dvcr6x7tFeVc/jniKIJXhUEMckfTtKy9Fu+i4KDmYKNOqC/ih+H0HBj7ehZ0XQ3cZLnR qIIP8LXpq0eBSi4eXUN4DgWxFsvvAMarafjWUrRB4KCnV6RvjuQa4zQDRv02g93x2Ew4 DgoMyuAXuDNLP4KS2GAZemYwKW2231CS+gWc5jpv9grVL/fBXnB/7K3x2MMMIrqt4/M8 rWMw== X-Gm-Message-State: ABy/qLZ0ket3I/d6cCrDXt6vqjB5BwydyS1TsUho3bJZ0csYhnfwiSyx NXP7/zZtDSptNlNatBu85zPoYhB6ykE= X-Google-Smtp-Source: APBJJlGcNwru9+jeQSIMste212J0qxhZOOY00CK47YlVz9kAFZHG+3jLO/MjeeU8DdbO+cTBv3rQAw== X-Received: by 2002:a17:906:76cd:b0:993:f12a:39ce with SMTP id q13-20020a17090676cd00b00993f12a39cemr8202198ejn.15.1690128562641; Sun, 23 Jul 2023 09:09:22 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id u16-20020a170906951000b0099b4d86fbccsm5425039ejx.141.2023.07.23.09.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 09:09:22 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/7] drivers: soc: qcom: rpmpd: Fix MSM8976 power domains setup Date: Sun, 23 Jul 2023 18:08:20 +0200 Message-Id: <20230723160827.22660-2-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723160827.22660-1-a39.skl@gmail.com> References: <20230723160827.22660-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Downstream kernel parses resource names based on pm8950-rpm-regulator.dtsi in such file qcom,resource-name takes three values: smpa,ldoa and clk0. First appearance of RWSC/RWSM point to msm-4.4 kernel which is way newer than what this platform was shipped with (msm-3.10). For the max_state downstream code limit value to TURBO inside dts with only one turbo_high being placed in msm-thermal bindings. One of effects of requesting TURBO_HIGH vote is rebooting of device which happens during voting inside WCNSS/IRIS, this behavior was observed on LeEco S2 smartphone. Fix regulator setup and drop unused resources. Fixes: b1d522443b4b ("soc: qcom: rpmpd: Add rpm power domains for msm8976") Signed-off-by: Adam Skladowski Reviewed-by: Dmitry Baryshkov --- drivers/soc/qcom/rpmpd.c | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c index 3135dd1dafe0..59caa4e7b99a 100644 --- a/drivers/soc/qcom/rpmpd.c +++ b/drivers/soc/qcom/rpmpd.c @@ -166,13 +166,6 @@ static struct rpmpd cx_rwcx0_vfl = { .key = KEY_FLOOR_LEVEL, }; -static struct rpmpd cx_rwsc2_vfl = { - .pd = { .name = "cx_vfl", }, - .res_type = RPMPD_RWSC, - .res_id = 2, - .key = KEY_FLOOR_LEVEL, -}; - static struct rpmpd cx_s1a_vfc = { .pd = { .name = "cx_vfc", }, .res_type = RPMPD_SMPA, @@ -329,6 +322,13 @@ static struct rpmpd mx_s6a_lvl_ao = { .key = KEY_LEVEL, }; +static struct rpmpd mx_s6a_vfl = { + .pd = { .name = "mx_vfl", }, + .res_type = RPMPD_SMPA, + .res_id = 6, + .key = KEY_FLOOR_LEVEL, +}; + static struct rpmpd mx_s7a_lvl_ao; static struct rpmpd mx_s7a_lvl = { .pd = { .name = "mx", }, @@ -361,13 +361,6 @@ static struct rpmpd mx_rwmx0_vfl = { .key = KEY_FLOOR_LEVEL, }; -static struct rpmpd mx_rwsm6_vfl = { - .pd = { .name = "mx_vfl", }, - .res_type = RPMPD_RWSM, - .res_id = 6, - .key = KEY_FLOOR_LEVEL, -}; - /* MD */ static struct rpmpd md_s1a_corner_ao; static struct rpmpd md_s1a_corner = { @@ -591,16 +584,16 @@ static const struct rpmpd_desc msm8953_desc = { static struct rpmpd *msm8976_rpmpds[] = { [MSM8976_VDDCX] = &cx_s2a_lvl, [MSM8976_VDDCX_AO] = &cx_s2a_lvl_ao, - [MSM8976_VDDCX_VFL] = &cx_rwsc2_vfl, + [MSM8976_VDDCX_VFL] = &cx_s2a_vfl, [MSM8976_VDDMX] = &mx_s6a_lvl, [MSM8976_VDDMX_AO] = &mx_s6a_lvl_ao, - [MSM8976_VDDMX_VFL] = &mx_rwsm6_vfl, + [MSM8976_VDDMX_VFL] = &mx_s6a_vfl, }; static const struct rpmpd_desc msm8976_desc = { .rpmpds = msm8976_rpmpds, .num_pds = ARRAY_SIZE(msm8976_rpmpds), - .max_state = RPM_SMD_LEVEL_TURBO_HIGH, + .max_state = RPM_SMD_LEVEL_TURBO, }; static struct rpmpd *msm8994_rpmpds[] = { From patchwork Sun Jul 23 16:08:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323232 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 0D15AC04FDF for ; Sun, 23 Jul 2023 16:10:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230195AbjGWQKd (ORCPT ); Sun, 23 Jul 2023 12:10:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbjGWQKV (ORCPT ); Sun, 23 Jul 2023 12:10:21 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DF7C19AB; Sun, 23 Jul 2023 09:09:49 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-991ef0b464cso987235766b.0; Sun, 23 Jul 2023 09:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690128564; x=1690733364; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c2veQxu8CUO6P1XePRFBe/UBdEyNGLJM/Toogbx/KiU=; b=rCRWyphLVpv5BaBfJbMtK/Kq7hN6XWTg+54WvIitnZAGyK8aoqbq261/U8/aZclp8R cQCLWoi6C/llJ4InbyYLi6MgiXbbbzZJGYFNPawL5PVYE26x9oFjvhDkEw+suongj+ZQ blLfT6bWK8WAuJhM9jB1DgjdEaXh6vR4mCc1uhW03fRdEZ3iG5VTQU1O/IqExRxfldrx BdDipNnZXba0J3QW34kQCDCeMU6dWAd8LhOGabN91xks0mbsopCjv2ViLLWPx2/t87M9 tDrqmA+bkivmTvEhPhuwWwh9FgO/QdFfcZwZKw3yGkJePuT8MqmttfNbRKuZ8bQXSu9Y XxPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690128564; x=1690733364; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c2veQxu8CUO6P1XePRFBe/UBdEyNGLJM/Toogbx/KiU=; b=W7uZLZdjFTAL5HTZ14DnCEYa2s6gNhmH1CTDcye7ZHndbHCjyuTPOPYcdCgQT36jk/ Xvbi0+5I3pbqKQIz4O8CsCT3eu91PzrkaCCkfp58W3eRmjmaLIdHpp0ZtZPAN+mDyKNy l7XQiy8zh0jcrthPoWx2AA+t7JYPE53PsKVR8PY6tPTXUKmLvW5FW91Mg6r9Pa1ZHii1 b6todX/yWiQHKfnsAtMpil2IApGhAL6udC9mGlNIMnpw4WVKBhpU0r1uN438QHrAbRwI e3W5T/7wSSQCRhqkifSIl03CgmGdBXvEftgGxznTcfm4hRfCi7tmIG4i6d/IIZhWyhsr 6U4w== X-Gm-Message-State: ABy/qLYa4HYiEKhGzgtDzOM8+rQ7Ns/ACdy79wDbq4ez2xpC5XXXxt0o czr2F8bImUxq7aBsHp4DOvryhGJbot8= X-Google-Smtp-Source: APBJJlFwIsIQryk9Q0z6iRZ5GHRdFGTKryrN46bOO1De3xg5QU5uQTyAdbGBs0nS/IgWahibdbzRVg== X-Received: by 2002:a17:906:2d4:b0:988:b61e:4219 with SMTP id 20-20020a17090602d400b00988b61e4219mr8155209ejk.29.1690128564696; Sun, 23 Jul 2023 09:09:24 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id u16-20020a170906951000b0099b4d86fbccsm5425039ejx.141.2023.07.23.09.09.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 09:09:24 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/7] clk: qcom: clk-hfpll: Configure l_val in init when required Date: Sun, 23 Jul 2023 18:08:21 +0200 Message-Id: <20230723160827.22660-3-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723160827.22660-1-a39.skl@gmail.com> References: <20230723160827.22660-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for pre-configuring default frequency multiplier, this appears to be required on some platforms like MSM8976. Without configuring L_VAL device reboots when trying to bring PLL up. Signed-off-by: Adam Skladowski Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/clk-hfpll.c | 4 ++++ drivers/clk/qcom/clk-hfpll.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/clk/qcom/clk-hfpll.c b/drivers/clk/qcom/clk-hfpll.c index 86f728dc69e5..705352aff067 100644 --- a/drivers/clk/qcom/clk-hfpll.c +++ b/drivers/clk/qcom/clk-hfpll.c @@ -44,6 +44,10 @@ static void __clk_hfpll_init_once(struct clk_hw *hw) regmap_write(regmap, hd->user_reg, regval); } + /* Write L_VAL from conf if it exist */ + if (hd->l_val) + regmap_write(regmap, hd->l_reg, hd->l_val); + if (hd->droop_reg) regmap_write(regmap, hd->droop_reg, hd->droop_val); diff --git a/drivers/clk/qcom/clk-hfpll.h b/drivers/clk/qcom/clk-hfpll.h index 2a57b2fb2f2f..27b9effcb3fd 100644 --- a/drivers/clk/qcom/clk-hfpll.h +++ b/drivers/clk/qcom/clk-hfpll.h @@ -18,6 +18,7 @@ struct hfpll_data { u32 status_reg; u8 lock_bit; + u32 l_val; u32 droop_val; u32 config_val; u32 user_val; From patchwork Sun Jul 23 16:08:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323234 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 E3234C00528 for ; Sun, 23 Jul 2023 16:10:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230201AbjGWQKh (ORCPT ); Sun, 23 Jul 2023 12:10:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbjGWQKX (ORCPT ); Sun, 23 Jul 2023 12:10:23 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DF1710C3; Sun, 23 Jul 2023 09:09:54 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9928abc11deso610254666b.1; Sun, 23 Jul 2023 09:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690128566; x=1690733366; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7BAq+BvflNUovD5dCGAVp95A2FMW4EGnXenei4TqxpM=; b=F9YirHYibwKQRJ/fLH6boCpDDKcMrFRjJ+S67loArQM84l/YlfKptUoKi/lKCK555X tD65ffNO/M6UjtGarnXEr37ZXTs6YFMIBKRYzUpcoRpKXRuwBqwqShvY96G/bt3oDpJx T5wcC85U8zZYCJ7hqoVzb9wd2CzyrZupAxcUjviNM3CqGA6tWKwzSURyca1vl7ep9gmE NefZu3Wv34JcUiKQV6QUALc1JpO48ago1iV70xVmxaykZMGAxrPCI8mRHKE1N8bZ47Sd QXSf3C1M71u/kLUUF85qthi1aUA4dLmujTElVDdy5N+r22DKvLh3w4ThdicOEPPb52Wu hvfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690128566; x=1690733366; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7BAq+BvflNUovD5dCGAVp95A2FMW4EGnXenei4TqxpM=; b=P0+YsNRWegKRHTSgYN8jwE6g1obc36qOZ5y7C71cm5HUUaIt7G/AKXwCUutg6e/neC yNJRjAqO9ndcS8KkUHt4J5BNRl4NGAh4W2v8h9TNWXk5aNZ4Zc4pj5Vcxl12Qq/ly163 CzTshPHREM8eIivQRFTSDW6PfFELnle7d9uZ1Zu2iN4k2Wsvi4uyzQkzVnVpUflSwerm PZi1U3Ik3RzKS7awylZt1XlWlhYF2WUNGBgi1wZt56YBOMEMC5aqvxrhOG3FJEjC+53j N6fspcTnXvC8IdueQeVkto1CPcDvdyNdIygOIR1bmsGsvvKOUhRRFmBK0VLpoO21I1zs 2wAg== X-Gm-Message-State: ABy/qLbyaumEitE9KdXwQmCt1KXs76hSUAic75ryOEhSfqnsRMKQeFe6 rF0LlU08Uj16hNE9YNagKs0fQAtB95w= X-Google-Smtp-Source: APBJJlH0Br/r3TdPtSz1DJYVwJV3flYxLwICHZw7L+YE75DppMrcvEJGODGCJT5UmZmZ0STQXyteiQ== X-Received: by 2002:a17:907:7810:b0:993:f2b4:13c9 with SMTP id la16-20020a170907781000b00993f2b413c9mr8325480ejc.21.1690128566738; Sun, 23 Jul 2023 09:09:26 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id u16-20020a170906951000b0099b4d86fbccsm5425039ejx.141.2023.07.23.09.09.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 09:09:26 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/7] clk: qcom: hfpll: Allow matching pdata Date: Sun, 23 Jul 2023 18:08:22 +0200 Message-Id: <20230723160827.22660-4-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723160827.22660-1-a39.skl@gmail.com> References: <20230723160827.22660-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org HFPLL driver can be used to drive PLLs also on different SoCs like MSM8976 On MSM8976 each PLL gets it own different configuration, add matching pdata to driver to support multiple configurations. Signed-off-by: Adam Skladowski --- drivers/clk/qcom/hfpll.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c index f4d78003d189..ec18bc8f0089 100644 --- a/drivers/clk/qcom/hfpll.c +++ b/drivers/clk/qcom/hfpll.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -32,7 +33,7 @@ static const struct hfpll_data hdata = { }; static const struct of_device_id qcom_hfpll_match_table[] = { - { .compatible = "qcom,hfpll" }, + { .compatible = "qcom,hfpll", &hdata }, { } }; MODULE_DEVICE_TABLE(of, qcom_hfpll_match_table); @@ -83,7 +84,7 @@ static int qcom_hfpll_probe(struct platform_device *pdev) init.parent_data = &pdata; - h->d = &hdata; + h->d = of_device_get_match_data(&pdev->dev); h->clkr.hw.init = &init; spin_lock_init(&h->lock); From patchwork Sun Jul 23 16:08:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323235 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 8BA3BC04A6A for ; Sun, 23 Jul 2023 16:11:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230301AbjGWQK5 (ORCPT ); Sun, 23 Jul 2023 12:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbjGWQKb (ORCPT ); Sun, 23 Jul 2023 12:10:31 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 532CB2691; Sun, 23 Jul 2023 09:10:05 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-98dfb3f9af6so623353566b.2; Sun, 23 Jul 2023 09:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690128569; x=1690733369; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pUcwhA8G7S1cIbVU/vc9FW2erMBFb+FEatJ9nSLfdYU=; b=PkvzZSyZVg6CQ+77fjkN2hXwOvJsXtdCIUgIHt7L3wAqueyqX942toBG0VhpswJJ+k 4hvaoOXNaIZIkFJ0S5WTQAzxJU3ALlVHXYUaSg6QwdPGDstmifXxL25c62TToOo57lJL +mPIapiUQaMAVxOeymWUtg2NZTyjBxwhAcPG0pUGbaDaCoSSCMDUWqo1XTvBemxmwSlr QC/Gc+MgdUdmJYq1ss2jPPEYcD7TFRxoOZeKHPZHME7IeHb/nUGm11gdN1F8RUwD0Yib jciUjQJCeLHpeW2D7kxw7XNhuxjZw+PIeIr0nLyPn6gK3h2YQPvwBTYNXwgFq4NKlXqY op9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690128569; x=1690733369; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pUcwhA8G7S1cIbVU/vc9FW2erMBFb+FEatJ9nSLfdYU=; b=XSXbB4xPXIZdv4MOzOapOscn9UXV6nfI+oaHhL8TU4NFKkf/FwAIVJ/rPEjOal5q7q eQ4thua3ezEl8l0a5kXhEhAViyDpInN/itYDxwz+WxiWD1VTdXIZriRmYVewFx4yN8vn Py7OKxM+EgDnKVsGhyrMXLzVzAMkU1Vi2q005AMF0X4V8Zr+vk1u7+l2J1ZPtbwi8tDE MjfTn16KnmHwA00LFOpiyz4Arxk29A3ZCtPAp8lm5/fw9GWnwamy+hUtTDcgjqFKP+CI 8qT8Z9tVq76QfQK1OZZfIJT9v0du6hkA05CvKWY/IVe5curlWXrlPCbUWFQLb5cSb+XW pa2w== X-Gm-Message-State: ABy/qLarzyZAiCvw9Qy++RgB6W/1mseWq6wgn22BjOOio/9HhAWNBvIJ Eb/2ExEGWicgbF/3MqRIZK2/Nx9pIIE= X-Google-Smtp-Source: APBJJlHweXuChCIL+PlGEKZWCfU1vLl00hMo2Xl0zRldJtqeXjAaRL8qtsqZrUif2jCqBrlUXccGFg== X-Received: by 2002:a17:906:8a68:b0:993:f996:52d2 with SMTP id hy8-20020a1709068a6800b00993f99652d2mr8122020ejc.20.1690128568780; Sun, 23 Jul 2023 09:09:28 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id u16-20020a170906951000b0099b4d86fbccsm5425039ejx.141.2023.07.23.09.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 09:09:28 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/7] dt-bindings: clock: qcom,hfpll: Document MSM8976 compatibles Date: Sun, 23 Jul 2023 18:08:23 +0200 Message-Id: <20230723160827.22660-5-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723160827.22660-1-a39.skl@gmail.com> References: <20230723160827.22660-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document MSM8976 HFPLL compatibles. Signed-off-by: Adam Skladowski Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/qcom,hfpll.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,hfpll.txt b/Documentation/devicetree/bindings/clock/qcom,hfpll.txt index ec02a024424c..5769cbbe76be 100644 --- a/Documentation/devicetree/bindings/clock/qcom,hfpll.txt +++ b/Documentation/devicetree/bindings/clock/qcom,hfpll.txt @@ -12,6 +12,9 @@ PROPERTIES "qcom,hfpll-apq8064", "qcom,hfpll" "qcom,hfpll-msm8974", "qcom,hfpll" "qcom,hfpll-msm8960", "qcom,hfpll" + "qcom,msm8976-hfpll-a53", "qcom,hfpll" + "qcom,msm8976-hfpll-a72", "qcom,hfpll" + "qcom,msm8976-hfpll-cci", "qcom,hfpll" - reg: Usage: required From patchwork Sun Jul 23 16:08:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323236 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 BC179C00528 for ; Sun, 23 Jul 2023 16:11:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbjGWQLN (ORCPT ); Sun, 23 Jul 2023 12:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbjGWQKs (ORCPT ); Sun, 23 Jul 2023 12:10:48 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B23F110C9; Sun, 23 Jul 2023 09:10:13 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-992f15c36fcso624286666b.3; Sun, 23 Jul 2023 09:10:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690128571; x=1690733371; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qIn1Fh/0oKESaebDcUmATFcdpQekuLbCyP5ZseHv9+Q=; b=rIcWg797VMNVP1FP4eVrq5u54X+X58gg8XWijgGoWE41Hiqnedwhw50G0vNPSSOB5l vPG34DnQoSFxznE/u4El2wb3f78WUhhFfm7mojCntda2JhUIXYtAsJaqxm6dHbOdLSvd 3erNXuLdrWMJvjgR+dh2mCYL1x5BocPw+UQW9ZJqnaMxZ6TsDomcnipJhJ7Gadzt/eBU +77ShAmwyZQ1pTpBwHUzlsBjiQeK7GgKOxufIJV4/qDK/FAmkn3o13ulsTZSsL4qr3mE XE83zVlj1zJFB/TIBZSy6Y0XffD9uDIOePpDjYCh2QyHKhgdXukc+/Ay2xNa1YuC+FdE 5yFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690128571; x=1690733371; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qIn1Fh/0oKESaebDcUmATFcdpQekuLbCyP5ZseHv9+Q=; b=SgBffkWLiUm1OEiAdxxwVte0VZ3Xs/WF3swap4q9vYAvWGonH43AgUbpEzURAO8YFn jkDxAY1T3F9OSZ7qGo6LktyOxWanvbQD0x1ZBk9ixYJXQvBnlEtzCY2ILq9sBFyyzKL+ 7o1jBhk5L0RVgWfTqcdwKvh9cR4ekQbB/JA1hFvwwpe2GiDNY/xGxYpcS1n3JouXQBNk DriLNocRgDTCZqt9DSg9PqfiRftxAGCqo0mHdMSKkqjiwVmBwpgw+uqvqnQZT6mPhZ05 mBO1rG8XpB/ntUinfLmsX0Exoq50afjj+iGLc9oj23xZK8MUaYuvZWi5SzJSdBfdI++j uiVA== X-Gm-Message-State: ABy/qLY0SAeZ26sGG7LEgsxVdm+uX/ZJ8joUZPHwtk29pX4tQNnglduZ 70kqP6M23c7Nf0Vmrlwkvvb81zpf3LY= X-Google-Smtp-Source: APBJJlEyptAQQvr5BRCsqNNtS9WlrFXYd9nqi/ashFRNqhpw88rt+yHRDupPuDkKwooNIPi3Tnvpzw== X-Received: by 2002:a17:906:8451:b0:994:1fd2:cf96 with SMTP id e17-20020a170906845100b009941fd2cf96mr8015297ejy.0.1690128570913; Sun, 23 Jul 2023 09:09:30 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id u16-20020a170906951000b0099b4d86fbccsm5425039ejx.141.2023.07.23.09.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 09:09:30 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/7] clk: qcom: hfpll: Add MSM8976 PLL data Date: Sun, 23 Jul 2023 18:08:24 +0200 Message-Id: <20230723160827.22660-6-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723160827.22660-1-a39.skl@gmail.com> References: <20230723160827.22660-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add PLL configuration for MSM8976 SoC, this SoC offers 3 HFPLL. Small cluster offers two presets for 652-902Mhz range and 902Mhz-1.47Ghz. For simplicity only add second range as smaller frequencies can be obtained via apcs divider or safe parent this also saves us a hassle of reconfiguring VCO bit and config_val. A72 and CCI cluster only use single frequency range with their outputs/post_dividers/vco_bits being static. Signed-off-by: Adam Skladowski --- drivers/clk/qcom/hfpll.c | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c index ec18bc8f0089..7a67b1457605 100644 --- a/drivers/clk/qcom/hfpll.c +++ b/drivers/clk/qcom/hfpll.c @@ -32,8 +32,62 @@ static const struct hfpll_data hdata = { .max_rate = 2900000000UL, }; +static const struct hfpll_data msm8976_a53 = { + .mode_reg = 0x00, + .l_reg = 0x04, + .m_reg = 0x08, + .n_reg = 0x0c, + .user_reg = 0x10, + .config_reg = 0x14, + .config_val = 0x341600, + .status_reg = 0x1c, + .lock_bit = 16, + + .l_val = 0x35, + .user_val = 0x109, + .min_rate = 902400000UL, + .max_rate = 1478400000UL, +}; + +static const struct hfpll_data msm8976_a72 = { + .mode_reg = 0x00, + .l_reg = 0x04, + .m_reg = 0x08, + .n_reg = 0x0c, + .user_reg = 0x10, + .config_reg = 0x14, + .config_val = 0x4e0405d, + .status_reg = 0x1c, + .lock_bit = 16, + + .l_val = 0x3e, + .user_val = 0x100109, + .min_rate = 940800000UL, + .max_rate = 1843200000UL, +}; + +static const struct hfpll_data msm8976_cci = { + .mode_reg = 0x00, + .l_reg = 0x04, + .m_reg = 0x08, + .n_reg = 0x0c, + .user_reg = 0x10, + .config_reg = 0x14, + .config_val = 0x141400, + .status_reg = 0x1c, + .lock_bit = 16, + + .l_val = 0x20, + .user_val = 0x100109, + .min_rate = 556800000UL, + .max_rate = 902400000UL, +}; + static const struct of_device_id qcom_hfpll_match_table[] = { { .compatible = "qcom,hfpll", &hdata }, + { .compatible = "qcom,msm8976-hfpll-a53", &msm8976_a53 }, + { .compatible = "qcom,msm8976-hfpll-a72", &msm8976_a72 }, + { .compatible = "qcom,msm8976-hfpll-cci", &msm8976_cci }, { } }; MODULE_DEVICE_TABLE(of, qcom_hfpll_match_table); From patchwork Sun Jul 23 16:08:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323237 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 A4857C001DF for ; Sun, 23 Jul 2023 16:11:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbjGWQLX (ORCPT ); Sun, 23 Jul 2023 12:11:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbjGWQLF (ORCPT ); Sun, 23 Jul 2023 12:11:05 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0EBE1722; Sun, 23 Jul 2023 09:10:29 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-98377c5d53eso576594266b.0; Sun, 23 Jul 2023 09:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690128573; x=1690733373; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JAGDbj4w5cqYpPhjbv0lV9BCY/wz/Fddf4zaiPiVK1k=; b=B23twYJYp6zKU1881M5PgC/7EWYMBfYki3iHA9pDNh3HOsf9qlPI1gel24VxrlFUHr zcqzl5li0RMxmoKtFoRQYXqBgCiEpSIdDrzCxBRv6nbw6VoqJ6N5cSKR+a1hiy+PCnkG uG1HiS7pBlAZg6wwK4MnhSWmcVCBy6TI0oMyIRLxjkpHsNoImh+KjRvKEygBE1h6Wsv0 z3bO+NN26kGR3L/RymPJaCY7/eILDRYBlrW64XaZP5RmnPVcxIZK4HwhevXQbcFzqS5T jx5jPel15Bd1GukFjH2zAWytdhcZW07093WW/ve+14KfwNL62JhjLxnFqTewJ9aFQb3D QtLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690128573; x=1690733373; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JAGDbj4w5cqYpPhjbv0lV9BCY/wz/Fddf4zaiPiVK1k=; b=lM+U3A6NHHXfbz01I65/HEc3SEHdgkfqRwxwSMxBPte6JsEI5o5NODcvQ0LkHoSs2l NCfDph3uXRy7I7HMJ0A2kZ3vLvgZ7oX3iftl+XEA4VnhSiguh9aP+Mz/9mPFlyYb7yLV p8msCXLgGm/LtPwRpbgMpfKFDZrdb/B+N5LwQp2et1MhvNxFsfNJg6gBddoHgqXMTW++ rWRaw6aMCqxlRX7wRro6yczSJdofz5prrVJVfJj8jV2zagFpYkfR8NHknVYMeAUfXDiU BtLjXPkXLhm4gyXGaZu9SALKmME3pexKgDy44nPNhMYVJkd5s0bsUmfpmVDYW2bfSebY IHHA== X-Gm-Message-State: ABy/qLa8n/qO9IQw3b3OBNZ9CqPO5NkMb9hzFHv0lE7V8a1Ux+wUS2XQ kPBYKyUHagzzztjuzwnpODiXqDoDLzE= X-Google-Smtp-Source: APBJJlHvwxCH+Dj328ydbFV7zl7xzoo9fFh5RQZofh/S+UtyTWl5AS7LLHhXKqaVspOAiqz+RLmE6A== X-Received: by 2002:a17:906:535b:b0:99b:658e:3941 with SMTP id j27-20020a170906535b00b0099b658e3941mr7191830ejo.70.1690128573018; Sun, 23 Jul 2023 09:09:33 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id u16-20020a170906951000b0099b4d86fbccsm5425039ejx.141.2023.07.23.09.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 09:09:32 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/7] arm64: dts: qcom: msm8976: Split lpass region Date: Sun, 23 Jul 2023 18:08:25 +0200 Message-Id: <20230723160827.22660-7-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723160827.22660-1-a39.skl@gmail.com> References: <20230723160827.22660-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Some devices like Sony Loire uses Broadcom module over sdc3 however others utilize qcom WCNSS, split shared region based on downstream pil-tz loader. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index ab76806317a7..7385d5edec04 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -338,7 +338,12 @@ mpss_mem: mpss@86c00000 { }; lpass_mem: lpass@8c200000 { - reg = <0x0 0x8c200000 0x0 0x1800000>; + reg = <0x0 0x8c200000 0x0 0x1000000>; + no-map; + }; + + wcnss_fw_mem: wcnss@8d200000 { + reg = <0x0 0x8d200000 0x0 0x800000>; no-map; }; From patchwork Sun Jul 23 16:08:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323238 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 B8AEAC04A94 for ; Sun, 23 Jul 2023 16:11:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjGWQL0 (ORCPT ); Sun, 23 Jul 2023 12:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230119AbjGWQLK (ORCPT ); Sun, 23 Jul 2023 12:11:10 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA5C119AC; Sun, 23 Jul 2023 09:10:36 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-991ef0b464cso987253566b.0; Sun, 23 Jul 2023 09:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690128575; x=1690733375; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kJXUCfPfxMZDrw8reVp/mOwjqAotIrdk28gOPKfujpk=; b=CiD0CijqD2LZn4fISlmA/WzpS0y7CDEsbIh1bTpP/35MGba94PiLhenPUkvaIBCVDu j9Kq7hLo8z36/0ceBT4KyoxzUkbTxjI+9xSkjxFtGXkTo5I545PhwQZW799+xaM4+gt1 ph1/P22d4mxXnURSmuQubquB4YLYiWb6cDoPzGhxKKlNEctEZFxtd4j+nrJ1UQm4m7Sc k+N6UoaTyi3bcf5Qezgj9KxbTdhQxxnICjctuFBC8rXiO0VgjSPOs1VFi9gLtR4RsEHw 13Rqm6OiG6PGYum+h6hq9HtBqnZsiw5uQh98cZmueJEewiFJrb2PncfgmtUgyQ0tifr/ 6QRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690128575; x=1690733375; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kJXUCfPfxMZDrw8reVp/mOwjqAotIrdk28gOPKfujpk=; b=TttoT6eQqk4jo3FtLsme9Mco/Spi1DEW8QsoooBzy1kEw1/8qfl50JEYdH2QQa8nAp 4elhPOlRwP3O3FJUDZUOvOMh72npTqhAM2M2fFM2o9tn5EgLOMkpHjuxrH54gI5rOGc2 Cqwm3Vlpfbk2BpfMhbuq0ciiutByOu6iUH/HvFucts8gZ29UrZxCqvH04tGKEgaYVNaY 0gFJtP6MFMwdHiDsR3rAnkN+cr9i74xH/F0FtXuPKM3VPjJj/37KJQ4K/NomsXmuGorJ 4g3JgAVmMRrGa7tWChopNG6tT9qtYw8+W/+BbKv7bzMXpmL8GTArIilVgwRaoPkgfO5+ v+tA== X-Gm-Message-State: ABy/qLb6uVbjmNiGwwqi0ZqtffdjTppOqlYfWBT07eLKjANSzuHTGGkk FfpQ6S7cpVOR5KWxsRLUmiyJhwAm8bg= X-Google-Smtp-Source: APBJJlG3ZC0ztrZPhpT4podw6SZVxxGG31tprJEN0TaQkh2VnoG4Ub1tVZe25vh8DB+dkWy4OBcY6w== X-Received: by 2002:a17:906:30c5:b0:993:fb68:ed6c with SMTP id b5-20020a17090630c500b00993fb68ed6cmr7568461ejb.15.1690128575066; Sun, 23 Jul 2023 09:09:35 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id u16-20020a170906951000b0099b4d86fbccsm5425039ejx.141.2023.07.23.09.09.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 09:09:34 -0700 (PDT) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 7/7] arm64: dts: qcom: msm8976: Fix smsm ipc bit shifts Date: Sun, 23 Jul 2023 18:08:26 +0200 Message-Id: <20230723160827.22660-8-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723160827.22660-1-a39.skl@gmail.com> References: <20230723160827.22660-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Update bits to match downstream irq-bitmask values. Fixes: 0484d3ce0902 ("arm64: dts: qcom: Add DTS for MSM8976 and MSM8956 SoCs") Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index 7385d5edec04..5537ec049451 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -433,9 +433,9 @@ smsm { #address-cells = <1>; #size-cells = <0>; - qcom,ipc-1 = <&apcs 8 12>; + qcom,ipc-1 = <&apcs 8 13>; qcom,ipc-2 = <&apcs 8 9>; - qcom,ipc-3 = <&apcs 8 18>; + qcom,ipc-3 = <&apcs 8 19>; apps_smsm: apps@0 { reg = <0>;