From patchwork Mon Dec 17 09:46:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 153972 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2266598ljp; Mon, 17 Dec 2018 01:47:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/WktREyH6DuzxxI3ZxUfo0+AxaD+BD8K839z0Khv1UYmT3YGx+yaFfXZN43vF49j2Mr5sYP X-Received: by 2002:a17:902:f81:: with SMTP id 1mr11660825plz.174.1545040069225; Mon, 17 Dec 2018 01:47:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040069; cv=none; d=google.com; s=arc-20160816; b=MaS3MI0qyUAYdLbdEed6o2YhuTZZRc0GIt8CifqivZA2M7Bm080Q6/CnVUiABBSSe0 X9PhxxMLD9EpsINouRvQ8VqpsaXNrMWhIwDtrPn4Dwk+slSRUSVZM9s3aW4mHLKBvdNG sQ1mj1X/D/ip8jls4ryl1Hf5GnK4HLhavRLGQCei6Mmv3WZQb85fqcnyCH3Tz5p3FUte OlU4PkMiU789im0638NFTrLMpi6Z5Te8JXR8WyZR1wZejaJ5LQf++wTYLH1NtPGAnyr6 1x1tgnX7YzMCeEigm5MmmhHgfAKQioejEip16X9e0dDE2nKvlfB0HEHYxKkFiqlDUF+z LSWg== 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=MAoZVGyUyqIgBFjZmHlB19eSlto0aZoSbTGaZ+uSfto=; b=Xo82PySP3x7YCpujyXFtvKB9Q5fsY6dJ9xxc09CQM47ggIsQe+znGIOOzFv384BbjP TMqkYuOVaMBOMeNx4pWA+FMUr4qZfoNhf4gWhUOxWHNcHGk13vDnblGD0BPVJPVXxCtI OaCtVJRtgAQYEUdBS2srkwZ9940dfru6dwqVJ5YZbJIMZaF0uabLDCjlEYluZ2yc6PSK qmNxwt9GD+i7TLjHDV8/xa+CIq/JDFNvc1tRxyrf7Ufb6XQ2Rkh+Fo2wEuLJQCtB5/Pi QOm2wVgUjiVDwmwGmGe+5Aeo4K8Q6n4v0eeFLKrQrVPVlms2sLzHTZpfldz0f977MRYu 6M0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ju0aYP9T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 g2si10306192plp.130.2018.12.17.01.47.48; Mon, 17 Dec 2018 01:47:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=ju0aYP9T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732135AbeLQJqm (ORCPT + 31 others); Mon, 17 Dec 2018 04:46:42 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40722 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732019AbeLQJqj (ORCPT ); Mon, 17 Dec 2018 04:46:39 -0500 Received: by mail-wr1-f68.google.com with SMTP id p4so11526622wrt.7 for ; Mon, 17 Dec 2018 01:46:37 -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=MAoZVGyUyqIgBFjZmHlB19eSlto0aZoSbTGaZ+uSfto=; b=ju0aYP9TwSWXr86I68EvqHSMfznus+2y4taD626AEyJQ8pivkVBFmqA1lZo0dF3+8n oMhIBEWw3Ak98UO+qQLaGCcj8vlMp1u0qie8op4+DYKI/rgoSKEXaTxUS0NvD52uSCJt EMU5uAVjdn/0rTOdtAPD4+qBGXiDqhE8eN8Mk= 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=MAoZVGyUyqIgBFjZmHlB19eSlto0aZoSbTGaZ+uSfto=; b=loROqyw80hP9a2bqWr9haAlkObd51o1Oo6YN8ZwqtxktQQrniAn/GB/ky/CJdPBKTZ rbOWsR72OWancxbr6vpXA+tRfaxouX123EK6HxGhzB2GnBoi0rPPpfKajrhLg8hM1m0x yAzF+xsDdmSEEHibn7kOfQz2iVS4qWDA7VQ92k/In5tuxwoTjKXvRRvwMT0vLA7iqdFi HCngih09g+ZoDnlUSS1ndXVzxWQHgEhlE0kNFdBP713LRRNBP0E7aoWqJpPEiWbadSIi olRDNU0ZweNIEX9eBsm4zGky+JZ3ICx/oDSq/JQajqFdjTsOeHygOrd1e/LKApPt9wY9 3agA== X-Gm-Message-State: AA+aEWZ0PvkrPbVnabrzVGfFVDrP2sPveSF/ihj2BhWvhBRfZwK5WOum /T5+xZCJITwwaJ1Bn95yU+ah8w== X-Received: by 2002:a5d:418b:: with SMTP id m11mr8959307wrp.8.1545039997185; Mon, 17 Dec 2018 01:46:37 -0800 (PST) Received: from localhost.localdomain (58.red-81-47-145.staticip.rima-tde.net. [81.47.145.58]) by smtp.gmail.com with ESMTPSA id h12sm28878113wma.48.2018.12.17.01.46.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 01:46:36 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 01/13] clk: qcom: gcc: limit GPLL0_AO_OUT operating frequency Date: Mon, 17 Dec 2018 10:46:18 +0100 Message-Id: <1545039990-19984-2-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Limit the GPLL0_AO_OUT_MAIN operating frequency as per its hardware specifications. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- drivers/clk/qcom/gcc-qcs404.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.7.4 diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c index 64da032..833436a 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -304,10 +304,16 @@ static struct clk_alpha_pll gpll0_out_main = { }, }; +static const struct pll_vco gpll0_ao_out_vco[] = { + { 800000000, 800000000, 0 }, +}; + static struct clk_alpha_pll gpll0_ao_out_main = { .offset = 0x21000, .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT], .flags = SUPPORTS_FSM_MODE, + .vco_table = gpll0_ao_out_vco, + .num_vco = ARRAY_SIZE(gpll0_ao_out_vco), .clkr = { .enable_reg = 0x45000, .enable_mask = BIT(0), From patchwork Mon Dec 17 09:46:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 153961 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2265773ljp; Mon, 17 Dec 2018 01:46:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/UC09/9GqPKdJ4FfjMev8yut7uIQJ2yDWvY+6t5I92h5mcsC4aLWWJCRJ5LBelcAbDw42Z5 X-Received: by 2002:a62:3241:: with SMTP id y62mr12177401pfy.178.1545040005487; Mon, 17 Dec 2018 01:46:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040005; cv=none; d=google.com; s=arc-20160816; b=DwQ0dWrpjo/6D8ZD8TSkv1qzVrR9HkbxfKQfdjOv8eKeHiQ1/MOREwdCS2lMFfvZYP fVpnCY68gYfGGGeiOF8+xhIyLf8zYvrLmVfQBMVhVL2Oa6piIm8eNVukyQ/f6/iE+W+K FjlNuze8NZK6w6D4HESPcz2Yr2aDvncrnTH8FYryum8xAvnD1Z+6bEANl2kZXvPIymly yNVrO2BDIE+k9lD7ukVTHbj4HT4mrnmHCWDtHI8dU5wQnRVndI5+vMlB9O59UBGYbZHN 01Pa9/Z6ozNP7xohwMpDj6ICJRnxpUSNP/tCRkc3YxeCH2I/2gLVQm4O/oSBo8oIG1B1 ouyw== 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=rA8teKiCQvBpv/jfjC2a7MA/lCNZKpqm0xO+S8oLkqM=; b=wWc8K/5/8yyEadAAvm8OKHioUR/AOVr9QB7K/7l0gmHUSaN06pREUSYgD9f54PNCdm D/N92LiAeSfMlxadY7taEG48nXhAPt/UDPIO5Cat48KhCrpRKlMddFdxXBjgK7Qanaz+ 7yRRhXv8w75SjmTM57Ni8LGYMQsJ7lEx7OrHqvDYp2G1CqctF2Ek28yKTvCNxjuSe52B wSaQbCkqo+yTCaJPKQ6k2LoqkzRkc/yk2kZVNjgBiDvH4Beu6ov3fSur5ZuZxQOb7NW3 mhnFXHP+7eyQARYv3OCkiSX9gmQO7jGnDaHz31kRvC7sxA5j2sbI1NRcN4BCyIQgZ7uG b9cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YbXbCYun; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 r18si10243968pls.115.2018.12.17.01.46.45; Mon, 17 Dec 2018 01:46:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=YbXbCYun; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732153AbeLQJqo (ORCPT + 31 others); Mon, 17 Dec 2018 04:46:44 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:53858 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732103AbeLQJql (ORCPT ); Mon, 17 Dec 2018 04:46:41 -0500 Received: by mail-wm1-f67.google.com with SMTP id y1so11588675wmi.3 for ; Mon, 17 Dec 2018 01:46:39 -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=rA8teKiCQvBpv/jfjC2a7MA/lCNZKpqm0xO+S8oLkqM=; b=YbXbCYunUW3tubTWVVJb5UBGIYmnq3QR6aAeKO8sBv641SUkCq2JGFk3UXK9gihIF+ yS59VYvgidBAEq9hRQ3kc5BPXQuoJEoA2f6mXSojC1iz7M4w1nmn/S/TNOGEKdzbLP7n tCUPHDMhIQ7mrxrDTHm3zx9iIT7shIbdFz2GU= 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=rA8teKiCQvBpv/jfjC2a7MA/lCNZKpqm0xO+S8oLkqM=; b=XveO3VxmSqt07li1r7m8y6rAwDRaDSCJ3RnxRcsuCJjBWBhkeQRkvwPHTGIfrtBM1D clJxTIaX5fwlDG8rQ7BFHCAMSsvZm++Jv5j/Z1RIQ2sQF5Mb+mdHZC0wC2yzuwWSsmY5 65Rq7zG83kLPwHBngQZLayA3HsmwvXbEabzqks1uf9soyWjXBPa2qculLHgx3EFnxhsx UkleQ75M9XW5p90HB7wSAwjipzVFeov1DB3anWd6oQ2PcRyoPxUa2VMSEl76AesWLsZF txVidjn+0LGHsuM3BvPTPXQ90RHI5HEa+dBpAh9lAM8JxL0D89RBNMt9LXziNHb31e/3 Fu8A== X-Gm-Message-State: AA+aEWYAC/pnBlvaPD356ALo0kdSDUoLX/eoy0DH0WJ+bSIAjlCa677Z nQUF5NxNoy80iCx2QLGV4IcaeA== X-Received: by 2002:a1c:1b8d:: with SMTP id b135mr10854223wmb.115.1545039999082; Mon, 17 Dec 2018 01:46:39 -0800 (PST) Received: from localhost.localdomain (58.red-81-47-145.staticip.rima-tde.net. [81.47.145.58]) by smtp.gmail.com with ESMTPSA id h12sm28878113wma.48.2018.12.17.01.46.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 01:46:38 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 02/13] mbox: qcom: add APCS child device for QCS404 Date: Mon, 17 Dec 2018 10:46:19 +0100 Message-Id: <1545039990-19984-3-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is clock controller functionality in the APCS hardware block of qcs404 devices similar to msm8916. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) -- 2.7.4 diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index aed23ac..dc8fdab1 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -97,16 +97,21 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) return ret; } - if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global")) { - apcs->clk = platform_device_register_data(&pdev->dev, - "qcom-apcs-msm8916-clk", - -1, NULL, 0); - if (IS_ERR(apcs->clk)) - dev_err(&pdev->dev, "failed to register APCS clk\n"); - } - platform_set_drvdata(pdev, apcs); + if (of_device_is_compatible(np, "qcom,msm8916-apcs-kpss-global") || + of_device_is_compatible(np, "qcom,qcs404-apcs-apps-global")) + goto register_clk; + + return 0; + +register_clk: + apcs->clk = platform_device_register_data(&pdev->dev, + "qcom-apcs-msm8916-clk", + -1, NULL, 0); + if (IS_ERR(apcs->clk)) + dev_err(&pdev->dev, "failed to register APCS clk\n"); + return 0; } From patchwork Mon Dec 17 09:46:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 153973 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2266674ljp; Mon, 17 Dec 2018 01:47:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/VZuFmBtd8RbAe+AaSXG8wYoSUrjHsmuKQ4hkXcCgfYxT6D1CaWbqm711n5cvPLjg+fpobi X-Received: by 2002:a17:902:1745:: with SMTP id i63mr11806645pli.145.1545040074202; Mon, 17 Dec 2018 01:47:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040074; cv=none; d=google.com; s=arc-20160816; b=FJkzqLLs4LHqTq1Fi5842TovOAy6fHSrHwIkbRpejmD8RiU9twKlg7utJdk38NkvpG JxlZWxW0GTuBBFVMy5lFy419fXRuGVOSgYINe4ORZr4KKeZ8HIzzIUA1l083TnZiCbOq 5lVgoJHBjCoBnqe4IACpWVbDA+2VkZC3BOjLJ0D4GHlNkNKkKqS/GXja6ttDWoqw5PJ0 bF/Emr/ce+QfzVmqlFkHEA4PK93nJAUjCdjX5KrEIVQSpda1QjpnLTa61/MLn0Jnp+Gv NFAmaATO0y7l8qevwpBOjQTeMrZy0qm+HDmOPDnP1OxBh2foJ/rkN3DH7CL4lEHHLcsO a9Aw== 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=DZnT+i5jw7FKMKXrOSMgnbdLeVWkWYBBUnpyBbjaMIo=; b=p91W3T2/p0KRpyu9Z/ba8QkQX4rh36Vsx3l4Yd3XWhjHTEX+X3/CVqWB2PN/cB0wxE MbOqhNa25Fq6QQP4eT4WHZ1P+Uc4n+uk5/ox+A3E3e2D/CJJTJO6bYfvd6iJKqYmI0cz cOavVnTZ22UEVHn9FsEx6G8Yz29ZmsBkDWuFjrGcBLXgZlKzvg8eBhgukATGDXqXONKb 7unm7AfQh1lTEuYPadAFIhCm9ojIvYMoImvh8uMe4iVO6Sl5bRLTMwOqGzpiawBv1Rux /Hrbp09GxbP/2Dez7ORYIUTM06Aq7Qj6QdfIrhSSEmnx0lf2yKL6O0ad+IeeXVzXCpbN N7Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FzHtBQec; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 b1si10712309plc.332.2018.12.17.01.47.53; Mon, 17 Dec 2018 01:47:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=FzHtBQec; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732333AbeLQJrw (ORCPT + 31 others); Mon, 17 Dec 2018 04:47:52 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37836 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732116AbeLQJqm (ORCPT ); Mon, 17 Dec 2018 04:46:42 -0500 Received: by mail-wr1-f66.google.com with SMTP id s12so11099844wrt.4 for ; Mon, 17 Dec 2018 01:46:41 -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=DZnT+i5jw7FKMKXrOSMgnbdLeVWkWYBBUnpyBbjaMIo=; b=FzHtBQecwnsOdmLrHWs1fQzYOhp3dfjJ0dhPsVXtjH7IPLKxHLdtL8K99B09iFOjlM nKlO/8up0jW8eqbjiOZjUhUdv9/rStEqwSDMqAXIih+cpUEK8huEj4Gk+ybQPCePF8fA dPkfbuUPbHOjqKk5/e3mvs5VhMyDoWap7Knr8= 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=DZnT+i5jw7FKMKXrOSMgnbdLeVWkWYBBUnpyBbjaMIo=; b=ewogS21ndFKJcwjYyshSkAJg3HPHMUs5QhprgAXXH6VuGRSnW7gdQny0aRoweWgcpv L3WRiSj5XmRz1bSmI3NlBmSk+NHltlrp0riZCZw9DvKJH34KBGtFC5iUYowJuI4DveGX WvbdYeW5gW3UV1a6LIwq2qclFzNxmD4fxjHXUhpBLeYOP57NfA08c/j8+3K+j8iMlRpn I83pPe/qYmn2zTMe7fly7ZetD8DQw6PJbNXO5u73LCUUIPqluSybc5syzS+g9TGtnY7H /jWc8khAcuhyV3j71cV6Zj/T41ClbZY5emHtqetZZVaqe5xQ8Rg5nSXs+tvfwv4CyK7/ ehMA== X-Gm-Message-State: AA+aEWY5FPgXMzbAo+Cwmfwj529waEJkkKmurQqG4RNe34+4hoY9L6q0 kQCM2cg4OAxbYuVlm7N7XHkC0w== X-Received: by 2002:adf:a4d9:: with SMTP id h25mr9285946wrb.167.1545040000993; Mon, 17 Dec 2018 01:46:40 -0800 (PST) Received: from localhost.localdomain (58.red-81-47-145.staticip.rima-tde.net. [81.47.145.58]) by smtp.gmail.com with ESMTPSA id h12sm28878113wma.48.2018.12.17.01.46.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 01:46:40 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 03/13] mbox: qcom: replace integer with valid macro Date: Mon, 17 Dec 2018 10:46:20 +0100 Message-Id: <1545039990-19984-4-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 dc8fdab1..b782173 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 Dec 17 09:46:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 153966 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2265937ljp; Mon, 17 Dec 2018 01:46:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/XOmTNkJkYhJl58NXr66rrtNcmC3Dzt/tcORGaSidHpwSjRJ6CZ/aPzyzrlhMYADwJef8lv X-Received: by 2002:a63:e001:: with SMTP id e1mr11711189pgh.39.1545040018789; Mon, 17 Dec 2018 01:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040018; cv=none; d=google.com; s=arc-20160816; b=Cq++M83obgnfvudfOO3288N7gGDtD2V7zTKRjwycz8ffWQJlP5eSVO2xGnWcqZFZE4 E3lO+UHhgcatFwzJLvbCG+NaHWPE2Pa5E1X7MCYF4km6zCPXsjQIK3Wn4nMdruKV+FYy 67XUOoaIbbMAci2tEEm/QKToPXk4TP/36v4Iwow3fUJ9ec4szrujdmJS3VcyEezdgC6A etj+dV7JyFdrKVu+05bdBKn//onT62hPjjyn8uywQNLdvjf1BezVE5N+ck6FHUgoh7B6 JqdcPbkzdzv3y7gZMcNMvFKN9RHR48EVuDQKvDPaY+QPZdpYZZj+ICgNS14ipQ2aV9Y8 5b4g== 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=wQ2iFbQQ8dNG9z5hg13/1bcfJ052nudoG3yt97xmxkDoOLlcvB0K8mnR/+d0IfPVEC kAiH5afdt6xMZu53sD8jswWZyfT7qrxj+dEjR6G6EXCTvUAE4V0y5JQ2Hmf73LXuwA9w I8YyTKCexu4RQjFAe61i/vKoM0SlwlQMmxxKZ6wfz/Ciad+JsrCRFMK9DgdaOADusE2W vjIScTejGIou80sPnpo/6Ccq8qnSR8pXTDql4ZZZcRza61cNC7AbaZHCWgs6umVAe2I+ +9VG5AJlT5myxAkojUcRu8I1meernyeqO1z8KMO8I+4WDMeHRdMAMqduEw3LR0IWpboA RxKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hMkC5urK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 s71si11108076pfk.105.2018.12.17.01.46.58; Mon, 17 Dec 2018 01:46:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=hMkC5urK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732219AbeLQJq5 (ORCPT + 31 others); Mon, 17 Dec 2018 04:46:57 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55870 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732200AbeLQJqy (ORCPT ); Mon, 17 Dec 2018 04:46:54 -0500 Received: by mail-wm1-f65.google.com with SMTP id y139so11568288wmc.5 for ; Mon, 17 Dec 2018 01:46:53 -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=hMkC5urKEck/zn5xSgMuam1rniWk/yQbP4srf4MLONnN9Z6SsKDuVHSY9Zw4tdfAws QMGRwRY5tU3zqgRXgGdeb9F5lnl7Cf9rXo7E4dBhmnlHdDxnfVFUOtbhk0tKXYe7GBCN dxipQAVzK5xuZEKt97qd3h7gvGGRoSdY0Rh0w= 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=P7LWxMBQ+/TOkPbaOOpDIfPHl2I2xpfpgZIMlFg+BVfUb2WjmYCxaB2mVEF1/+kSsr c951vWhU6HMln9cp75RB6J5pwe3RADhLQbgOSjv+/aKyX8O7vUskrwV7ns2kSToah5ux gxvmzB49u6/jDwVeNLzm728n70TbYvV+wq1ihJrpQYRlO4s5P27q5AIUnqd5YI3mhTr8 +sOf4upvhBRUmJaQcX6HsYJVXNKKa6fG7sQpGLeBuMLGsx8M8hpZAzu9l7SLyIR7CHTG 2QlRQDk3FwAOse1ABWEK/frkGiaYnrpyCA1BnJ0O3HqUDTiNiD5xjSrbfPd2zdo/tXxO xxMw== X-Gm-Message-State: AA+aEWZhJCSonF5/aNeFZTeZhDyrD4bdF8NCG9pQmKTWl9p2F9CG+Ij0 0I0UKUOQHpmHBWPVoTtVO1jatA== X-Received: by 2002:a1c:ad43:: with SMTP id w64mr10526130wme.32.1545040013020; Mon, 17 Dec 2018 01:46:53 -0800 (PST) Received: from localhost.localdomain (58.red-81-47-145.staticip.rima-tde.net. [81.47.145.58]) by smtp.gmail.com with ESMTPSA id h12sm28878113wma.48.2018.12.17.01.46.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 01:46:52 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 09/13] arm64: dts: qcom: qcs404: Add OPP table Date: Mon, 17 Dec 2018 10:46:26 +0100 Message-Id: <1545039990-19984-10-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Reviewed-by: Bjorn Andersson 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 Dec 17 09:46:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 153970 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2266265ljp; Mon, 17 Dec 2018 01:47:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/Upcvtu3tIQAERb1qFSvO7Mq3gBgH2zUtLTwWAuho3XCJV6QA4whzVhFVo6VYYrRJTbaWvd X-Received: by 2002:a62:528e:: with SMTP id g136mr12865337pfb.111.1545040042319; Mon, 17 Dec 2018 01:47:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040042; cv=none; d=google.com; s=arc-20160816; b=mH44WbiQN4dQhl4hWbkbeB5YdnKw3T2QZfWk8/5MvAuqF6ox6zTFPGTPSvdLm3P8H2 MD7J/GwYCjqoELqUwnU6cDkoz0TGHOR/ikic9UT1TC3WP4jq6yQhTHG0ypmWSCqHquzF auOr1JTSdeFA639yQjdP/OjwkuiyVP2KHn53KORirA8OMBndj01iwtz4H38NIo+TapfY J9rLYePI7NGPFOow4cYdmNY6hM6gcEALt+XXh8RBwAGKEh6dfYWveHnTaUcDEbOx/2M5 uwAxPOX6lWiIMaXz7JBv0gVRRzwlr+pNBXpY7O0+/bMqIquOPanj1Tz0RoMipf+S/HJp Fgtw== 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=frYLNG9WBBqiLZuXMzbyk9zPbudi5BcqFSN9a29J878=; b=kiB9nrKtYEMWVhcLPjsDUs39sZZFOwWPkBMhNI4M6hXc2j2XkROE+tGjWbhx2rw/iZ LTDcdPoe7aJPWXejLjqtdIYzG/rCB8cmNhdbp8OY3fH23RRB/5miEhFaELQdpsScrvwc NKYKu8DBayIfxqTF2U9MWqbZFcyiNI6xgT7UmD77k0CdJ96O13V02ifnTxQy7iDHabHK bEcUplnoCPyRHnUBkGMy1L/kqx7Dy0M5uhKy6oSOE44a+9Nw6wiEC4f0ckVcMA+Qb6im WG7/RMSzL475fRZTVipXpz/o25Cmkm2aCxUG5X4RSnJPTpL11tSbn+xcYvS4LPCEcmtW tyzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=et20Z1Nv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 y7si10951571pgc.236.2018.12.17.01.47.21; Mon, 17 Dec 2018 01:47:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=et20Z1Nv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732282AbeLQJrU (ORCPT + 31 others); Mon, 17 Dec 2018 04:47:20 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38586 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732208AbeLQJq4 (ORCPT ); Mon, 17 Dec 2018 04:46:56 -0500 Received: by mail-wr1-f65.google.com with SMTP id v13so11530919wrw.5 for ; Mon, 17 Dec 2018 01:46:55 -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=frYLNG9WBBqiLZuXMzbyk9zPbudi5BcqFSN9a29J878=; b=et20Z1Nvhy4cU7BaSDu0Rr0o8eprDB52wxTtNTCZZIeVJB+REqsCz5LohKL6+c4bHc BBu8BsOZf02tVrTWV/4iNqxH5Xrryxvc8gCF4HXIhoB0FggKGUUPonfUccV/BjaAqgJ8 V3bJfXiHcaCkhPVmE/5R33wu/PxiebX04HaEY= 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=frYLNG9WBBqiLZuXMzbyk9zPbudi5BcqFSN9a29J878=; b=fKQkhqM4ILBShFWpf/MTYW75CNCyaCCojRD6rWip9zR4bh3gncjadeuU9AvfoCMCiI bKxmkv7MRYOOReqicvthq0VO4AllRk3XtJPOwbrVoHlGntADJOJmdff1aX0E2zp2HdGg TlrJgkKqvvV20cJhSrXfCbNJU1wHZP3zm/inourQUa4PFyR2twN1qpWLNMUrqMfnkyYV ISGtX/sF/x8CKVU9p6n+NilWOblEIHGxgH82wGBFNsKiwTZxmjZM7i4wI34l0F999SjB DqhgCyKa7OPa5UtMWvZrroO71bEs5x0lLZ0KT9BfmKS3p++AL90fx/h3kj+P/++xXQuL z8Jg== X-Gm-Message-State: AA+aEWbqs+3fS0SJ0DxNJ2D8i/c8Y9rZojUAlfsgU2nTaVVBlC69Tf6o 0nm0taQNOYkLVPCyuQzlatbznQ== X-Received: by 2002:a5d:4512:: with SMTP id s18mr10609352wrq.182.1545040015164; Mon, 17 Dec 2018 01:46:55 -0800 (PST) Received: from localhost.localdomain (58.red-81-47-145.staticip.rima-tde.net. [81.47.145.58]) by smtp.gmail.com with ESMTPSA id h12sm28878113wma.48.2018.12.17.01.46.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 01:46:54 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 10/13] arm64: dts: qcom: qcs404: Add HFPLL node Date: Mon, 17 Dec 2018 10:46:27 +0100 Message-Id: <1545039990-19984-11-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 4594fea7..ec3f6c7 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -375,6 +375,15 @@ #mbox-cells = <1>; }; + apcs_hfpll: clock-controller@0b016000 { + 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 Dec 17 09:46:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 153968 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2266004ljp; Mon, 17 Dec 2018 01:47:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ww3CEmSZlNS/C6bbnRhAQE/ACv8AFqHgtlc33AXwAcsF/xTiNENrDEWfAu85rn2FAbe2m4 X-Received: by 2002:a62:19d5:: with SMTP id 204mr12205144pfz.33.1545040024468; Mon, 17 Dec 2018 01:47:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040024; cv=none; d=google.com; s=arc-20160816; b=baezssAsdPlxz12CRKNVpXBVSD6y9/ZOuhh5MJT8o2+zTOEvD9Nj4ipc09icbiOqJ3 VzTxAkBaOf3JU46B35mATwMq7cr/vZN7N3L+HVY2unqGg7ILxzaaTjkqXCQUa08wpLFo BYKUa3bfhN5VSYwCpbYPWyjT5vSgDPi2O8eQZS6L8U3PXPDb2rz9fB+mAn5iGRS/B6gi 8rAiGpArshsnnIZtqSjQQTbhndYDHs+USzK/lRY6MthcpDJApNMkrleNsYYWQUy7F0mU TkQKtz60tvy0u9MHA0nt50MUaJftp1dtzyt9e/O8Ayq/GTMmWOhY8CXqmB9gU/xTJ/se sTpg== 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=kTA3U9ScqlvZ998ocosntNRdd+QbUhit3GNzARqwjzg=; b=hcpMsxw3DRAPRkCJBu2WR2ZjDAvAyN/0egrzJ1gaQmpG6ZloBGmnJZmwxgdaYDgey4 Ry5GaP7YnstSD1HkkVEX00JCfJvFw3jNy/8fCJMQVhtzvOFoOtvcpZFXLXjlU/HLOnXq dOHNOYGR7Crx1UJxOwugujpObkjtcift0mjDoDqY0GWdoWkiib2EkImdQtYS6i7nqr/9 d3B57j2KWJyQkGI8XTpdIe9oTPMZiQ4pI5Y/WNcfj9geyIgzPENpH/TbjCGxJwCWAPI/ uZ7HYkCoPUjIhZPiypYfB0CokgddgYBGWVfXyW1NRkbv0fpOpSe2jCK4RMwEd/fCfC7A GJtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=djAqVDeH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w12si10115947ply.404.2018.12.17.01.47.03; Mon, 17 Dec 2018 01:47:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=djAqVDeH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732246AbeLQJrB (ORCPT + 31 others); Mon, 17 Dec 2018 04:47:01 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50272 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732221AbeLQJq6 (ORCPT ); Mon, 17 Dec 2018 04:46:58 -0500 Received: by mail-wm1-f66.google.com with SMTP id n190so11665426wmd.0 for ; Mon, 17 Dec 2018 01:46:57 -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=kTA3U9ScqlvZ998ocosntNRdd+QbUhit3GNzARqwjzg=; b=djAqVDeH7UHgLmI/fEsam8Ncl44t1Emw5MTX1v5R5vyJdCn07rwL9uuPBLz+HB6Wqg qxG6HOhDt7GadmSwpB2vkA9Js6rjuMHApzlPoEUr6bvbLhYSM87tUx6EX4uqJZEbwr6D RW6V68mmJyEp0GDqut9HT34xRxetOCvR/G6eg= 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=kTA3U9ScqlvZ998ocosntNRdd+QbUhit3GNzARqwjzg=; b=k/CemJbaGdKeBSVXNBUuvjsXSxL5VrZZJWqYlwrnxQ+bnGXqscRKEr6AKkxhwNN2ou hC+jzSX6Wx9HcTySE+RJP0/McXPNR+YfbvoDioHEv4n8fuf0VBhVsRDMpI1//NnpsK3v resEJMPgBLq8qEuJQu1YNxE1X+Cccxej6aa2zVTTaiyVr1Wp8UpP0V8hH9jmOLFtHlKZ kanMqzqhnJJL7/+FhcJxRBQkdzsxAFNz/8yHJSsba9K3Tk7N8NnUvVXUxrzcNJA87qV2 wt2vnqRTAej30VL7xH0AyeTgBOh8FB7E8QrgODsyz2ZGTVSDBBK89nI2qswHg18x1kFu asyg== X-Gm-Message-State: AA+aEWZKJumJC63HXoACKRPTyQrw6YXD7LrseVPwlEiDWEFg+wVEACKs KxuU7XMTKzJYEncxRyXVvfzqaw== X-Received: by 2002:a1c:a401:: with SMTP id n1mr11715639wme.114.1545040017092; Mon, 17 Dec 2018 01:46:57 -0800 (PST) Received: from localhost.localdomain (58.red-81-47-145.staticip.rima-tde.net. [81.47.145.58]) by smtp.gmail.com with ESMTPSA id h12sm28878113wma.48.2018.12.17.01.46.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 01:46:56 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 11/13] arm64: dts: qcom: qcs404: Add the clocks for APCS mux/divider Date: Mon, 17 Dec 2018 10:46:28 +0100 Message-Id: <1545039990-19984-12-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Reviewed-by: Bjorn Andersson diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index ec3f6c7..2d9e70e 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@0b016000 { From patchwork Mon Dec 17 09:46:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 153969 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2266040ljp; Mon, 17 Dec 2018 01:47:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/XWfD9vq3TsYw3zPepHV5A+JAOKBrjY14uaL/U/ko8FEn1YhYYZYym/r7yk094ZAWqpAfvt X-Received: by 2002:a17:902:930b:: with SMTP id bc11mr12397396plb.17.1545040028336; Mon, 17 Dec 2018 01:47:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545040028; cv=none; d=google.com; s=arc-20160816; b=auUtqQ0CYxwyRxbqRVM0DPNPw8fToSd8HQFIFYscWHdLDV4QRk/qXlo8UNCNXZ5u51 wTFSUBztuUvRfiWBnjGtGvI7VUxmxA7M5VAiP0t4lEuZv2A3tIfYBvquUhvSIBtR1FKh fM5vByKKhoAqt3GxQdDqwCwGTEKsLaRY9RVpd8jVlPIBBX60wgnhQS3E0F7rrk4QR1FO iNrUCrLMqu7cd7S1/C9UyE+MSlNtqATB71dyDDIa+r+0+GdBYLUZTyo2NRL/udvkCTt3 i4OfibHRuidJMlLFJ9jT3MXDz0R9S0SkT4mhugRW5qoTeg/+EGxxtVxnGuyTDUqUNJ+a /1EA== 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=7zUfQ5k1UaGNLQZWqXUVxUrsnDmZIr72/O/z7L/p8XE=; b=jjEosBguvFeCHvLW8lor9r3oV7XYLduiDuwTbCuXeX8vM5wpgbQUzmnigXfoaGwLZy 3I8u52KSqendp6ah8YxKbeEbcTKZP4bCauAX1NvmvYsSl1rHY9dppDgUDKor0o1QDcNW GCoypIEL1rvnXP1mX+0AiIf4d4XhBkpcDbCaPN+4art+9xR/UW4iTctY2QGdg7Wom90a YnEX/wYLvlXKE0OgF/3Zv78KjhY5ul4aY76XCkKqnHbDqKaCYBaxv8mMCiiV+zH8ldWg hf8P7JYldmS4m2z6jyGwmtMPSiqnCrG+LJ63ianLO1WEDpFL2gzQDg7BLs7GZf8W+eho OzoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QetYrpog; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 h75si10982326pfj.257.2018.12.17.01.47.08; Mon, 17 Dec 2018 01:47:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=QetYrpog; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732271AbeLQJrF (ORCPT + 31 others); Mon, 17 Dec 2018 04:47:05 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53902 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732238AbeLQJrC (ORCPT ); Mon, 17 Dec 2018 04:47:02 -0500 Received: by mail-wm1-f65.google.com with SMTP id y1so11589940wmi.3 for ; Mon, 17 Dec 2018 01:47:01 -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=7zUfQ5k1UaGNLQZWqXUVxUrsnDmZIr72/O/z7L/p8XE=; b=QetYrpogRHsbPuvIb1lnhOHGRCb5X9owoV/AIv0hvqBsfvxhCRXjPEGrdGgYn5v1Mc HDpWdDIMxrVXmwqNDPiKsFQTZ2a3O7LCK+kRPiAVQeN0rDu653kusvLwkrVNLaTx+X0T qCry9q5eEfUmIK4pOEKIOKe3nD8pUN+sIxWUQ= 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=7zUfQ5k1UaGNLQZWqXUVxUrsnDmZIr72/O/z7L/p8XE=; b=YTBgxU78kROr1OtQ/X9lLAMZd2LZWovVuXv6dzaLc9syG4Nlh6VXQZFSWvPzURj37X QgFMsR6aJjpkCyH1ty12gE3BVhK+RHwDg4FPKHMPgA+KGslOSFgcWq+87RfTVF+8Zbby B6MJ/37YB6y7gRU9sn+E8ntscrVN2Thvu04TwQwya6jwftkq+JecJ0yqWU8fp3qOpWgx jNAC+BPv+I7/2g++9RfkTtaVO1sy12FbTA0iSbxlGZxMI0/06CdwrOJWYPvSFXxfCMAu B4ubRNQhqHgZIgcWfURvo2Tr/YOEMroUjnfEEZlXcxFXQWF0Y3u5k0Gum3N21/LrejOv NGPw== X-Gm-Message-State: AA+aEWZyD2rYU+FHSuDRHktk2xQ79HFPVH7s2RpciOdWWzRARypEszil MjWFI1+VVVck7xCFIxWbWG3fqg== X-Received: by 2002:a1c:2884:: with SMTP id o126mr11386163wmo.17.1545040020936; Mon, 17 Dec 2018 01:47:00 -0800 (PST) Received: from localhost.localdomain (58.red-81-47-145.staticip.rima-tde.net. [81.47.145.58]) by smtp.gmail.com with ESMTPSA id h12sm28878113wma.48.2018.12.17.01.46.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Dec 2018 01:47:00 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, andy.gross@linaro.org, david.brown@linaro.org, sboyd@kernel.org, will.deacon@arm.com, mturquette@baylibre.com, jassisinghbrar@gmail.com Cc: bjorn.andersson@linaro.org, vkoul@kernel.org, niklas.cassel@linaro.org, sibis@codeaurora.org, georgi.djakov@linaro.org, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 13/13] arm64: defconfig: Enable HFPLL Date: Mon, 17 Dec 2018 10:46:30 +0100 Message-Id: <1545039990-19984-14-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1545039990-19984-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Reviewed-by: Bjorn Andersson diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 5c2b1f6..da390aa 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -615,6 +615,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