From patchwork Wed Jul 31 20:29:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 170230 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4462591ile; Wed, 31 Jul 2019 13:29:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzBDW3di7xccuE+3qFLUPXv4bqceZMnpWqa3Hwb2tu0YqUIIzQaja2Dc/0RUeb4JkxVPU2 X-Received: by 2002:a17:90a:d80b:: with SMTP id a11mr4427452pjv.53.1564604992572; Wed, 31 Jul 2019 13:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564604992; cv=none; d=google.com; s=arc-20160816; b=TLu1uLvSBHjuvOxqb3YhyJ8uCZQL+ZqIdhWqTncZY4fteSAY9lITBDtb1GUOzoEKHV s1IwLRBhFRL09QjSkgqn48BEsDo63a9+tdhJZyQdqLk+YdXD0VKdkmNc8zsBMa/U4vvS KnRUTPBxmT4s+tSO7zv+p9RA5g3JMO55T7ujue/GBw99XGl+rI+Mvsp79EP8Dmd5yFB4 c2qdDDtlYjchOE7PI4fj7r/pVRgpKd43j15arM404pNyMXblhBLT8AYGUOfwmQk3D1ne NvO6HZafEN6QRA/nY6ZqCbjcHJEAg/34u4lYc/B8cAzDGv7PHhmV+Qfqz4EwIOHBOJFO 53fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=onetUiZPcKYw43ltVy2pax5WwMNPrRMe/eAwSVGynt4=; b=T/UaEQS6JWjEQEfNwBfcUh/A7RyjBFbiwhdkO/DQCVQurEY8YMx9aFe253Sv2xoRAU fshHBSeapGYXfoSO6faWqcYynMWQTGJmd6mMeukitMrDBdq2Mqm1lbdeXILqhDcSTmkC rQAObVsV1VV7m59jPnVe/QcZIBE0FTrHEBxMrbsqDPVbIglfVyAmN0AF3pPasWSC+bqh q+k5EXiqq3ieaGmh/Iw8zNCL38JgN3qUgZvCodw+5tNzd8fcrG2N1wG7GhDjqkrlgrxk T89/EHPg7z3KOvJ15OJRTnQYCvlw3HZd/CW4Rot2ldEaC66o45/40wN6Hskjm1S+vmDs C49g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hyDo5hAh; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si31916126pld.293.2019.07.31.13.29.52; Wed, 31 Jul 2019 13:29:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hyDo5hAh; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730729AbfGaU3t (ORCPT + 16 others); Wed, 31 Jul 2019 16:29:49 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45132 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730706AbfGaU3t (ORCPT ); Wed, 31 Jul 2019 16:29:49 -0400 Received: by mail-wr1-f65.google.com with SMTP id f9so71056177wre.12 for ; Wed, 31 Jul 2019 13:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=onetUiZPcKYw43ltVy2pax5WwMNPrRMe/eAwSVGynt4=; b=hyDo5hAhRc4QzuIX2tUpIKbH3IelBuPVusXpwSvSNMh9tzz94z/m8CQjhd4r5uATJ5 IwiBzZESkY4K2MTQFADxZhMygATszMtZhDOOdYS00mhRA+Ghk8oOiibymHRGzOU+Rq5B 0kSFzaZLM6YrI5Dg311b3EyUCJyOYsL8cp3ImiXtGIQ86tI+ob9HD3LLh8VJqvSWbF1q djifVGZBkToBzRoVMRMciAwyXobYowv0eANNZz6d1ZX7+rOu96bPEEgOcSbZQbWbvbU7 0LI+p7KwSWs2S6a7C2EvLNXer9Mdq7XrKPpzat4dc6i5iig7t30hKa+U+utmJxSzVKpY 0D0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=onetUiZPcKYw43ltVy2pax5WwMNPrRMe/eAwSVGynt4=; b=LMUWJ8TRM3CM74Likrx4XTJv7OVGf9w5n6bL2ShycTh5KBRNPc+HvTwLTIQZxrKbwL QD9PhkSLV8AIKUl/qLm2t+gXvpKk0usSrVIWzKJovAAJd2qHM9pDtmcecnTg04EfsE1y uwq0OWEBUGpT9uwX2Z2s8sAVGpv5qP/DkdPJrFfEH+dLsb6h1dZZviE9DyzMABuAAPNO RRIcKruhkfP/2iuyehoZ2GFECaCo76R6hkvs7A3Y5kflqjHlibHUvP8HQLnWumQjaRg+ ivx9xsGpWEkqRHUSiQnbiITi3tTmOVGBtulrzdUmTy8vM3cZ0gaEcgyUTR7fhyjts1u8 j7Cg== X-Gm-Message-State: APjAAAU5nZ+puTXSSGQykmtQprjHKF6gfbDM4s4WqHZ/iyJ8IkIiA4ne brf5XemQ3Evh8LUv2UoDGD78bA== X-Received: by 2002:adf:f046:: with SMTP id t6mr19884717wro.307.1564604987154; Wed, 31 Jul 2019 13:29:47 -0700 (PDT) Received: from localhost.localdomain (19.red-176-86-136.dynamicip.rima-tde.net. [176.86.136.19]) by smtp.gmail.com with ESMTPSA id i18sm91905591wrp.91.2019.07.31.13.29.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 13:29:46 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v4 07/13] clk: qcom: hfpll: register as clock provider Date: Wed, 31 Jul 2019 22:29:23 +0200 Message-Id: <20190731202929.16443-8-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> References: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Make the output of the high frequency pll a clock provider. On the QCS404 this PLL controls cpu frequency scaling. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson Acked-by: Stephen Boyd --- drivers/clk/qcom/hfpll.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.22.0 diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c index 87b7f46d27e0..0ffed0d41c50 100644 --- a/drivers/clk/qcom/hfpll.c +++ b/drivers/clk/qcom/hfpll.c @@ -53,6 +53,7 @@ static int qcom_hfpll_probe(struct platform_device *pdev) struct regmap *regmap; struct clk_hfpll *h; struct clk *pclk; + int ret; struct clk_init_data init = { .parent_names = (const char *[]){ "xo" }, .num_parents = 1, @@ -87,7 +88,14 @@ static int qcom_hfpll_probe(struct platform_device *pdev) h->clkr.hw.init = &init; spin_lock_init(&h->lock); - return devm_clk_register_regmap(&pdev->dev, &h->clkr); + ret = devm_clk_register_regmap(dev, &h->clkr); + if (ret) { + dev_err(dev, "failed to register regmap clock: %d\n", ret); + return ret; + } + + return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, + &h->clkr.hw); } static struct platform_driver qcom_hfpll_driver = { From patchwork Wed Jul 31 20:29:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 170231 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4462599ile; Wed, 31 Jul 2019 13:29:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL7AcVlvad9/aXpPeV882L8uyiXUu5Lot2Iqw9GtnWT9J3WgqnwgC/UDVydcW8RDLK/hWM X-Received: by 2002:a63:e62:: with SMTP id 34mr113975717pgo.331.1564604993381; Wed, 31 Jul 2019 13:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564604993; cv=none; d=google.com; s=arc-20160816; b=Bow7FCgfIGRB+eszl+rtdbFLY4w+i39R5AkVUrT94JHzHc7e+geNb1bKTHNDDADEKx maivxdz3QRP7Ix5VNYlF0HdLqMD2w0yxnHv95ekOlrMwKVf7whKCuSWdERzIrAtsFHGA 5uOLqdwGiojbSSq50Qf7RBl0DBi6+fGM8AzV9evwGwgFxRu4++OVuZLGm+eD4loaYjC6 gNQZxlyfWxRkBTt5PSwoyCri016ud8sl8rD+2wguk/FbOVg7kJD2bmXUG2FPJSAfRamk 7zlviwvd05iHKiUaQp03pQP7V9h3CjDlA8Ag9yUcaJ34x2k/ShraNXCpqls+abR15S0h kmRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AduWeROQMDkKls+kl/fLswGL+rHZfEiqcyM0mR/LCMQ=; b=QDHb0MxyrDffiTT1c4asU3ET+aH1p1/6Fb93URE5McRNzlRnQlcWOR3N6usMdgLH9D Q9P+E/C6DLwmWGcW1dlr8EbnGLnChCOZCQ6kTQ6o0LHLdAhxuXmtlWjfgtWjhaY3SqbR u+nKswuci8QNtttSgse+eWXCqTjD8uPM24UIimRy93h4QvdakSgTpJicvadKSyr/FRzy YU9nxZazxhwGWpdwa/S316jPK68Oup+sBDvLe4Y0Sdxj3+g7GQPj2ImPNozusSme2DSi cR19v7G0BGLeAx+EHq8GeKjwhGlG2T602exYUZRsoBoCk3Eh2bqtzJ/XUNBwiJhX66iZ 70hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="k/M0HVfe"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si31916126pld.293.2019.07.31.13.29.53; Wed, 31 Jul 2019 13:29:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="k/M0HVfe"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728932AbfGaU3v (ORCPT + 16 others); Wed, 31 Jul 2019 16:29:51 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37775 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730742AbfGaU3u (ORCPT ); Wed, 31 Jul 2019 16:29:50 -0400 Received: by mail-wm1-f66.google.com with SMTP id f17so60979471wme.2 for ; Wed, 31 Jul 2019 13:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AduWeROQMDkKls+kl/fLswGL+rHZfEiqcyM0mR/LCMQ=; b=k/M0HVfeNBuPo+VT6LzsO154/layPjQ0BQjQ1FFLye6ZzLKSs9A3C1xWB1r1myjpdq VsGHmcwTky6N2aoUIcOBvHs3Dr0Hq+Df+PFt33LCiPqEU7s/m3/C4bW8Sdd0qYvdjyvL 6cX+bIGf0Nkuhy1V84m5xfa/Cqm+S9MwUgxShE72HrcBEuvo0tGCt/aw23hRAgtNwH7a zI2PhMl2zV9kX8z9UVzHuNDJlXQ5VjZaBkhKiqmUGqTCguZkYX/DmsRhFlRG6YrSUTnC bXz4oKCCe71Q2ifNJard7uAi+9PPyrbCFYcz+XmGnXz6htC3D0vHb6qNDUa6NJBINyiO r4Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=AduWeROQMDkKls+kl/fLswGL+rHZfEiqcyM0mR/LCMQ=; b=YbtV1DrKRxKJcvY3nLQkV1NAloqL2RqJFQmegrmIoWfn5RSKFC1vyUONO9w0omrvRV sQ9s6zLnRJef1K4i0/wvF1nyulhUfGI3wiXva98NsjnSTGvKiBCoX/RZyWXgSLoPyZLj h3Iw6ZbahbY8qZAPAomAePosa5VLZJifkjP8c0mX7oV+broI1pjK5Wb0BGJ3C5A77OeX PerbM9w8sXAuZZRL1w8TMI0DRc3UYEigrlw8Y4SyWa0rkapWsxtrMj64kbEGOtwGM7LP DGTP/y6ko4UUFXStLIImY+e2Fpb3On5fSXpaI90Ri6cHiOx1rJpIL3BYcU6zISyZHn4Z LKZQ== X-Gm-Message-State: APjAAAWLny9qerXqUSmyJzuthSKa4cB/UavoMOysNmqFtsSqWerVcdJ0 ygwy/d7+uDa4ywys978kr+ttrw== X-Received: by 2002:a1c:cb0a:: with SMTP id b10mr110875853wmg.41.1564604989405; Wed, 31 Jul 2019 13:29:49 -0700 (PDT) Received: from localhost.localdomain (19.red-176-86-136.dynamicip.rima-tde.net. [176.86.136.19]) by smtp.gmail.com with ESMTPSA id i18sm91905591wrp.91.2019.07.31.13.29.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 13:29:48 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v4 08/13] clk: qcom: hfpll: CLK_IGNORE_UNUSED Date: Wed, 31 Jul 2019 22:29:24 +0200 Message-Id: <20190731202929.16443-9-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> References: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org When COMMON_CLK_DISABLED_UNUSED is set, in an effort to save power and to keep the software model of the clock in line with reality, the framework transverses the clock tree and disables those clocks that were enabled by the firmware but have not been enabled by any device driver. If CPUFREQ is enabled, early during the system boot, it might attempt to change the CPU frequency ("set_rate"). If the HFPLL is selected as a provider, it will then change the rate for this clock. As boot continues, clk_disable_unused_subtree will run. Since it wont find a valid counter (enable_count) for a clock that is actually enabled it will attempt to disable it which will cause the CPU to stop. Notice that in this driver, calls to check whether the clock is enabled are routed via the is_enabled callback which queries the hardware. The following commit, rather than marking the clock critical and forcing the clock to be always enabled, addresses the above scenario making sure the clock is not disabled but it continues to rely on the firmware to enable the clock. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- drivers/clk/qcom/hfpll.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.22.0 diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c index 0ffed0d41c50..d5fd27938e7b 100644 --- a/drivers/clk/qcom/hfpll.c +++ b/drivers/clk/qcom/hfpll.c @@ -58,6 +58,13 @@ static int qcom_hfpll_probe(struct platform_device *pdev) .parent_names = (const char *[]){ "xo" }, .num_parents = 1, .ops = &clk_ops_hfpll, + /* + * rather than marking the clock critical and forcing the clock + * to be always enabled, we make sure that the clock is not + * disabled: the firmware remains responsible of enabling this + * clock (for more info check the commit log) + */ + .flags = CLK_IGNORE_UNUSED, }; h = devm_kzalloc(dev, sizeof(*h), GFP_KERNEL); From patchwork Wed Jul 31 20:29:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 170232 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4462629ile; Wed, 31 Jul 2019 13:29:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyB4u1IefCxgRnec5r3qzM+fTCwZs1Mc4vXKFyTzQKlNnXDJtytSqT7d7yhGql19LF455V/ X-Received: by 2002:a63:6bc5:: with SMTP id g188mr85419343pgc.225.1564604995629; Wed, 31 Jul 2019 13:29:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564604995; cv=none; d=google.com; s=arc-20160816; b=fKjIO9UJACVT4PKndRdPiTG2O7bHtWlviSjA7alghUNZGRwJPKnHPbcch8HZisSjvS In1nyG9GSgzhkMLLA3EY6Kwc3UIvktbIlkZIoNS8DGcdV8D8D0CG39WOS/Q5WahCiCRt qI/ZNw02ZEciCpcYGeeBmIq/cEqdwgdy4F9aT7OZY4brCpiulKVA76TxPlhRmJKIfTCu Qf46iLFtPTmETRnLeAzY2GBGGkDUG7lK0MhHXIYmy84wbtXa7slmmH6b2HwA2J50iiKU JRUHEJXUl5O7wmATpm21swgWbvl5r1DCVMciSVk08wNFyUgyBKslTaiiTxwK58PXJGkI r33g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1eN7cVd81RI8zQ0Y9k2UD2x6CFiI8Tg5XhL9VySum/g=; b=m4rh5188wYtYo9sRhU9Rq2YXb1TxwsEkXS5Ma3OhbwkTDlOcsc6AUZJpwvUsfFuaF6 Qsma9BovQ9V5NoMKRw6vGEC/BT3TlxBTHfe4EPilfH7IQWdlaqxn2Y9Qq8bXsJLVUMxd RIGjEuF8hUqv+ToSUnXJghVth0W/ibGsw30c/XuTqdBjraA4j5L2RLBPd6U/uk9YYOax 82p3rqHh8C634fvgJLbl6Uv52jsmxQkO86ed4CuzjvSlxB7qVXCHV/OG5TEjlGG6Lvzj nRzpj5m03JoIyVIA0n/Dz8kVxgftp7F4UF+PfLvK38xmrLm1SqkeMLlEpn7FMOIZuXTz E8HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YV/R5BSM"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si1312034pgp.78.2019.07.31.13.29.55; Wed, 31 Jul 2019 13:29:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YV/R5BSM"; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730775AbfGaU3x (ORCPT + 16 others); Wed, 31 Jul 2019 16:29:53 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54425 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730640AbfGaU3x (ORCPT ); Wed, 31 Jul 2019 16:29:53 -0400 Received: by mail-wm1-f67.google.com with SMTP id p74so62141216wme.4 for ; Wed, 31 Jul 2019 13:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1eN7cVd81RI8zQ0Y9k2UD2x6CFiI8Tg5XhL9VySum/g=; b=YV/R5BSMFAh570iRGRBD+cQsWsJMFzQ9gG4bGL/RfB32IWA8XWQeNI5O0Thy2ZYp3D 0R9pHt+GGiTfp0GJbd7ldKYk/cGLe4sDDFbAxLUywQ8JpeGf04r2+4aXtZvWA41ZNgOz Ga687vg1J/lEgYqb2BK7TqMePNgA5tMCBoqMtIiqAwNmUj2veS08uPt9qYWEw79ufpms AMsxqa5tQzIjPGAQZVtrImgh9ifM/d/sWBl+iDfNP3djoNjHT+3jg9gOeiztVzXdAMMR oLeGbEuGiUBJv17NIERP3qXzZA1aIXI6F5E9+wMnlf8vPQuU5shUVedUGy5fClF3LwLm V/+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1eN7cVd81RI8zQ0Y9k2UD2x6CFiI8Tg5XhL9VySum/g=; b=srZzhnxnjXHEEcied3nH2lYmMgOuS5rtMYewRpyka1F46u4u6Ok5knr6NHa7SML/U8 XWP2TXP4QY6m4HhiffT6dK+a5YBWGdVVqKIQ1wmO39Xlw4uXd58eTiEpgDFnqlMqrPOj M8f5MNcoBVmtuWXsVMrqF9U945tiRskGtRgOMpiCvQskQiR9iwZaLmFm6IIyV+O6TBAD 34f3MyGrKA4bhzfUzPBFpoaS0AGGH6GxigI7uJrcEdcL+ZbEx5VE3ZSOI9AON+Uhpdxp 7+LMBA3nU1lqo0TsJJ2iyG3Xnz0a2g84qGDd6QKGeHkS5zk3OoJDO2LIHM1ip/LEMumg C94A== X-Gm-Message-State: APjAAAW+3yblYhbyuBdwhyUu2amMXy2yYaiOTqGjQic7zR5h3nIL3Qjy fYVAish3kZvvQO8gXeSe43rnPw== X-Received: by 2002:a7b:c748:: with SMTP id w8mr37876401wmk.36.1564604991184; Wed, 31 Jul 2019 13:29:51 -0700 (PDT) Received: from localhost.localdomain (19.red-176-86-136.dynamicip.rima-tde.net. [176.86.136.19]) by smtp.gmail.com with ESMTPSA id i18sm91905591wrp.91.2019.07.31.13.29.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 13:29:50 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v4 09/13] arm64: dts: qcom: msm8916: Add the clocks for the APCS mux/divider Date: Wed, 31 Jul 2019 22:29:25 +0200 Message-Id: <20190731202929.16443-10-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> References: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Specify the clocks that feed the APCS mux/divider instead of using default hardcoded values in the source code. The driver still supports the previous bindings; however with this update it we allow the msm8916 to access the parent clock names required by the driver operation using the device tree node. Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.22.0 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 5ea9fb8f2f87..96dc7a12aa94 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -429,7 +429,8 @@ compatible = "qcom,msm8916-apcs-kpss-global", "syscon"; reg = <0xb011000 0x1000>; #mbox-cells = <1>; - clocks = <&a53pll>; + clocks = <&gcc GPLL0_VOTE>, <&a53pll>; + clock-names = "aux", "pll"; #clock-cells = <0>; }; From patchwork Wed Jul 31 20:29:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 170233 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4462651ile; Wed, 31 Jul 2019 13:29:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHqPICqXqc6tTRTpM68hSnrrrHVcTQF08205/+7+w3bYByWXu0B9cbVy4sw7rpSUe5duyY X-Received: by 2002:a17:90a:7f85:: with SMTP id m5mr4678035pjl.78.1564604996725; Wed, 31 Jul 2019 13:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564604996; cv=none; d=google.com; s=arc-20160816; b=Mv5XA1O+GNsg9EUJJaTuf0vl/5Lz3cG5rdNdgBaUwlz44eD/M8Wb9B7uViFAt2gV+T BiIU6xirPCDTOl9q61CSgFpgrgtJ1FdI4WZ8BFsq+DX/NnBSNQJoe2ClOkmN5Csgb++1 8kl+KuaNHLqIqV41MkX769XKmaJxoOAUkHfxg/NeTRG6HuuGnijz6N5ZuYz2V6c+4UWk P/76GsHvPWBFdRiysDmTIIKeFBK5X3un16tVu4hxCdYMjssPf3XSPJiEw59DcQkCz0gd tOgj6mb0r9JqeIuP66xLNP/KUnp+jiWeoGqdF2NgXkWWTTiDxQ1pXNU/0bAJFUVJIUlq FoIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=L4Ts/ADGL+hlApCzzDUm7Jy+bE8lRcdVudPEahwDT9M=; b=dag/FFxuTr3IRImwZWke0Psqe+n9yunQWCFsefoc6B4C6GjKMRKxULjyTnq5H2fXxA fudjnznBBUjxWRptWvsN5qwK4oezPLJE2eSuoNsvge+A1Bni7qFrFCQLdN+82yQNw0pE az+UNLXFrUg4C20dRgDbNZS09qFPEXdcC4Q4t3I+KzMfrrp41SyLor+ofQfdUs0BqaQS FYXrOsvNQb2W+XTiJXn6S7EuJiq7d6oBoMQmRHfhB9QLT+76CT0aocUlpNW9S1GKrhuF WGAXHes18VCYkpEJxS1KmHGbybjLrUBSAGANBlobWYfQPK4VD1O0qYRUcqj+Q/oz2FSt nrPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BSdFLXko; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si1312034pgp.78.2019.07.31.13.29.56; Wed, 31 Jul 2019 13:29:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BSdFLXko; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730794AbfGaU3z (ORCPT + 16 others); Wed, 31 Jul 2019 16:29:55 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:39002 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730740AbfGaU3y (ORCPT ); Wed, 31 Jul 2019 16:29:54 -0400 Received: by mail-wm1-f65.google.com with SMTP id u25so50647749wmc.4 for ; Wed, 31 Jul 2019 13:29:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=L4Ts/ADGL+hlApCzzDUm7Jy+bE8lRcdVudPEahwDT9M=; b=BSdFLXko4tVMBjHaKYaYHDL9izB4mIFPGUBL4Fa5eQSpNQs2dg4NaxpNg0s7IFH9sW soR56XqbKMufRYSoRIyNxV5EijMg23s/ZfDpoGeNIRMSZK9hP3ImW8zG7Sh+vSfy18N9 bCGOAfBSwh9/3EXyTgv0Vt13l6xwNA4mI0fPBtXOaIG60kSxtuAxmHpyIu3js/+vHH8+ +ttjzR5Ci15+dszrOt7k5QPbmylx6risjovnrY9KlZleLOpnx09q4sniuDDwMN/BOyrO 7ndmtgG3t+ML01kw0Yccm+dKWzvXV4hbTNXe9inkVPX8T7vSUgTXHqnt212uI+DWSNPz 0BtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=L4Ts/ADGL+hlApCzzDUm7Jy+bE8lRcdVudPEahwDT9M=; b=gFEDOXsxiTFevheQOvtqy5fvz75j2z3Mwj2Tvt9w9DyKQyQcnqFFCdRP+Vv8WrsuaN /qGFjIugMdDJyEh01JXmBRe/tRez2hsvMNCn547O3qsBuliZgzu/KYnHeH2QHYNTjGvN whSXJrsjIlbQQ10hpIPtWnFmu//sllIQM4oh36XAE9q4JAsMn1bUTlDH28rJcUusljmF gbc1dbFNEQhBxQ4lJ3N9rN1YjRhZQzuVlTzWBZ7LY10yKZ2r6j4yToYjqC23UmIUHv2N nLVzRwN87Q5nK9QrRe5X3diddZzL7yAB00VLiCEwLdfafKPztpETL4+r12YNKKdrWhJv LZPA== X-Gm-Message-State: APjAAAXyAfRQXM50i0cnAfATD845Y8uAG8LJ3iWUFtdSgS1kWlSg6NkU TLIAVzOj9uw+qZmurtSIMrAWAA== X-Received: by 2002:a7b:ce8a:: with SMTP id q10mr106546229wmj.109.1564604992885; Wed, 31 Jul 2019 13:29:52 -0700 (PDT) Received: from localhost.localdomain (19.red-176-86-136.dynamicip.rima-tde.net. [176.86.136.19]) by smtp.gmail.com with ESMTPSA id i18sm91905591wrp.91.2019.07.31.13.29.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 13:29:52 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v4 10/13] arm64: dts: qcom: qcs404: Add HFPLL node Date: Wed, 31 Jul 2019 22:29:26 +0200 Message-Id: <20190731202929.16443-11-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> References: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The high frequency pll functionality is required to enable CPU frequency scaling operation. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.22.0 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 3d0789775009..3714099306b7 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -859,6 +859,15 @@ #mbox-cells = <1>; }; + apcs_hfpll: clock-controller@b016000 { + compatible = "qcom,hfpll"; + reg = <0x0b016000 0x30>; + #clock-cells = <0>; + clock-output-names = "apcs_hfpll"; + clocks = <&xo_board>; + clock-names = "xo"; + }; + timer@b120000 { #address-cells = <1>; #size-cells = <1>; From patchwork Wed Jul 31 20:29:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 170234 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4462720ile; Wed, 31 Jul 2019 13:30:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqylmNSzVp0h+FO1z/zesXQIEvhKZYtGch9blLIJ06nQTSvuX0l7ivKKRwYOY6rZK7RoY9wV X-Received: by 2002:a63:5945:: with SMTP id j5mr114844428pgm.452.1564605000196; Wed, 31 Jul 2019 13:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564605000; cv=none; d=google.com; s=arc-20160816; b=trGba73J29jtrS+Dgp2VOGR4+3+a2oBrDFCrPTp1aH1bTazMCrcgmLU5sgJOQUxrO/ yYkfbUNSQ0UJf8BbWyfQduUwDDVS96y+5bs7hNNguvBDwaKnlBoJztCr4T1Y3nTgshDE rpez4dn7CSc14wU3FGJB/OBL3WtQwqKmCP3T8FcqDssJtMTBLR6ptDdh4FKI5g9dJ/lm G8+6wZ16hWZ7CX8FcKYgAl2VkOSDIUQqdrafJwfUZG+cnH/fNNWtIVKYa6ZRseQj3pAH 7OjIBU/eDNDgqSm1nOd35n00EHg6JiQmc5RVAb9gyLEDHC0EB26zRCI/T91vBGRTzkMA vnEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vLHpcezXZ0AucQ4kaXez+YbIiKuQyU24LjFhyj/OAXk=; b=o3dnDxUjN0Enx2o6HJmBlsfNGRn2puDidMvKBFxdFXX2sijRqgs0sGu+dEjCgoDf0U jwYe+DYnA/6+UPU3ALlHQrveDZwNZSCGQzdbWyWC5QO3z4XZAOspujmZ13sHppib9dSr oDBWoRCoEBjOv0ef6C9EceEDQo7Wuon3oWoMA7KxgkqS6thsMcK02jm7cotZwU1cTgmY 2gX3p1Q9ZFM3gNKhQLRl/mubPYQigagqsnizpiDcjLevnO5dbnwzgG32f+lIllRq1EpF h2GwEdsmFiI7TVnYF/7H/4KvyW1JDfs6fNDv60g6jA8eqi6wpXZavoSrkMU6F8A2/oP5 DBmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQCRVeZX; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a63si31291981pla.348.2019.07.31.13.29.59; Wed, 31 Jul 2019 13:30:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eQCRVeZX; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730809AbfGaU37 (ORCPT + 16 others); Wed, 31 Jul 2019 16:29:59 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38671 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730797AbfGaU36 (ORCPT ); Wed, 31 Jul 2019 16:29:58 -0400 Received: by mail-wr1-f65.google.com with SMTP id g17so71076649wrr.5 for ; Wed, 31 Jul 2019 13:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vLHpcezXZ0AucQ4kaXez+YbIiKuQyU24LjFhyj/OAXk=; b=eQCRVeZXchD4s8hmdDQVCG2ogRRuvj7EZRHIJo8ykw1oW4wZjt5+SSYbjFeaaDGZrn 0xucuH8wa2pRXz8qrOuZd277mjyUL3L5ZPsNLTCKCbtjGyssAb8BsI6U8vYAbloKvvQq BzPMZsouAsHmIoBCrcs8qJ+ORAVV59dnHr7FHlAmO+BlwJ9bU47J59hcapNE/S59FV/D PM7skxmpOrJWnu8rn5hPnCsbol0kRPf0yNonBqqOUvKl8Z92HutL3oW4KrUxJDyoMWhE 7PJwcZRXOfMvIyFy8KqnbU2v9/W1kKg0FqfYYX3XUt+aWsEeSnSRKoWHDibpSE9niNy0 PnbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vLHpcezXZ0AucQ4kaXez+YbIiKuQyU24LjFhyj/OAXk=; b=obTKYGncdReZVyP3N3cnX9yciO7GUqZKiGqFBKsaw0hb51IpiKtusBwiNn2hCb7jDB /c+IFpbfU9JxhMWCQwFp3Q/NOAbR5mbnD6aWrnAqWYAO7iQ3ZJK3SMOkkQU4wfder+V5 Gthokbfi/tNnF2KggOhJTHvHOsJmDDpw733qfeEYM4jj5V2hL9WiQLq/VHjz6jgAeOdu NVKHKrQVauXu+4SPgik59Adrmbw6CkeRvxzQGe7PETdyEqG7zM4zG3e2UWfDfcbBd726 9yqJsvu0YaxI2zAR8uLYf7kcrqo3xxk5Q2WRI5KOxq7zzC8DFsb2QP+SMWKa0WIea14u KQRg== X-Gm-Message-State: APjAAAW1Gx5V8ev/m3GqZdLiTIRGOa5hJd5fWJYqe/oadAjy3+BPesHi elMi3RjonyW+PsX6y6GWXGRq1g== X-Received: by 2002:a05:6000:187:: with SMTP id p7mr12658657wrx.189.1564604996721; Wed, 31 Jul 2019 13:29:56 -0700 (PDT) Received: from localhost.localdomain (19.red-176-86-136.dynamicip.rima-tde.net. [176.86.136.19]) by smtp.gmail.com with ESMTPSA id i18sm91905591wrp.91.2019.07.31.13.29.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 13:29:56 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v4 12/13] arm64: dts: qcom: qcs404: Add DVFS support Date: Wed, 31 Jul 2019 22:29:28 +0200 Message-Id: <20190731202929.16443-13-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> References: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Support dynamic voltage and frequency scaling on qcs404. CPUFreq will soon be superseeded by Core Power Reduction (CPR, a form of Adaptive Voltage Scaling found on some Qualcomm SoCs like the qcs404). Due to the CPR upstreaming already being in progress - and some commits already merged - the following commit will need to be reverted to enable CPUFreq support Author: Jorge Ramirez-Ortiz Date: Thu Jul 25 12:41:36 2019 +0200 cpufreq: Add qcs404 to cpufreq-dt-platdev blacklist Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) -- 2.22.0 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 5b7d6258e9bf..8cce4a224de2 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -36,6 +36,10 @@ cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; #cooling-cells = <2>; + clocks = <&apcs_glb>; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&pms405_s3>; + }; CPU1: cpu@101 { @@ -46,6 +50,9 @@ cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; #cooling-cells = <2>; + clocks = <&apcs_glb>; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&pms405_s3>; }; CPU2: cpu@102 { @@ -56,6 +63,9 @@ cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; #cooling-cells = <2>; + clocks = <&apcs_glb>; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&pms405_s3>; }; CPU3: cpu@103 { @@ -66,6 +76,9 @@ cpu-idle-states = <&CPU_SLEEP_0>; next-level-cache = <&L2_0>; #cooling-cells = <2>; + clocks = <&apcs_glb>; + operating-points-v2 = <&cpu_opp_table>; + cpu-supply = <&pms405_s3>; }; L2_0: l2-cache { @@ -88,6 +101,24 @@ }; }; + cpu_opp_table: cpu-opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-1094400000 { + opp-hz = /bits/ 64 <1094400000>; + opp-microvolt = <1224000 1224000 1224000>; + }; + opp-1248000000 { + opp-hz = /bits/ 64 <1248000000>; + opp-microvolt = <1288000 1288000 1288000>; + }; + opp-1401600000 { + opp-hz = /bits/ 64 <1401600000>; + opp-microvolt = <1384000 1384000 1384000>; + }; + }; + firmware { scm: scm { compatible = "qcom,scm-qcs404", "qcom,scm"; From patchwork Wed Jul 31 20:29:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 170236 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4462741ile; Wed, 31 Jul 2019 13:30:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfuYdGj9HDFOkrkPey/FC7CsAjCh0nPwpJB0BCM7Nv711KJvJKAN8qbl57M2LiCGBLM0U+ X-Received: by 2002:a63:f04:: with SMTP id e4mr112370434pgl.38.1564605001921; Wed, 31 Jul 2019 13:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564605001; cv=none; d=google.com; s=arc-20160816; b=UZkq+9DAXsLGB/aJ61AWqTozOHGMY+Csem292I8f58ZwcP6c086YvP0JcgMEy0s8ty GoKHG7fUyVdlQX628pSSy/IsJH//kssWX+xiOUoV9q8aWHJrsOF9EsJxf/E66/R9Q3pO JxgoGxUQt54IwLdevyEgkC/LKE/SzlB9AgUIyOmOe8aRTe6zn8Z9tgeRo6m/FCOHGAWD LTWVSfTWVV7x7bWMbtJroTJFzFqHf/DEI20MtO5ckgr3xaQrZ+hNQ8rX8quY2VOTMtPN 8MJJYBFrw1oXMliSdeBvybCi5qGK9MdEgXyhdS2/VWJ0Whj+Jk16GgOpODpDrwxaPs50 ssKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yjwyF8h24+6MkrK2XCkddWq6ewDMefY3p/JkUhfcGxo=; b=0Gz5Xyf4U46UTorU3M3nPGCqXd3w1/P0V8nLH46oNutAQheyg7PxXcMgWGy6C/WmMM IOZEsJo7jkCBbYouVuhzazgU1ePtqb+4adaNBzKsoXLi4BmphqeZd+DZxxOUAAxkLVsn zwvNjniCkKEA2TcxwcX7cIFAXJr6kkK62IX3hZErdIj+QQDr5VCOTwNzmEfOLqTRc6pX MrscM7Tg/TPdcg4cWxB9wBpgQNoWvqeiidlI+zBnfUvfIaieJdtDl8cC/orfX3ndWyr/ bw4ara473RPfenNFjhNKX9uLwA26bBMvVh6KLOUs2Z16YEGXmrELiKL5pcKXq+fJ0ZDa ZIKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qzcz7Cl6; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si35314701pgr.243.2019.07.31.13.30.01; Wed, 31 Jul 2019 13:30:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qzcz7Cl6; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730787AbfGaUaA (ORCPT + 16 others); Wed, 31 Jul 2019 16:30:00 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37799 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730825AbfGaUaA (ORCPT ); Wed, 31 Jul 2019 16:30:00 -0400 Received: by mail-wm1-f68.google.com with SMTP id f17so60979976wme.2 for ; Wed, 31 Jul 2019 13:29:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yjwyF8h24+6MkrK2XCkddWq6ewDMefY3p/JkUhfcGxo=; b=qzcz7Cl6t4xg8YUv9zpXFmqkJhMi78y34+n3ItM5RM3vnuvyjB8v36KL6skLRPl1ST s06JvtshN15JWJg4/St3iS9Z0/Rg0NPCEszd7U+ijuu30Hu/8+Z6yXLfLnhCIvqnF3Oi JSgta8K8mMlRlPHlkBqTlIccnqXCMp2penXjc+q2Nb2fHmNWPiTgTtkuozyLQEfIq6Oa FOdJcwQzal3USJs9/3CYN6CHs3JYnb2TvvjR6iII4E2HD5EXpwqMHBkcZAr9QVEj76fa YWJ9VY7e8YpVSpVpAejGPGkBtSCZ7ZQOGC+voq0I+kw+vMMTzPvd2JX2c1LumyOWOsGf T5HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yjwyF8h24+6MkrK2XCkddWq6ewDMefY3p/JkUhfcGxo=; b=iTqiSX79KhxOdkLDxK/uGSG4z0pJvrdE3rEu6UNkDEdv+ciZNgebt9VTJgfKE41r9b mO5iGAikk/ToqYx7OGxNKX8BX0Otv6UqVJLc9xeyFFVWwYKi/QfXhyfKoa73U+I9GRgb yy1QO+WahMV829sn1ks0Slh60m0Ygvc38yMc/yA4EUTkTc3NrVskGGIpBEsqRKpSNI8v IA5gfSlV3ywvCyA5t2RZYgjwKQGR1Ohsmr1/mHH6Y0VA6C33xcZDtO/hW6zyg8hipT7g brbrIQ/u76gAIGs60kl+TqShiFKW+1Uu/j8pnWxVsnrKNnjNezKWB0pBCTYH/GnzyuMX +PRA== X-Gm-Message-State: APjAAAWA5yEDOuyL2F4pJUuh43+H4DKv4SdwVvBKz0CUx30MmHqz6YRm 9ZkLSjWExsH95WzPS7okoiGlxg== X-Received: by 2002:a05:600c:da:: with SMTP id u26mr108777580wmm.108.1564604998460; Wed, 31 Jul 2019 13:29:58 -0700 (PDT) Received: from localhost.localdomain (19.red-176-86-136.dynamicip.rima-tde.net. [176.86.136.19]) by smtp.gmail.com with ESMTPSA id i18sm91905591wrp.91.2019.07.31.13.29.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jul 2019 13:29:58 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, sboyd@kernel.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v4 13/13] arm64: defconfig: Enable HFPLL Date: Wed, 31 Jul 2019 22:29:29 +0200 Message-Id: <20190731202929.16443-14-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> References: <20190731202929.16443-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The high frequency pll is required on compatible Qualcomm SoCs to support the CPU frequency scaling feature. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) -- 2.22.0 diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 34c3ac4e4b79..04b7fb26a942 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -698,6 +698,7 @@ CONFIG_MSM_MMCC_8996=y CONFIG_MSM_GCC_8998=y CONFIG_QCS_GCC_404=y CONFIG_SDM_GCC_845=y +CONFIG_QCOM_HFPLL=y CONFIG_HWSPINLOCK=y CONFIG_HWSPINLOCK_QCOM=y CONFIG_ARM_MHU=y