From patchwork Mon Jan 28 18:32:50 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: 156862 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3748513jaa; Mon, 28 Jan 2019 10:33:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN7NPc/SnGIQT6c2S1WWq7RkcDptCND12yO4yiC0cwLTNfjQFuE7P1gNagsR6eW6WHtKDx8M X-Received: by 2002:a63:d547:: with SMTP id v7mr20470309pgi.339.1548700406755; Mon, 28 Jan 2019 10:33:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548700406; cv=none; d=google.com; s=arc-20160816; b=hjrsZPeQZuYDkh9YIyLJvISRjHwo3EJ+gDlk3cY2zFmi+2wM3mDG6XqBMCs4Acw/Pz i2EZJ5JudXCJttZ7V60Hw4dyG/1k3PUkZn7mrXjjY3+W/sI7SjcvrSDBxuYxZPpsRkd2 KC7KMYMeHz0i4sAbqRHmCBSAENqcQd+B15XlGlpT5tQZir4oH958oYnAm8KR7PCse9XP p6hkcIMY8sAkSk8xllMQs2yqV5GYVLBsyB/qn2jWKNEKQJeILFTw34/ypikeBbyxhEl4 DQ1q1xluxZMRVd++e7qyFzcuU1WgxolRpYuZVhDkm7xoDCXzdG1M0wYIv6ZtIvJduEFi C3nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=RRgZHYe/sVOgOfTVgbFLvS25NV8X1dawYq/ksWlnIWI=; b=lVanAGaGrXFSedDPG1A+Ry8dqtraA23hzJV7AHDVEVjUJU4hGJxTqDQDblTTdTml2m hoAyd9Zlg45VnAeRC759L/hMqKa050Ulfui4FYgInjQzRrvnIyb8C5IkZEVnbCeMJTP3 2EIx5XzQ6rJyMVXiVrFUmUsk78quGJOKRGnY2FiEqT/0Fqqd6tIL7EZO9cdF/+gPWcqm /E91ASrZCEu7syLCjH9ZV3VgeQz9hm2YBRy4Q/HlZXg/cb3Yl3Pq/gEjhEFWjzAfhfls TXr0f1tl0AwJi3zOzQ/BsT3z9nLZH5HlvNtYwcqWVVqo4OJm3kcGEscNXmznCI8UJDt/ jLEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aBkjHG8f; 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 20si18824003pft.177.2019.01.28.10.33.25; Mon, 28 Jan 2019 10:33:26 -0800 (PST) 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=aBkjHG8f; 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 S1727772AbfA1SdX (ORCPT + 15 others); Mon, 28 Jan 2019 13:33:23 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40100 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727846AbfA1SdW (ORCPT ); Mon, 28 Jan 2019 13:33:22 -0500 Received: by mail-wm1-f66.google.com with SMTP id f188so14973307wmf.5 for ; Mon, 28 Jan 2019 10:33:22 -0800 (PST) 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; bh=RRgZHYe/sVOgOfTVgbFLvS25NV8X1dawYq/ksWlnIWI=; b=aBkjHG8f4o7l4eAKKLn0A5CYBd6ZjbqSwcMHrsKnKYYsX+97CiBkCBRosG00FDtOec 6bj0G87MmFaIKC27H2bBs+H41I3bzjfQof/VXxY65M62SBLpVr3H1oeLoz6tIVhdXu1C fA825X/ocmyVr9XKqUYCZitYuJ7skV1pTC4Ts= 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; bh=RRgZHYe/sVOgOfTVgbFLvS25NV8X1dawYq/ksWlnIWI=; b=aJlR75wjBp7XE6cNwWPlGeXzgsql9RadQuu6NGeqE7M35tBzZ6sNYJHAlNruu0Syoi 7rSwFwgrkx7pptn9/9/R36oCsd2VeqZhqQZ6SKTmd88SnTiehgtMoU0I63Rwuvw+AbPx VCwUoQOReNLIUp5JptEh+EjuZcq+v5eZE6uPUznYplQ3HgRVwRSBlsoQCJBQeyZbily8 Vrtc2MrHW90kr0Wyy25lFF0DycrQ/oL7yXhoMBpfJdfHeeaSpU1M1gJZZgfDnN/xq80+ k/mBWATrySu9b8O7erz/K21v5TWPB/MADG0l4UuQiihsWL/ai6Tf2rxfCtGH9Y7hVpUI ny1A== X-Gm-Message-State: AJcUukeoAreIFwbcPl2erxC1SADbnuE3mDeKpPcZdrTDmkeQyNAiX/DL Q+BLy82P/wA/r4A6UBMq8KSa9g== X-Received: by 2002:a1c:a755:: with SMTP id q82mr18771984wme.6.1548700401391; Mon, 28 Jan 2019 10:33:21 -0800 (PST) Received: from localhost.localdomain (233.red-81-47-145.staticip.rima-tde.net. [81.47.145.233]) by smtp.gmail.com with ESMTPSA id l19sm270082wme.21.2019.01.28.10.33.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 10:33:20 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.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 v2 03/14] mbox: qcom: replace integer with valid macro Date: Mon, 28 Jan 2019 19:32:50 +0100 Message-Id: <1548700381-22376-4-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Use the correct macro when registering the platform device. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 0d64aa5..7a1b4ff 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -108,7 +108,7 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) register_clk: apcs->clk = platform_device_register_data(&pdev->dev, "qcom-apcs-msm8916-clk", - -1, NULL, 0); + PLATFORM_DEVID_NONE, NULL, 0); if (IS_ERR(apcs->clk)) dev_err(&pdev->dev, "failed to register APCS clk\n"); From patchwork Mon Jan 28 18:32:55 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: 156864 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3748643jaa; Mon, 28 Jan 2019 10:33:34 -0800 (PST) X-Google-Smtp-Source: ALg8bN4UoHOSkYdsWD9Ga3r5IFWJr0lL7UkoqtMRkZSTL5HxIIaCvOLGRN81aJ15G7oMQiXDXsrc X-Received: by 2002:a62:fb07:: with SMTP id x7mr22805753pfm.71.1548700414729; Mon, 28 Jan 2019 10:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548700414; cv=none; d=google.com; s=arc-20160816; b=Ks5uWOtKGo6ZRBEct9PBdRiUKeLTDwXbwLq4hc9M9Um94LgGMi5IMt8f9jr53ZqauP OU9uIR0lU4885XcXf6CT6ZcQvRef0XX8SXRe9umutWX6YjOdS4qjxyJqMssgFONQlq1Z TZSMVlvbMfZ4KcuRAD+2FfyWZUMcTkBhN58wo96T01ZQXzNuOFEIg7/teP8Wc9AI7lDf GeOvOzfoRGQwT0XdoL1PJg1TPDeINh/7DJ11XWYaUVEh+m6MApKEkEebiJSwGnIrBzdK VGVtq6PcBfroXr3tZljhJddxll42R5mUf6WNXzKpW2j8oOY6/pXcivgqxeo1/rpjXyPs Pz1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=+HV8Nby8D/Sn6SAvkoxC802zTo0ynRqZ7bbip7gTvlU=; b=Ae27APhdFVdyLuufqKen5q7jf3f7icUDjE/cIZCSX/b6Felpu8Ex0UzvuezOX1YbtD ZMxVKSrUTbc/TL6PPbGOCK6IlkfglTUoZgqLCuHfOoiU4cf7xgJdYCzUT1XvBkJInQcS kWfW4Ly/W/FAdcqpAc9W0OYqwtuBWxb4h/gd3vSoD/0JVyOpv82jmtQDQylVfdZx0i9I Jq0lvJPqG9aH1lE13HPnR2xbI2DhjSpmTrE47CcaFxsmBDoA3sGjz3wkI+xooHEYDMO4 DeAcjVD4jaKYJ3l/SZAJGZpRt2EJIsnPT/4HbZjmT1BGbBViXzOvQc7vFbQeaeDxvFgQ A0QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jSm1rIGl; 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 m1si6035595pgi.218.2019.01.28.10.33.34; Mon, 28 Jan 2019 10:33:34 -0800 (PST) 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=jSm1rIGl; 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 S1727988AbfA1Sdc (ORCPT + 15 others); Mon, 28 Jan 2019 13:33:32 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46581 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727967AbfA1Sdc (ORCPT ); Mon, 28 Jan 2019 13:33:32 -0500 Received: by mail-wr1-f66.google.com with SMTP id l9so19165054wrt.13 for ; Mon, 28 Jan 2019 10:33:31 -0800 (PST) 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; bh=+HV8Nby8D/Sn6SAvkoxC802zTo0ynRqZ7bbip7gTvlU=; b=jSm1rIGlQyTPja2+ldYbXDr+A1YqBNWmTeaDsPGMl7TadS2uye65vk+lYjGr8Yox3F 80uPZnH1mldfRsnbu+xQwdKYVWUR16/oHBEGlzc1Ck4LcODmicjYbz0BPrPxx7pAYW7i UdjwgF9oGxKzZb573jtPHKtsEE2WYnR1uGpxs= 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; bh=+HV8Nby8D/Sn6SAvkoxC802zTo0ynRqZ7bbip7gTvlU=; b=syjNgBfrNSWq6eV9Z7eIl9bYi/cIJNSOoj7bvIO7nXrUQWyEy14J7AU5oOr1sP8JxV qRKzWM0FRVFDekcVAbi9+jvkiYUpnMfVqzZsrs++MbDAiUAvbfr+1FxeUCZMrJuYGMd0 w/6oyatXto/iRrRBlnCJq4nVQA3inMQ4iC0won3nhCPXWInrqUz58UKOt4IA46GYFAbw E3wTH3FSF7ZWt0seJCGMuwjvOii9KZkJCxiHVjpw8tKjQnENwKEIvELePynOKg1KSeH2 5Aelx7hNuTdX4AX7TQTeW5sGDzM4F8HC/uPyhQxko0xwrsRVNgD9c79kN46Q2DmRLyML 7Myg== X-Gm-Message-State: AJcUukek5GUYF0QMas2F/wdyCbhwZ8l5FgJ0cuViPM1lwgvwl+Ygq6eF /KjnxIkvp/9cz41LgJLEqEy/fw== X-Received: by 2002:a5d:6808:: with SMTP id w8mr22035898wru.270.1548700410592; Mon, 28 Jan 2019 10:33:30 -0800 (PST) Received: from localhost.localdomain (233.red-81-47-145.staticip.rima-tde.net. [81.47.145.233]) by smtp.gmail.com with ESMTPSA id l19sm270082wme.21.2019.01.28.10.33.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 10:33:29 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.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 v2 08/14] clk: qcom: hfpll: CLK_IGNORE_UNUSED Date: Mon, 28 Jan 2019 19:32:55 +0100 Message-Id: <1548700381-22376-9-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> 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 --- drivers/clk/qcom/hfpll.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c index 0ffed0d..9d92f5d 100644 --- a/drivers/clk/qcom/hfpll.c +++ b/drivers/clk/qcom/hfpll.c @@ -58,6 +58,7 @@ static int qcom_hfpll_probe(struct platform_device *pdev) .parent_names = (const char *[]){ "xo" }, .num_parents = 1, .ops = &clk_ops_hfpll, + .flags = CLK_IGNORE_UNUSED, }; h = devm_kzalloc(dev, sizeof(*h), GFP_KERNEL); From patchwork Mon Jan 28 18:32:56 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: 156866 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3748666jaa; Mon, 28 Jan 2019 10:33:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN4oOmB85BSZ1B+vbWQr73pt6PiUzTQdp2QnlT/CgbZc4DqrBujgRN9Wr5SENXsL+R92l/Aw X-Received: by 2002:a63:88c7:: with SMTP id l190mr20423261pgd.110.1548700416159; Mon, 28 Jan 2019 10:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548700416; cv=none; d=google.com; s=arc-20160816; b=S9JHfZKsYBbli2D0npN+DbcQ1d2tCkw40qnJmMvJ7DaiFDdKIGmwK+r7VZ+tWF5ipT uaeFgx/oPXHv1F8qEi0BtC4hrCRDBoxPPcwdckycBq2I5yO01RhAkspyyxW6uciR/bKm 7sqT3ijw3mjP0F6z49pwFtyUiRhUmKE2sbXDfS3glix4GTEHis2DhrRyOFePTfZfC0Ex RF+PKDzuYUXmWu+lRMllFTbfAE18/bbH/Snm2DUgIH0kxw3J5hUEyx1cEM4KnuQf/SzE B0D2tp/r0Bpwjex95ohZzVZYTh2oJw5T+sgDCf+kLennVovPr2zu4mCzMP26XNUJ1Efr PlzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=bXD61WOsWcnEz5wNZP2XyoOaf7zm1bNwGyi1ZRGejfM=; b=UwVr9pGYDyg4xmxA0UIVQ6AQoZYFFTkSlV8skOWnEdRfFv0ZyggJY7EoG5XCbNG2fc YTHSCRslnBwjleLHJ/C6gKs1EJEHjw6ss+Gbe53Y4LMR46e9ouqGWENaHup8srQpYpr/ nBrjxhvral9WXIdKMEjdpXBExcotPP5X1T5KMHsHcKUBLB2nVqI8jr8S5DZXM9WPV91V tJjc5MmmueuaP5vgz2WveSgTKoLJntV5C3vUfwm2g9WypXdxlrPpn9CKBdBZFYlib0+o Om+wJYHUEdpLGEGwOGp6SRLyQqWNDpj1NjW+TFOnGnFhNaHShbUaprlf7lo+/MKaFeFd GjWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f5AyREJ6; 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 b2si10231477pgh.475.2019.01.28.10.33.35; Mon, 28 Jan 2019 10:33:36 -0800 (PST) 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=f5AyREJ6; 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 S1727909AbfA1Sde (ORCPT + 15 others); Mon, 28 Jan 2019 13:33:34 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38348 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727967AbfA1Sde (ORCPT ); Mon, 28 Jan 2019 13:33:34 -0500 Received: by mail-wr1-f65.google.com with SMTP id v13so19202401wrw.5 for ; Mon, 28 Jan 2019 10:33:33 -0800 (PST) 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; bh=bXD61WOsWcnEz5wNZP2XyoOaf7zm1bNwGyi1ZRGejfM=; b=f5AyREJ63jdfBtSQujWJw4CHJOH9YzluWQ/QaRbKqB+e9lrZDbflqahEW+dvmoShOK Q8Vcvd59ZbiwSqptctIKZPV7OCvlALFFu4kV+rd6fRuh5QErIT7DMEFj+pG0ucZDjCyA oZK2+7CbBhGiSbBza1Jk/fbW8TMDyu4ejnW+M= 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; bh=bXD61WOsWcnEz5wNZP2XyoOaf7zm1bNwGyi1ZRGejfM=; b=MRaRctlCFt3gbttmx1lli9h5E00iiAXeRCd+vgRvJUFgei9XpjmwDfgrc0ead46uen hZSFWsmweBylvlK8fkw5NFq7cXb7ybrDyEddueQzzJCi7zWpwQ8ibhOwvQhzsGLeXWSu JCtZ1Zoqfe+ipYdXcShlgWBAcQHLEZYLqiSOBpAEhFcKOBezm3iLohni0vRYXFtOTZGz EMJlIktZk+/0/RhOsZ6n0dytKOyh4pzSMx0VPrmL36UzyctB3Cb5o/R8K3kNOjlOm7qn Y/OkZG9yPYU8OdFtwsvDOFSZSBhb7EOBAVnQeL3YdsjT6esElnPcv33TdehJDdaDVT9+ 5Q4Q== X-Gm-Message-State: AJcUukeOgFA9vZDdHhaUVI0mEtMHXNXVaTMigWdrOBSed4dGgnEEQwNg HMjDF1YJR60WcOvsEfFzQvY1/A== X-Received: by 2002:adf:db51:: with SMTP id f17mr21594735wrj.90.1548700412437; Mon, 28 Jan 2019 10:33:32 -0800 (PST) Received: from localhost.localdomain (233.red-81-47-145.staticip.rima-tde.net. [81.47.145.233]) by smtp.gmail.com with ESMTPSA id l19sm270082wme.21.2019.01.28.10.33.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 10:33:31 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.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 v2 09/14] arm64: dts: qcom: msm8916: Add the clocks for the APCS mux/divider Date: Mon, 28 Jan 2019 19:32:56 +0100 Message-Id: <1548700381-22376-10-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Specify the cloks that feed the APCS mux/dirivider 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 --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index c5348c3..729c117 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -425,7 +425,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 Mon Jan 28 18:32:57 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: 156871 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3749192jaa; Mon, 28 Jan 2019 10:34:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN5GxYUbHS7XbWWFJNc9UYTbtrjPtVA7rC/oK+9FgIxOgxKEaDFGk5mISL9SlYc/rE4ERB2H X-Received: by 2002:a63:1c09:: with SMTP id c9mr20551096pgc.200.1548700446077; Mon, 28 Jan 2019 10:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548700446; cv=none; d=google.com; s=arc-20160816; b=om1PX0q48osnC3VjaOLi+5aerI4uqtHNiUIX7Yyx84T0+gNEyallJMhi19aSAVqJNL KkWYgkkcVEck+HpkS4dszoZDEK/XAQGe5Kbvwrv5xnirB9ux8BDhh7NGaFELxuByc62W mDdRVixyVohD7hJ6SqOb1U44JAwyvnrYOfyIUzS1eLuzC2oyRSJ8NAAvAUvRMoThoxnR j7f84FnKkG6MAvZKPtmrSE3ZHqtdjksNe/L7ainGn8CgWuNOeNsJTwK8UQLqx9yV+nLA YPa6KOCa0iGlnQfK5Q/gTuwTiSkQqAN5/IuCNhD5TGeajT14C+UT/c/8FZ43k8sgqUQf Su3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=xY2V4sBj5Ds3+SQmdTspSIBla6JHASTE6hEmXoXtqtk=; b=SErQC2zPT/kiFOL7MvsNkELChspm5aF/JZwgGLfeWSXLVOOScsyVTMG3yR4eLm7uJO HqmminPeIWJIlFiOh8Mro4P3+xbQeCqsYECU8bvy5+XOgoojzSPQ+cSQ1X+FS1nWfAFk UoFHrt10w/k9VWjnXUCZ4igNl4o50AMzdSCDWzhdoVw0GxKM1TMiuk79fNgcuYLMswVT 8hGJQLCKcVdt241G9X4AkEfHRaFYErVx8dbB+R13ojC6fux9zw0w0+Nkl1Nau/7D3uhS jrq+vNntd59ujQp5Ez0Fxe/rfIYSb9EWhNqLRzgt8qXF9v5Oc+EFmOOU0cIs6CdsbUs5 AaSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqulDG1h; 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 e69si32732775pfg.137.2019.01.28.10.34.05; Mon, 28 Jan 2019 10:34:06 -0800 (PST) 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=SqulDG1h; 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 S1727461AbfA1SeF (ORCPT + 15 others); Mon, 28 Jan 2019 13:34:05 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41565 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbfA1Sdg (ORCPT ); Mon, 28 Jan 2019 13:33:36 -0500 Received: by mail-wr1-f65.google.com with SMTP id x10so19198746wrs.8 for ; Mon, 28 Jan 2019 10:33:34 -0800 (PST) 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; bh=xY2V4sBj5Ds3+SQmdTspSIBla6JHASTE6hEmXoXtqtk=; b=SqulDG1htlstay/n1BHzyLU2JQGWF4RcVpu7TJm73i+S5Fwr+HCfyNcMj/gpDjDYK4 gFskLeTNSduRkgrAzr+oYZGbPzCkSuEcRZ0babBtOqcd4KKxZkGbns0m7Wx7mB4L/1Kk r/8EwQt55R5byIizULDYs4GIaxcrrL7l7/Lh0= 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; bh=xY2V4sBj5Ds3+SQmdTspSIBla6JHASTE6hEmXoXtqtk=; b=QjYggyuqMW1CO77YxlTCWT86OjkFPeYdAQOJe/Op05MOJwoLYsyWU3gb9JXHMjwJIJ ydEaiMXDdiaD1K2Li7qHPLM10mXm1MFj0c7wLBiesi+gGytgXRENEBziKsx7Tp9/tR/6 osB05NHMFBG50DMgMbVHENgwcXq5W5kwhpMt0zg9tBKA5qiP3qCCo5uWWIS0lQRDxYHj ylyw8KfogBYRjlyRdr5Bx19I+c13RVTNR+goOIhdwclIQTze7i45ZIRZrZbnpz/Ne6Z6 o7Puey0obs7KcixsXB/T+scDIxGDW9OTIaUJUvrpQbEmDojmhmZHKKdTxcukzcmuh10H TyRg== X-Gm-Message-State: AJcUukfj6VlPrlO1FhyWpoQPTbIDG88GkD6F0mAWxJ3Dsap31ecfve0o ln3/A1pHF80nUxwoUnzW4jsczg== X-Received: by 2002:adf:e846:: with SMTP id d6mr23424491wrn.72.1548700414206; Mon, 28 Jan 2019 10:33:34 -0800 (PST) Received: from localhost.localdomain (233.red-81-47-145.staticip.rima-tde.net. [81.47.145.233]) by smtp.gmail.com with ESMTPSA id l19sm270082wme.21.2019.01.28.10.33.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 10:33:33 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.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 v2 10/14] arm64: dts: qcom: qcs404: Add OPP table Date: Mon, 28 Jan 2019 19:32:57 +0100 Message-Id: <1548700381-22376-11-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a CPU OPP table to qcs404 Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 9b5c165..4594fea7 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -62,6 +62,21 @@ }; }; + cpu_opp_table: cpu_opp_table { + compatible = "operating-points-v2"; + opp-shared; + + opp-1094400000 { + opp-hz = /bits/ 64 <1094400000>; + }; + opp-1248000000 { + opp-hz = /bits/ 64 <1248000000>; + }; + opp-1401600000 { + opp-hz = /bits/ 64 <1401600000>; + }; + }; + firmware { scm: scm { compatible = "qcom,scm-qcs404", "qcom,scm"; From patchwork Mon Jan 28 18:32:58 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: 156867 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3748746jaa; Mon, 28 Jan 2019 10:33:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN5kAYb4Kox7MYUP77X1DnrzdlK2IHauAsIR0LKQ7qAfKAY5qwpGz5o+XPheX92b5uokdWqa X-Received: by 2002:a62:b511:: with SMTP id y17mr23107087pfe.199.1548700420436; Mon, 28 Jan 2019 10:33:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548700420; cv=none; d=google.com; s=arc-20160816; b=Vzi6lTjXanxmJMUUx/EPSsoNu1rmgGjEcJYLuTa3gzOnubal3jIwM+oG55MnxVt3nM MEC0taSLzaFQZ42bx/ec8LAciqLVHhuada/fwv4GADDlAhR9W/x/qApQ1HG0utGgYm5M /a8k9CyBnyIzt2Kda34uu9A8Zpni2vlFkLCI6MS40tXz//b/RRLQT+853Mqe9X3JWw0u lTeMrRXA6CobpTrXYSevKF0J/cf98j01XOmJIaStt7oCsX8uCbRBnEwhLHWJ74l7x6Cu /qyl+smjmUGgg5v0nSVF/Rmi2/263Ox2Ip4xBcAzB5jz/aYtlrPpvzeresaNjxy8K5Sd dsvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=OVxxzmEh7O/wpeFAQp3T6SExbMI3Aurwjiqrjgi1z+A=; b=xUgHFQ3Zh3s8tcm6woV8rOW9Fqz7dKuznTP8H2vFVCJNcBH9y0UTutC4PTXdVQVLmZ /mmoC5tYst+7nWs0cKdIrlIXXzFVh3uwAoLw/4iMgrEGEBbc7dBB+TGnnzCBenIAy6pK M1ITeityXFmmvYMTJmmJ9uc0W7oMkyLZQT4JNE9Jy4keuqYRVhpemd9/2PzofO4KEztG 6IvotAjVqtqOibny9UjrpVVkOZkGjpJ0JwpehHFykSBqe3hsFw3F6GkpJ1rwgDoBDo4d IMWjgz8f8uoSBkak584vZy6k/7kOplKjt6iMzlJzW/RuPlq3uEC3rVxXPVKKCy0jNt0l U9Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FP7HwM2T; 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 b2si10231477pgh.475.2019.01.28.10.33.40; Mon, 28 Jan 2019 10:33:40 -0800 (PST) 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=FP7HwM2T; 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 S1728049AbfA1Sdi (ORCPT + 15 others); Mon, 28 Jan 2019 13:33:38 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:34678 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728021AbfA1Sdi (ORCPT ); Mon, 28 Jan 2019 13:33:38 -0500 Received: by mail-wr1-f68.google.com with SMTP id f7so19308598wrp.1 for ; Mon, 28 Jan 2019 10:33:36 -0800 (PST) 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; bh=OVxxzmEh7O/wpeFAQp3T6SExbMI3Aurwjiqrjgi1z+A=; b=FP7HwM2TSUkrIzNgUgG81sDzpBy1MOMEoPvqCecdfRPpDpVQ5LmCEuFQKYFV9eBd12 /O3Il73uqXfnJ+Y7g4nX3CpLkaCZm2o4JRrFE+4B2Quez8vvqQN1bIdW86sjujlDMt3b riz5HTi3W5KUdadChQakj9B/2+sw+7Hfj6BLg= 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; bh=OVxxzmEh7O/wpeFAQp3T6SExbMI3Aurwjiqrjgi1z+A=; b=tWtozltbMuXFIZ/7973VM80rQqPtbAELd3f8YnACkQdx1W8xO6QefYSsSMVwOrtr5b ZTg+uIgc/1PToJkJtjMc+dr95yY1obGDlyR2gIUBRE9bFxv6Nng31XvWm5EhPhEqPAC7 rSCZ7xD/z35sgdE2i2sc6dP6AqHmtr/XUGsd2hsBMdrRg/RSlERWN/U9DV40WMs4Kzbg hxj1W9b4gzZZ5AubaZOOvFGxnFMShNL9L27PHeYLormSM08RPxTcuEpA4ir9Jbl8EUIh t7V19UaXNxBnW9WaWo8kIUfCXCi+QLonqj8MLsMXOZi4FqUCpZMPuBz+9x1byBXSsucG a2yA== X-Gm-Message-State: AJcUukeX46iW/CKlH7llhWZ1bZiKuwOe9M0kRQ6IfTH7s6PzwvoKiNr5 t+pyNNow/c28vT1CwMe1AMnM1A== X-Received: by 2002:adf:e7d0:: with SMTP id e16mr23945970wrn.142.1548700416145; Mon, 28 Jan 2019 10:33:36 -0800 (PST) Received: from localhost.localdomain (233.red-81-47-145.staticip.rima-tde.net. [81.47.145.233]) by smtp.gmail.com with ESMTPSA id l19sm270082wme.21.2019.01.28.10.33.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 10:33:35 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.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 v2 11/14] arm64: dts: qcom: qcs404: Add HFPLL node Date: Mon, 28 Jan 2019 19:32:58 +0100 Message-Id: <1548700381-22376-12-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> 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 --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 4594fea7..6a4f8a2 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -62,7 +62,7 @@ }; }; - cpu_opp_table: cpu_opp_table { + cpu_opp_table: cpu-opp-table { compatible = "operating-points-v2"; opp-shared; @@ -375,6 +375,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 Mon Jan 28 18:32:59 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: 156870 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3749099jaa; Mon, 28 Jan 2019 10:34:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN4n65RozqJFT7LH5/EmTwomvbm0qrCX6HDxk9cXGjbp7lTMWCGY1dQBvOYPWbA738uXpPoc X-Received: by 2002:a63:66c6:: with SMTP id a189mr20847833pgc.167.1548700440473; Mon, 28 Jan 2019 10:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548700440; cv=none; d=google.com; s=arc-20160816; b=fy7RWvEetZrxgKqYV9OGwhqXhmJrfgzY2refwGgFG4zsRmqOfxciOje22/5rcGTWbx r0xjA+5odVnxbkWyFfQZcx2rOu/eFDS5AtEwU/62wUerfrxg3PlA5Jb0Brd8tFp42gXA 08RufkTJJYrhABBqxf0QJGutBce8skFyLsYXdRGbbovoKxy/WdNl4iOLBVtdiEeOnAk+ Gd1BRI/qUOnRXFiTEhsHR1klcSW04zWh7ET7j3GciLk7FOMW7aXtj6WXI393rkWW/2V/ WU8A+JTreKNlTJHMKGlssJrVv9OCyA3sPSC4Ihf4nReICBQbSjY9ziESnJFrx/lavSy6 e9MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=eKEG4PSnkdw0wbmM3EXS4MNpW9S0VVzPeVsDCYH9cC0=; b=p3owRy997fsKWUZ5Qht480Y7IG0FTVSr7v3p4zs8HPMBwak9ZM9MpGsqQti7dHehQD hFFyPspjVJ8zZdc/zPcv0WZFV1ZAKmdQDW8/buT1yTvRMsKVuCEy46evWl4kdhknYktr hjOUh5PXl+BDfkJefQzaI4QqSXEIxC8FaLIeMApMxWUnn/KTdIRJK8cRqH1J6bVvmzGl ItAzw58sV04a4QCjhKObQA4ZfHzYcZgSOFuAHCZehhsao4CscbcR24jcpp6EHoy79Qaj omof7Dq00xXOyo+eYUh1LMAsFF+wLEp/Vj3BVxw+RonB8qLo7IHy629qdt1oOoWrNZUF vACA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SWu1KohV; 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 e8si21686321pgn.325.2019.01.28.10.34.00; Mon, 28 Jan 2019 10:34:00 -0800 (PST) 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=SWu1KohV; 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 S1728199AbfA1Sd6 (ORCPT + 15 others); Mon, 28 Jan 2019 13:33:58 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40127 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728021AbfA1Sdj (ORCPT ); Mon, 28 Jan 2019 13:33:39 -0500 Received: by mail-wm1-f67.google.com with SMTP id f188so14974042wmf.5 for ; Mon, 28 Jan 2019 10:33:38 -0800 (PST) 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; bh=eKEG4PSnkdw0wbmM3EXS4MNpW9S0VVzPeVsDCYH9cC0=; b=SWu1KohVPEDN62e9GI7Pp9rkyz0nPsSFiKPFv5EbE5rqlP7N4qpbH7R2yCb18KZwcx NoRVga7pQsCg6LhBCy/KapUGZIHkw1Qv65vnXLNJvM0I25SbbcFJeTFK3lF4mlW/GTkc XMwIv5ApWAIvUUyhHR1BVNjTEUDdv08dIyDYY= 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; bh=eKEG4PSnkdw0wbmM3EXS4MNpW9S0VVzPeVsDCYH9cC0=; b=dr1qdd0JbPRvCEOAVMSx6/fZjK7iAlXZhNljZ6l1cLlEpUCivTlVOt9tD6gXjxDoHR HXf3L4mzmkppdpL56UzDFrzBhSRU7nl1p8B9HEUg/7zRjcntBNLnOheBeiIa9UkhyPHZ y1an8+DsHZWvCSStC/Tg7VNcAhGkHA3bm0vOSpM+WeWc7+w0wnHGmkR571jI2qNS5CSH DZgeRTAo7nBQTfcjoEiGln4Q6HAbfBfcLlmTO2+KKTsygFVgOoRpKV32wMRv5dpy+oc1 kmD6qaQnVL/lGxBd2SaJlFvY9AUVh1I4B03p/tm3YQ+KNm37Ib/1Ezrict+qK0p2SzBx ld7w== X-Gm-Message-State: AJcUuke1JmsuVg+S8761Wepy3mnDPd930RS5/Mp5O88MFHcijOpEjxxH hg1GlfrWRhI/WeqRoWj3WpZTDA== X-Received: by 2002:a1c:6e01:: with SMTP id j1mr17759452wmc.103.1548700418085; Mon, 28 Jan 2019 10:33:38 -0800 (PST) Received: from localhost.localdomain (233.red-81-47-145.staticip.rima-tde.net. [81.47.145.233]) by smtp.gmail.com with ESMTPSA id l19sm270082wme.21.2019.01.28.10.33.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 10:33:37 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, andy.gross@linaro.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 v2 12/14] arm64: dts: qcom: qcs404: Add the clocks for APCS mux/divider Date: Mon, 28 Jan 2019 19:32:59 +0100 Message-Id: <1548700381-22376-13-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> 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. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 6a4f8a2..948ba3c 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -373,6 +373,9 @@ compatible = "qcom,qcs404-apcs-apps-global", "syscon"; reg = <0x0b011000 0x1000>; #mbox-cells = <1>; + clocks = <&gcc GCC_GPLL0_AO_OUT_MAIN>, <&apcs_hfpll>; + clock-names = "aux", "pll"; + #clock-cells = <0>; }; apcs_hfpll: clock-controller@b016000 {