From patchwork Sun Jul 23 14:06:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323182 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 1A135C04A94 for ; Sun, 23 Jul 2023 14:07:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbjGWOHh (ORCPT ); Sun, 23 Jul 2023 10:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjGWOHg (ORCPT ); Sun, 23 Jul 2023 10:07:36 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FA60E70; Sun, 23 Jul 2023 07:07:34 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b703caf344so48182541fa.1; Sun, 23 Jul 2023 07:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690121253; x=1690726053; 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=6gGoSMkFuHXtajQB/WUOa8a8eVkA/mLa0sBAjisK8c8=; b=LjKB6N787aelnjZZiFNGxyXnzk+tG5mbL3hV0YHHDsnFEKw3hj2G7a4g8gQD57GiUc Oe5+sNC2RwVADMycaUzNfC0hQHFQDutv/9JE+okTiSoWBSoS77XffbQVAMtWpM9LT/9G Gxw2Hwvj6rNSq+WZu/pVgAGxzujma/oSONbbS1S97RUA0h7ziC+ehaMiGAD+BrfsUQuT jA6kwYvZJmkkA2obOWvPWayX05/EpusKIqTjsESTQ8/mkyuiYCgHEui6DqHHc2QI51yv gRRhrM5mWrzodeH7H+CrbhUyxHT8GAZrHUPK3I52oBpn9OMsDk8TEu8I6xP8ViUnQCax CZ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690121253; x=1690726053; 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=6gGoSMkFuHXtajQB/WUOa8a8eVkA/mLa0sBAjisK8c8=; b=lhU0wYSn1gv4SjgQMzw8hlNHtwMY2Qb6lL+UwxhvYVtHaldlihEaEmGyba909O0f4F X+JaTYluuhYE6ufKYoYHjCHR//fWURawR3nt2jdORwW9L3yX6NLnq7AGuE0KXFbUlVZF /Jzfcom9a6Zqxk3Z0lVBQ5+eTn00V+Ki+v4DcYZF+C0YFZhIry/yhh23Js8v0FxM2vRz 34saYG6Bh8jwGmwOYNUBXmKd9vsx0RXvqWWoZ59KeI/svyg9QFrk0yMfCTKw0AG/Blpa slXu4u0pfunLhR16giEw5TtbvePB/eddaagH9bcDN8XK0Kv2ja5+MJoOe+ojx39QcelD ud1g== X-Gm-Message-State: ABy/qLb1isKhhu2yn/K0cJDIb2ZFdETfiNBythTtZtelZOm4/8+BEjqp 6qBoHdCMszMcXusFsH/jwbahxS97y/Ogyw== X-Google-Smtp-Source: APBJJlEPVVooZlfoEODVTjUtkTLca1nNFTXxzleHzrWBMZQvgIa66cmpIVTOf/sz95pYEnm8Jt1+xA== X-Received: by 2002:a05:6512:2826:b0:4f8:58ae:8ea8 with SMTP id cf38-20020a056512282600b004f858ae8ea8mr4019183lfb.58.1690121252700; Sun, 23 Jul 2023 07:07:32 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id o2-20020a05651238a200b004fbcd542888sm1688366lft.60.2023.07.23.07.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 07:07: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 1/7] drivers: soc: qcom: rpmpd: Fix MSM8976 power domains setup Date: Sun, 23 Jul 2023 16:06:48 +0200 Message-Id: <20230723140712.9438-2-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723140712.9438-1-a39.skl@gmail.com> References: <20230723140712.9438-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. Signed-off-by: Adam Skladowski --- drivers/soc/qcom/rpmpd.c | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c index 3135dd1dafe0..69bc7c4d0ace 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, @@ -328,6 +321,12 @@ static struct rpmpd mx_s6a_lvl_ao = { .res_id = 6, .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 = { @@ -361,12 +360,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; @@ -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 14:06:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323183 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 C16A8C04FE2 for ; Sun, 23 Jul 2023 14:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229669AbjGWOHi (ORCPT ); Sun, 23 Jul 2023 10:07:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjGWOHh (ORCPT ); Sun, 23 Jul 2023 10:07:37 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5748C12B; Sun, 23 Jul 2023 07:07:36 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b702319893so49832651fa.3; Sun, 23 Jul 2023 07:07:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690121254; x=1690726054; 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=2e37AKpgfP+e3Di/jLJSpwPHf9AXaevgDCuq32UDQMM=; b=FcY390jOKSaNXZwkPSv+wO1hS+/Tp7MxfdUOeciW1O3PaLj7RfzR8HbrijWzUb5r8m FiPj8WkL59dDDDAPii0Zn6ifbR0kZox7/GF4e42M+VaUPumxOtxRYXqzcYQg0GPofVba AbA+KWxQiolUOOdRPSe1DYqHCvTTdvNoq1pNa4lRvUq9ECy7jQDRJF29w/094QsTImFT nOZlTJH2An9kXFA7s7omCodoF9lWNFNpMiaspZ5RINq/6DJiWWHyfJyW2nBd591LXbB2 w3eMOUVx1ZzLIj5aTNDlj7AtcWQ2LLVu1Mcm4KRRFCV8CaJYxbHTmBueD2iWRgloVjyW gp8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690121254; x=1690726054; 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=2e37AKpgfP+e3Di/jLJSpwPHf9AXaevgDCuq32UDQMM=; b=UcihShg5lY7x+1T53OFpwVKr5IFp1vTj2i4F6+IBULATZx6NImAC6QBEvtnApzZGGS mDaZ1rBIleemrM3bE5isD3vy9a8khrjPvxIyTxHDIxcUNQMnKbe9hJrfaASzzTcfPyLc kruEqzveAFJttUkzpjzuNjkFdxkIDcJHbnydBh/JD7bz07dW9dcixsdEkrDNJvttLOkU pva8D1oVDtet+sYAg/tIk5ynd9bSyL5j2xZBCwveVFHeO3KirrD2CoMfdAPVVHiX6jGl 4prGe0+RrVk2ZroihQWcojANOGz0CeQqb04XN6a27onUwj17QCRhxA2m/eKfesrPSiNG 1Z/w== X-Gm-Message-State: ABy/qLar74mn+I52UoeW0FSMQXhSTqCfG3ZO4s6RqpZVZjyX2eYPeEyY vSbPUos/cswiL1+GMYlWyQzP+Mqyq/sZ4A== X-Google-Smtp-Source: APBJJlHerg5IKyx/Lu59KC3K59oQGSyuPInnsgujv5/4msaMJQYOc8LKvHnbMrhnXNXu+1t5nI1Pew== X-Received: by 2002:a05:6512:3b8a:b0:4fd:cdc6:3519 with SMTP id g10-20020a0565123b8a00b004fdcdc63519mr4108459lfv.44.1690121254508; Sun, 23 Jul 2023 07:07:34 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id o2-20020a05651238a200b004fbcd542888sm1688366lft.60.2023.07.23.07.07.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 07:07: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 2/7] clk: qcom: clk-hfpll: Configure l_val in init when required Date: Sun, 23 Jul 2023 16:06:49 +0200 Message-Id: <20230723140712.9438-3-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723140712.9438-1-a39.skl@gmail.com> References: <20230723140712.9438-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 --- 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..a93b1493c882 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 14:06:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323184 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 8C7C9C001DF for ; Sun, 23 Jul 2023 14:07:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229726AbjGWOHs (ORCPT ); Sun, 23 Jul 2023 10:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjGWOHr (ORCPT ); Sun, 23 Jul 2023 10:07:47 -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 0AC5412B; Sun, 23 Jul 2023 07:07:38 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4fdea55743eso1748981e87.2; Sun, 23 Jul 2023 07:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690121256; x=1690726056; 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=wbzLqkw+cLCwQqgo454Wn6uAOpeUYqFhQ3CvlGtdRfI=; b=RA+BP8ET9n0oq8n+eMJGNDFwFhweaRrkyVtbu7I+MAACqWoveNCnYyOnyLAa6XympY +I2w+kHX8+19giIOxvuFNIs1SY8z886YnghAUpWDesYI4ECWDQ2WNHuN8nSGv/+KQ18I PHo81XFWWL3EqDQ+BAt/DzHMzcQHUQ8nWcaj/iKNCASctrJknGpwSJ5/r3YPtcM3Lynp sgaXb5b6Ee/MyrDtjrXnihmmAIY6jg9eHnWNV+rPvNTrQ5QE6dqgOt2E4ok5hKlZiB5/ cjT1BMOLI/gkMLyizaXtiXYLjnZEJRmgYh9Ie7drmBReXvRCeCYgju9g8Dei4YnL4/h3 XC1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690121256; x=1690726056; 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=wbzLqkw+cLCwQqgo454Wn6uAOpeUYqFhQ3CvlGtdRfI=; b=UbGUhn4KQpKEkxMZzDmSH19fnu1LyMdXsFOwCukCqcRyMpb8necOX9xgQE0o6FA+PQ mqGaukmLPjvl5WCDHsHbaPS/qXGQqJdagylzXQmor9yrOfcSGoZz3/1e/vxTx8kortwu qG4gCXXJ4rRPxILjFEg51dEei4y761qbkQMMQLlD4N1oxPDcRtiONHKep+DPt3fmCEcx rKSQZruPGkHksLxmc18mttPaPSw4g5OWqmVHW5lZx/s5ZNFVMUloUVZZFgEjuC9mws7b n2hxJCaLq1QWQiOZvOnmTIHN+B8WiSrExP83BrsStgMkSLlvLB51VBW3bEj7rrL7eYMZ 4yrQ== X-Gm-Message-State: ABy/qLZ2npHu2Ie1Tk5iAIvvrL4BhqtGknmXZGfNaF3eSeYWimnqo5eq 34YWeqRdKTfG+vk61wo4XfPfQpzmA6nx5g== X-Google-Smtp-Source: APBJJlHUOgtrmkrrr4RExMg3FG+ubiSOTIz4+VQiejicK1zkHbYULwp1ymsS+m21GY6e1utQeb8lRg== X-Received: by 2002:ac2:4846:0:b0:4fb:7cea:882a with SMTP id 6-20020ac24846000000b004fb7cea882amr3234673lfy.3.1690121256287; Sun, 23 Jul 2023 07:07:36 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id o2-20020a05651238a200b004fbcd542888sm1688366lft.60.2023.07.23.07.07.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 07:07:36 -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 3/7] clk: qcom: hfpll: Allow matching pdata Date: Sun, 23 Jul 2023 16:06:50 +0200 Message-Id: <20230723140712.9438-4-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723140712.9438-1-a39.skl@gmail.com> References: <20230723140712.9438-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 14:06:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323186 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 9CB50C04FE1 for ; Sun, 23 Jul 2023 14:07:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229646AbjGWOHy (ORCPT ); Sun, 23 Jul 2023 10:07:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229785AbjGWOHr (ORCPT ); Sun, 23 Jul 2023 10:07:47 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E416310E5; Sun, 23 Jul 2023 07:07:39 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fcd615d7d6so5205941e87.3; Sun, 23 Jul 2023 07:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690121258; x=1690726058; 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=3IKxf7JmOF95rTzSLnd0mZLk5/Wvwjp18VbT76vL0CI=; b=YjMJo4HlQK4Nt4nol/gKne/872PaRyv4CdNsM+TB6he3wVy1V15S24sMpgopIuABoF Q5LDk8AKT+WrfjTaSQdSVQc24wcFb80fuFdgaz2+7INP31NIxOagPMxR84Ahk11tYyXL VIHNN9uybXPtkqU6idRJxbIhz7PU7yD1QbfGl4GZNkr46fSI/6riZnQkDrBwo45mmlxQ TdTBu5zkYkkamKCJlWwIPs4+CSulZ7Y4aEEH04OsLCGwTMJO+n7aCYu6bNKBsuUZYbni wJsPfcl1tEaHWIZeXKeZxhRkteN9TBAfaR669ikYYQwH3dGTojluJRbifaUL+exIlcNO k95A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690121258; x=1690726058; 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=3IKxf7JmOF95rTzSLnd0mZLk5/Wvwjp18VbT76vL0CI=; b=XRKmit3hGPNTuURgmIpOxDF9PrZSCS3juVwCBu/8gsSg6vz5aZngvMGDlvNYcFEGzh r9u1bH+RWJmpIS7WYKISgGMBnem5b1dizO8zkClfX/QAnM0k1MnCtOH6do+ZZrStsaj9 cRhEnzoLTcDW3taq5L6a8f8OPWXMVqLaXq+6wJm2NP2NYzIhk128qD6EkZFkks/PCBE8 CGUJKn1KMuPWAAK1eCfbX+6FhPn8kNyAaNiicGji7v3hlMn6/XkC27tCAXsoJnCjuWhu g4NgbK6Wq3SSk/WwI/VSoq0zqZqYZhycgdOTHXpfSApGSTWa2ICZFpAVMJFsc0+kVr9L dKXg== X-Gm-Message-State: ABy/qLbwC1GEGNC9FD9r/0fU5+JdXwoeJNJ3KQvGSC4jSpRJe5LuSIsT PXq2mHBsHp8y+5XXkABDhTvZo1gScuGOSA== X-Google-Smtp-Source: APBJJlFUsPgzgMP64aq60zOS7JQdco352CkdAuJ5jCBXMM9LbWwyf6Q0s10hZ1+Jl+gNCYBwSO6Ofg== X-Received: by 2002:a05:6512:693:b0:4f8:5940:5c6a with SMTP id t19-20020a056512069300b004f859405c6amr4957295lfe.31.1690121258172; Sun, 23 Jul 2023 07:07:38 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id o2-20020a05651238a200b004fbcd542888sm1688366lft.60.2023.07.23.07.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 07:07:37 -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 4/7] dt-bindings: clock: qcom,hfpll: Document MSM8976 compatibles Date: Sun, 23 Jul 2023 16:06:51 +0200 Message-Id: <20230723140712.9438-5-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723140712.9438-1-a39.skl@gmail.com> References: <20230723140712.9438-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 --- 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..855344957350 100644 --- a/Documentation/devicetree/bindings/clock/qcom,hfpll.txt +++ b/Documentation/devicetree/bindings/clock/qcom,hfpll.txt @@ -11,6 +11,9 @@ PROPERTIES "qcom,hfpll-ipq8064", "qcom,hfpll" "qcom,hfpll-apq8064", "qcom,hfpll" "qcom,hfpll-msm8974", "qcom,hfpll" + "qcom,hfpll-msm8976-a53", "qcom,hfpll" + "qcom,hfpll-msm8976-a72", "qcom,hfpll" + "qcom,hfpll-msm8976-cci", "qcom,hfpll" "qcom,hfpll-msm8960", "qcom,hfpll" - reg: From patchwork Sun Jul 23 14:06:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323185 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 EEA0FC04FE0 for ; Sun, 23 Jul 2023 14:07:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbjGWOHw (ORCPT ); Sun, 23 Jul 2023 10:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbjGWOHs (ORCPT ); Sun, 23 Jul 2023 10:07:48 -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 D68D91B8; Sun, 23 Jul 2023 07:07:41 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4fddd4e942eso4753759e87.3; Sun, 23 Jul 2023 07:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690121260; x=1690726060; 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=GnagQxwlD2BGmfp1Y+SwDf/PshNGhc6oxsdbzF1ORog=; b=nZuo0QmUECVkywcqjxDoSIprotwScO72FvSS7egFpQApX5HL4xU7FQMxGQoFW6C2ZJ H4+ErzP1Xq7+f00pZPHmSuAuJoHExElFgOAJI6uJ+Zo9LfRtkFOWzlFZkL3AX5EivqWb Jq8IgfnZ20x1iHCZA7ZGf6pdKGKECCpNvM9jM94jTlwGzoH8R2tEobFpcavnUZoph5DB yXGp62Z2D5DqoZidcxTal2sHgfnF1tNTPu3ALUnttBUpgDa60K1Q5FUaVhgHfrxK7FV7 cXoQghU2TLk3M45TQ/K/H3q6+eV01Q8aW4/3Uok2BPdcd8Fvbu7juinHolw2TftJL3Qf 2Iug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690121260; x=1690726060; 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=GnagQxwlD2BGmfp1Y+SwDf/PshNGhc6oxsdbzF1ORog=; b=WPKwa3MczK+lfAgxUKmV64JUXIcTaStYoPBg9xWQl/czx2uuw7Abtqokg91v5BKGWZ CnuHqj/T149ob3T4sOB1sQRrq6JDQt1hhyA2uvmZje3iJwAnWEtHzUTo1I44jEE9fVeP vMtbIWnXE7gz8ucSncuvPotLM3HIvRZZ3BAXgr9RwnFVoYsfZgudbBEHGaT+019dL54m x7mBadQkHSQe8MnSX4RIJLgfea7o9215y0ZhXPPSGRhHKUqSFEW48r+lqj11iB9Uiyei VrKE8nPYKtHOMToFlCEhH1mJ2ueg344f4CjFvMECVNcoa8G+TNnpSvFfmiDXwE/Xtwym nZpA== X-Gm-Message-State: ABy/qLZLSAEXHRV/PLNMcmDUYCLLi0U4+9J+eAkvq69YNaA1UUkd3P5T f9Ke4/LkfvAvxLVqEIy+r8eOjqhSqXKhxA== X-Google-Smtp-Source: APBJJlFj+EYJEQ21PIOegYg0bGgHBZXNghyGxBKofLLed9bm3ysz2uLJPzAcS6QqDFCpXwgBx3QO4A== X-Received: by 2002:a05:6512:3410:b0:4f8:4245:ed57 with SMTP id i16-20020a056512341000b004f84245ed57mr4399826lfr.35.1690121259947; Sun, 23 Jul 2023 07:07:39 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id o2-20020a05651238a200b004fbcd542888sm1688366lft.60.2023.07.23.07.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 07:07:39 -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 5/7] clk: qcom: hfpll: Add MSM8976 PLL data Date: Sun, 23 Jul 2023 16:06:52 +0200 Message-Id: <20230723140712.9438-6-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723140712.9438-1-a39.skl@gmail.com> References: <20230723140712.9438-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..a9c4c77e0f50 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,hfpll-msm8976-a53", &msm8976_a53 }, + { .compatible = "qcom,hfpll-msm8976-a72", &msm8976_a72 }, + { .compatible = "qcom,hfpll-msm8976-cci", &msm8976_cci }, { } }; MODULE_DEVICE_TABLE(of, qcom_hfpll_match_table); From patchwork Sun Jul 23 14:06:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323187 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 13CE0C07E8B for ; Sun, 23 Jul 2023 14:07:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbjGWOHx (ORCPT ); Sun, 23 Jul 2023 10:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbjGWOHu (ORCPT ); Sun, 23 Jul 2023 10:07:50 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2491C1709; Sun, 23 Jul 2023 07:07:44 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fb863edcb6so5160318e87.0; Sun, 23 Jul 2023 07:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690121262; x=1690726062; 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=ZnquK1Bf+NrtIkuj5n5WuqzSN63Lf7C6vpkZFjzFEOU=; b=qjJQFC/pyIzq5bIHb2/d1EwWRDADxVHwsIYltrDhEDjdIyYiSo6jp8z0KqroqYON3F +iJq+JNhOv4SsBqXGKmIDOuFqmR/jHOY896lHtjmewuG2iScImOi+Qudmz/aPmtiIvKY Q1mAtUVquvtaY2jW4t9x2jKlwn63GW8mKSX+Y/2K7gqQDl32czJ4If0HQttiGh+vptod kDz+O0HEDckL4Dt31oMpO3mpD9j2LwCvcSNxIpBYgl40IR3glQoysydHVP93uuPLmoUO wxxeAnk+/5n344l2/I0R7CrRMY+kV/jhziVc2O0RT7kEq6sHokBmVKqJtd+j3XwNTojO 8vnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690121262; x=1690726062; 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=ZnquK1Bf+NrtIkuj5n5WuqzSN63Lf7C6vpkZFjzFEOU=; b=L59nxJJcaI3w7IRb+ey1eXa5hNAXoIqUjAOvjXLw+VfGF3XXWUgUGKmHrKqz2im+Qj h/0I14HUmujJ2VSFM5OoVD6/XrtOkChCXUFq+0ufCBQlzS0Pt8qXVGiCVsjqIdjwsdGB YmYKef9T/L3BlYEQnQTNSjUEd2TfEEutZ/lYAAJ5TiK0izlZKSF1vraz8LTdj04bYf+I V7+48JQtsbFt98ndjR35equgDs1tf3djgtdROJ8MOiecVqfdTYMbCu0A9iXh9F3hkQ1z t/r3R4P3FpW26tm05su7i7CpJPOYhy5FcijuXdjYWvE9Ldh4Q65/J8Dzno5dgGTByicx 8edw== X-Gm-Message-State: ABy/qLZLbFXow9+HM5+JFaNWbvQTQE34efoXW761pmetoQWkz0OCT0/y qqgrurKQrwg4ek0GiCDmlGSGaBpUnEYrvA== X-Google-Smtp-Source: APBJJlGdrL+NcR7PEBtWtKnxNv23eTE7INMr6IX5Sn2CahykbJMH6xT9aE11pXbRN/YLaBOfBDM4Lw== X-Received: by 2002:a19:7508:0:b0:4ed:cc6d:61fe with SMTP id y8-20020a197508000000b004edcc6d61femr3856837lfe.24.1690121261699; Sun, 23 Jul 2023 07:07:41 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id o2-20020a05651238a200b004fbcd542888sm1688366lft.60.2023.07.23.07.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 07:07:41 -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 6/7] arm64: dts: qcom: msm8976: Split lpass region Date: Sun, 23 Jul 2023 16:06:53 +0200 Message-Id: <20230723140712.9438-7-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723140712.9438-1-a39.skl@gmail.com> References: <20230723140712.9438-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 14:06:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13323188 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 46B90C07E8A for ; Sun, 23 Jul 2023 14:07:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbjGWOHz (ORCPT ); Sun, 23 Jul 2023 10:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjGWOHx (ORCPT ); Sun, 23 Jul 2023 10:07:53 -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 6D4731722; Sun, 23 Jul 2023 07:07:45 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4fb7769f15aso5055185e87.0; Sun, 23 Jul 2023 07:07:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690121263; x=1690726063; 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=RqnwiCRTKEz/1wjL6Wfye4Vi7LFOrL2Vihn903cSKUk=; b=SDQYyCa7KhSZaaTV7TzxLxQbwewMBXtrp2T/NDl003tAJLpEvL6ptw64nqxQia5a4B S0LxSHk5CsrcVmYVk/lV2g98y65azmojDLdSrJR4xqUrTFnwkAzi3dcJh6QDfyFfj+cD 8V3ji+aHnnUs4CVkUr+STqVE4sJdz4NbEV+mOsH8kE9fFxZATb30kkmKm6U7dCgSZ4yB u5v9HspvsfRIjvM3MFrBZA498Z7PeYTo3uKIGTctcvfPs9ox2GSF9Luk0EW9KijhoDA5 uqC5ZM6kjrwJwBnIPd2QmHUMcB5M1rNGCq3cc7xihLey96Uw5FdYEb43bMpFfjsQZ4yb b+uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690121263; x=1690726063; 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=RqnwiCRTKEz/1wjL6Wfye4Vi7LFOrL2Vihn903cSKUk=; b=iJK2z4N58+8ozx4GX6HbUTRBjFqE68r3Z7VEGwADoM9FATMuRhxkyIk1msk+zqlzMi 2gQgQOeqwP4pbefScg9qdh0T4ejC4ydGAS4OQhpCoBIp6OYurqXYmcUetBH/nz08w7K2 nf3mqRTShrsUyb93cYdr0MQEzWoHSWxBu76zkZUBP4dICAeoUwCLRjPhG5YKdjvfwcm1 CrmCrY9JKMlKy7zNk4IJ+BzN5aScbFOWz2dxSZdlSTjJ8p0XWDsgpkpx0SAmZzzpOxZC SpXpEidNI9HymHPaDH0cyEbQnL3Vh/mnwTBCpI/viYl6ZYd1aJrECbLZuxDKghk9sZNO +Xzw== X-Gm-Message-State: ABy/qLbZpQes8/+OSRtplA7B0C4d7zffiL84qnhcmuGxBC2B+cRoSgvZ n8I5xJjnlF7p9q34ou2k0JouzL/kuBCYNg== X-Google-Smtp-Source: APBJJlG9AtHOHcoa031sYG18h0ZZBjJPcgSERlzIioJ6AW7uFsSIXHdp7Xyo0XeMpOWecSsa/UZE+w== X-Received: by 2002:a05:6512:10cc:b0:4f8:6dfd:faa0 with SMTP id k12-20020a05651210cc00b004f86dfdfaa0mr3906952lfg.2.1690121263523; Sun, 23 Jul 2023 07:07:43 -0700 (PDT) Received: from localhost.localdomain (ccx116.neoplus.adsl.tpnet.pl. [83.30.147.116]) by smtp.gmail.com with ESMTPSA id o2-20020a05651238a200b004fbcd542888sm1688366lft.60.2023.07.23.07.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jul 2023 07:07:43 -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 7/7] arm64: dts: qcom: msm8976: Fix smsm ipc bit shifts Date: Sun, 23 Jul 2023 16:06:54 +0200 Message-Id: <20230723140712.9438-8-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230723140712.9438-1-a39.skl@gmail.com> References: <20230723140712.9438-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>;