From patchwork Mon Aug 26 16:48:02 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: 11115109 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3C6F14F7 for ; Mon, 26 Aug 2019 16:48:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B20D121883 for ; Mon, 26 Aug 2019 16:48:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NsZnHTnb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728922AbfHZQsi (ORCPT ); Mon, 26 Aug 2019 12:48:38 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36194 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731578AbfHZQsM (ORCPT ); Mon, 26 Aug 2019 12:48:12 -0400 Received: by mail-wr1-f66.google.com with SMTP id r3so16004268wrt.3 for ; Mon, 26 Aug 2019 09:48:11 -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:mime-version :content-transfer-encoding; bh=YOocsbJSeEFZluDhuzPE1zAAorjfBXrmhgRxid6+uG4=; b=NsZnHTnbHWll2bdVW2ovEHICEh3GJqof/NEoMfJ4Y8yrH0xeFp417Yy+3C+h1fJv1p AjePh5kfIe6BX5pLNWHmxs6MSQzBqgP7+JmZiY7k7pKJauPYW+NYLjUnQ64q6jljK/d4 ErMrPOf5XameBxDFh50wEbNTfj8M4NJ/Ujq/x5LYBFq79CY6PQp9SHDudQaIRyQvFZvH ZcPK/pW7zutvsABFwvilgc1rRl9mkzJvaD0EBfooe1GdX0K47j+4wlQN3fWe5i0LcIgw Fgb85bN60puObL2yXFhMaOiox2CBlB+yEu20ZaBaDUlhk2wKX4CPOQi8fhJx8ngVqJYW QNIQ== 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:mime-version :content-transfer-encoding; bh=YOocsbJSeEFZluDhuzPE1zAAorjfBXrmhgRxid6+uG4=; b=BvJa15qPd8tzt0+OF0TGmdpxcAr4G9Luopw0id2Zr+Y451OhVg7PUxf1m1GwcyMCW9 Ew/5qNZkONg46m2P/mUbyoBNb0vsKS7QliqWHm8jU89qy4mbgZS7eylOcBlSBmXTAz/l bjzrXAcQyhKFkevWENrgezCuiEcpzbOoW1EgB50mJgX7tDNSaovkb9groSwvJD8bP8ZT DBc1pbqT86W3tcMM5/Tr+lByXhaGOEEh/Ry5W8yZMJQchWcl9ZWl9l9U1LMlLLnK9bHs Ip/n5a/kpfhW5c213DNfgGdpU//rGdH6zu7Fa2w8NxlxsQZjkmz8DfJXS4ivcEeJFAfU yzpQ== X-Gm-Message-State: APjAAAVOWEwVKqyYuJxsGYhITKHxGW+9fcALaVYK4CeMPoXw/HkYfhIi nqo9uf2bhE5OOal+Gpdp6hIm7A== X-Google-Smtp-Source: APXvYqzPcgyMXXhYl1Q3zNI2CZd1u12C3LHziyafTloiYXqCJAA7EACMMiSblht14P9NtKAoKIy1ow== X-Received: by 2002:adf:e887:: with SMTP id d7mr23481374wrm.282.1566838090464; Mon, 26 Aug 2019 09:48:10 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:10 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] dt-bindings: mailbox: qcom: Add clock-name optional property Date: Mon, 26 Aug 2019 18:48:02 +0200 Message-Id: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 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 the APCS clock is registered (platform dependent), it retrieves its parent names from hardcoded values in the driver. The following commit allows the DT node to provide such clock names to the platform data based clock driver therefore avoiding having to explicitly embed those names in the clock driver source code. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Rob Herring Reviewed-by: Bjorn Andersson --- .../mailbox/qcom,apcs-kpss-global.txt | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt index 1232fc9fc709..b69310322b09 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt @@ -18,10 +18,11 @@ platforms. Usage: required Value type: Definition: must specify the base address and size of the global block + - clocks: - Usage: required if #clocks-cells property is present - Value type: - Definition: phandle to the input PLL, which feeds the APCS mux/divider + Usage: required if #clock-names property is present + Value type: + Definition: phandles to the two parent clocks of the clock driver. - #mbox-cells: Usage: required @@ -33,6 +34,12 @@ platforms. Value type: Definition: as described in clock.txt, must be 0 +- clock-names: + Usage: required if the platform data based clock driver needs to + retrieve the parent clock names from device tree. + This will requires two mandatory clocks to be defined. + Value type: + Definition: must be "aux" and "pll" = EXAMPLE The following example describes the APCS HMSS found in MSM8996 and part of the @@ -65,3 +72,14 @@ Below is another example of the APCS binding on MSM8916 platforms: clocks = <&a53pll>; #clock-cells = <0>; }; + +Below is another example of the APCS binding on QCS404 platforms: + + apcs_glb: mailbox@b011000 { + 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>; + }; From patchwork Mon Aug 26 16:48:03 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: 11115099 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C797C14F7 for ; Mon, 26 Aug 2019 16:48:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A4E1F21848 for ; Mon, 26 Aug 2019 16:48:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ucUaEDCj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733202AbfHZQsO (ORCPT ); Mon, 26 Aug 2019 12:48:14 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38222 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732425AbfHZQsN (ORCPT ); Mon, 26 Aug 2019 12:48:13 -0400 Received: by mail-wr1-f66.google.com with SMTP id g17so16025986wrr.5 for ; Mon, 26 Aug 2019 09:48:12 -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=ucUaEDCjqc88r6EwNRvuZ4pqV2M9i1Y+DSqBWhESZQlZTfVTxLuOnzeLY6dzXb06P3 oX/i4yQDEBxPozva8cMA4cieQZgoDSX5Kk9BFvoYPNa1NowROPGlGLjXGb0CBGmu5onk J57zwVshE1hKDzf2oFwzoYShD0QBm1m2NJF6ac/vpDCR5Rhw0sZlSNCM/JP8IByF+XaO XYqzUl070rO+I9aXxk5vSHL2+8yvVfOgTBQHIxd+wU4ens0azVJTZbSy6Dp1I+vtKk+O HjgtVLaToqubdGDekVdbA/XF9EOHDeXbjfQXP3pdNqGThFzha16Gv0NZNN57paW4IMwj iKmA== 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=LgL1vMSNypJ5Mtf3N1U2y0G0v2uJ4o48U22w1c8FVqhs7+FDLUw51gakCTEDh/gkUZ bWWcGY1zY1Dpe/Vzb4oINJvCyVVLS0OVICklkN/kfyjs+Pp7NhVIAFzu9dxDXbQE+YLe vwx+NTpUSVTE5QfMYm1nNCqp8LOzPIoOSDY+Z3s0JPM4V0J2PlndUo+VqVY5d97eKB8v EFA/f854LpcxSHa+XRaMDzS4wPkZTTzMblW1NHItOO0dc5VFX25zl6MZLySbJsjZomaU pkrOx1/wMPi8ocGFqpIDP4YA1/6wZ5I8EE90MBXSvh2DKZfYGRxtkx9UaOU/RxOglE+h eGpQ== X-Gm-Message-State: APjAAAUoXua1fHKu4/ICMXDVPrXf7MhCzz7OrZM5QKdPRfeHKFrSRaMR nSWmRJPqUUjmufKWKoVtrg8dXw== X-Google-Smtp-Source: APXvYqxZ1dkFGwwK1lqL8ofG9U9AtmmwCLX2B/k0MkIoCZJ6svkNEhbHuO1jti7Off9aao83Ezt6dw== X-Received: by 2002:a5d:5183:: with SMTP id k3mr24270444wrv.270.1566838091411; Mon, 26 Aug 2019 09:48:11 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:10 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] arm64: dts: qcom: msm8916: Add the clocks for the APCS mux/divider Date: Mon, 26 Aug 2019 18:48:03 +0200 Message-Id: <20190826164807.7028-2-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164807.7028-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(-) 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 Mon Aug 26 16:48:04 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: 11115107 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 40C7A14F7 for ; Mon, 26 Aug 2019 16:48:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1EF1621848 for ; Mon, 26 Aug 2019 16:48:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WiPY2VmO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733194AbfHZQse (ORCPT ); Mon, 26 Aug 2019 12:48:34 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44834 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728922AbfHZQsN (ORCPT ); Mon, 26 Aug 2019 12:48:13 -0400 Received: by mail-wr1-f68.google.com with SMTP id p17so15983936wrf.11 for ; Mon, 26 Aug 2019 09:48:13 -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=6aBjlsqiqqTgtzhykCGPDbSLi9lpwGSk1XF7w3yerKo=; b=WiPY2VmOXE2RfOnc7RuUSWUISdyh0kDQACH6it3uiL+kBd9CDRojW1+O52q/0G/GcP D7svA43QS+VHwNxAcKEEsbwZTbgyPcbqmAd0TK5Zu8K2tQf+svofB6BtYgbtRArhefVy ykf1eE6i++k/AqZIYazKoYNOwaEwTLci5TlsC2cBZl05TASDWrv71e/Wb7o3/oQ55mPR Gc3j5GF1+FuGGHmJV4CddZpZV7zLvH6ACHCgZkwN9I64kPjqvbXnZ+sANkkq4JwBT0gL SS5X1mP2pHHz6BXEf2cPi+PSeznAFwkEFR32mcpmXGDZAgG1y3cj71u+SUu3jZRXFGLc UbKA== 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=6aBjlsqiqqTgtzhykCGPDbSLi9lpwGSk1XF7w3yerKo=; b=gOAjFgMG1rPwTQrE1cBoHBmaF3JIj4Fb3JUdEJFe9KtTAR4CDcqwvYvT6IqP89QQpG 3lLL1FKqZOsMkqIxIG3xuE+HYKU9kKjTIUg0YcgNTKdBGumfumX+TyfWnmwjDPR5qJKw M7cOUE3iBBTjgvxPIBbJxDosJjsmeTiOE/pf/7ra3gty3EKI4GdAbjYtqM/DSg9uq4zj eZMTEtcCD8dgCdTFb5sefsyPbRavWprAp5NCs5dhuUPjSp9QOZwEfhmAMV/iB50Vo2c8 cZ/HdXf52+RxB/KMpldg1tjiWLrmowqFGBhww9aB6CtDdC4HKNV4jP+WXT6zv4tARMjp oCPA== X-Gm-Message-State: APjAAAW1MJ6kwLMcRzxxJdluvk2q/8Ph5eOIPS4DiPChd+AEr0P+YS+t +OcQEMbmhpFKhH7yRGKPUWGMBw== X-Google-Smtp-Source: APXvYqw3p4P3r0H+9quDr52MsyRO8FZmUmK1/r9o83Uq5Q16H5ZoPaWVLV8HDV6+oKSknAjuK5OvOw== X-Received: by 2002:adf:cd11:: with SMTP id w17mr20629210wrm.297.1566838092355; Mon, 26 Aug 2019 09:48:12 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:11 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] arm64: dts: qcom: qcs404: Add HFPLL node Date: Mon, 26 Aug 2019 18:48:04 +0200 Message-Id: <20190826164807.7028-3-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164807.7028-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(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index a97eeb4569c0..75ea356a3fb0 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -869,6 +869,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 Aug 26 16:48:05 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: 11115103 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 747FC14E5 for ; Mon, 26 Aug 2019 16:48:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5217121848 for ; Mon, 26 Aug 2019 16:48:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sZMXmbW/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733214AbfHZQsP (ORCPT ); Mon, 26 Aug 2019 12:48:15 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43130 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733191AbfHZQsP (ORCPT ); Mon, 26 Aug 2019 12:48:15 -0400 Received: by mail-wr1-f66.google.com with SMTP id y8so15974544wrn.10 for ; Mon, 26 Aug 2019 09:48:13 -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=Hupd+NjOPBz3nsSvh0rk5zeJMQwvXm41o+AWQWydlzs=; b=sZMXmbW/POftkL+zpxhLc3nCQusl/cB7uTur1BFVbUfZyvQsqUqPfym57arfEXR2Cn DG0liyQvnOMuCA0CmTTj3hJl0rKOlizTGr6OgTmD89IPRb7rhLUrJT04ug8k1A2TseiM pHGC4jtNOb6j8tq5bT6g4/ckm2RTcvcHP4OhYEK6OY69iWOU061WMyEAit1+cCXVe6KW xixlCql9ZclJjWOS/v1TjzqRFwvvxZ5szDII1BA8mcMG+M4HvyDYWGnJbJXTiTW/QUiy 4+ouMYHEPFBUD5ZDH8AaKZofmFjeMFQJA32aJPGde2N0z6JSW9OTHOsRNhBNtwnMab6e +6Yw== 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=Hupd+NjOPBz3nsSvh0rk5zeJMQwvXm41o+AWQWydlzs=; b=bFkaBMN1UjhhcE7vlzuhorEjK+FpzEVhq9+M/hsqn+3y0J9dP/+4QIsT9KSpfNv+1h EV81JSCMPm+n2d1RoRYceR3skopI7G2JCwjol73Gp5To08PY4BUl5ezbkrMBX6hxQOch ey4Jbyl9+rNFnYKfW8VTBQ/qYOF6qep/VTdQmX0S4CTImcH1M6RM/4Scvl5+AQ6ISJDq oC+k1OfYAx3etGdE5nmtkjEDQNzjLOBlXlc4jfxyh2Y0y1ZDRAYKLB3fOA+Nw+rF0oj8 w53vdVAoU7vZVoL5+ruY7uYaqzL/6JoSJ7X7xb5qRC8eLKa6Ish8g2OizZzM2/y3J6km d5yA== X-Gm-Message-State: APjAAAUNmXvThyy2f2y3k7cQTowPkyhvC6vrWaWuhEZ+Vd2LiDk/SAGA jyQ35hQEi8x8RD9bMMqO3WhL+g== X-Google-Smtp-Source: APXvYqw+jUQO21Sx7hEAv1JbZEW5Wja41iOujx/BJs9D3ZC3XBTDMBZ17MJWoxtMAWPeoQzBcFsccg== X-Received: by 2002:a05:6000:104c:: with SMTP id c12mr22240971wrx.328.1566838093314; Mon, 26 Aug 2019 09:48:13 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:12 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] arm64: dts: qcom: qcs404: Add the clocks for APCS mux/divider Date: Mon, 26 Aug 2019 18:48:05 +0200 Message-Id: <20190826164807.7028-4-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164807.7028-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. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 75ea356a3fb0..34360b2d3e0d 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -867,6 +867,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 { From patchwork Mon Aug 26 16:48:06 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: 11115105 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9533F14E5 for ; Mon, 26 Aug 2019 16:48:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 740BD21883 for ; Mon, 26 Aug 2019 16:48:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TTHn8SMV" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733265AbfHZQs3 (ORCPT ); Mon, 26 Aug 2019 12:48:29 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38092 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733208AbfHZQsP (ORCPT ); Mon, 26 Aug 2019 12:48:15 -0400 Received: by mail-wm1-f68.google.com with SMTP id m125so184333wmm.3 for ; Mon, 26 Aug 2019 09:48:14 -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=CwwDn1F3isDHLADadg552cZsZttuc4BOXuvwzE9t/LA=; b=TTHn8SMVljztzBzglxHx98EIyz6v1F8+VDebWt/WipPeUwGjbJshFubBgEsd+OKiUl epgN2CoPgMuJJvk6zp1VMRXJgjs5x17jpOBS3cxricda51pnALca4j3Ai0OrlB3DCLJB thNGGnRCFu91t/jkHmHGfs2hDQusecj5fI4zd7Ce6XQJ9ZDOFJCshGDcfdJuLEjN9c2z 3O9UdukcFw8G+mnUsunt4yPiOXV2nPNDHiFqiGEXMQr2E13o/cBqMuMmchfC5ZDVm7bX JRLLhJyz1R1nn/yl4CVHelQSi/cv+6mUFTSdfUD/JkjGkExo8dNDRGadRdcIPBjq2d0N R4bQ== 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=CwwDn1F3isDHLADadg552cZsZttuc4BOXuvwzE9t/LA=; b=g+AT8jHm3C4j6yYy2mrWXDH48P3qT6lyWlm158nmRpWhGpzVh39kAtZ6J6k3AosZ0H BP7lR5mnx3p1PImHC4hrEaFCODUsFS/86Kj8JoUi98QlA/YawdmmbYYI46GbCuvPf+iU rwxLbgTfwWSvcp0ZouDLhP7rPwzkdYPmZVfEtv9CfY6UP+UC3OoyZ/HIxO6dYMRkLlNW K8/Sf5Jbxtxe6OC9i8oQrftvPqie3Rzg5XWJHI9tDAXBxN/r53tBNC0xSotoVxFgoGxF RbHUdGhSYHTQSiQgJ4ZvluvlklpY/8cTcsp26PXXLn+dGyDEQ4FvlWmxYItiaxePejnp DeNw== X-Gm-Message-State: APjAAAXfY8D+L/DUmZpyVi2P0VgGbAR5+n50sVhUqc8sxyX8OldB6pAI QpOXITXbDpsKAujhJBwIxXxpzw== X-Google-Smtp-Source: APXvYqxMmtG0EPA5/X3QeG/mAzh8hfdzyuz0llb1Wpg7+/GlL66wbHzhphOb5HXu528UYCy4D2QElw== X-Received: by 2002:a7b:c775:: with SMTP id x21mr23809437wmk.90.1566838094268; Mon, 26 Aug 2019 09:48:14 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:13 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: qcom: qcs404: Add DVFS support Date: Mon, 26 Aug 2019 18:48:06 +0200 Message-Id: <20190826164807.7028-5-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164807.7028-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 superseded 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(+) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 34360b2d3e0d..e425e54e1af9 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 Mon Aug 26 16:48:07 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: 11115101 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A6D9B14F7 for ; Mon, 26 Aug 2019 16:48:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 83FAF22CED for ; Mon, 26 Aug 2019 16:48:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="X/3Va+4b" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733236AbfHZQsS (ORCPT ); Mon, 26 Aug 2019 12:48:18 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33573 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733220AbfHZQsR (ORCPT ); Mon, 26 Aug 2019 12:48:17 -0400 Received: by mail-wr1-f66.google.com with SMTP id u16so16020050wrr.0 for ; Mon, 26 Aug 2019 09:48:15 -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=SRhxgEvWQVs1ea73JEbbvWRCETzD6iEjJpSYclHjhyc=; b=X/3Va+4bMjUIzurD6wGQMAOoEEujrfWU7PM6u7RIEiGvFhdjn0OVNT0AbPtGenMdH+ /i6p/TEo31Krgq+peIUPumD7Rf+13msz02Mt8RIiW/BnWsaEVqdq2vWyCk3RlkEIzE1K OH0noWzpBpa9N/ULhXR8pvPgjaRPQJ+sFX4C5aQDxxASww73c6T1aYF1ffJsA09vmEDq 8HUVNU3BeqIDAw+IjY/OaWIJd+a+ZNKWEiQ4+/NzQSE5p/Uq/QRsXhEA5P7p9Joq8BKT Boya1nfoTJRq4isvaIpibtFroNjS41KPMsOXA5vot1Al3wAVLXF+UvNrEVoJC8tIwWlK QuUQ== 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=SRhxgEvWQVs1ea73JEbbvWRCETzD6iEjJpSYclHjhyc=; b=n3YqOFUARZJojt4Z66eDrgPhkmpAIsQyL/LJLiFCH5SbLebhlqkS3uiurJnOGumyUo /TwXLwU5RUhBvldZcfwg4dkE19YofSAUTA+mRDhaO5o5vmrcjf1RTXlbSbx1Fmx5woIE f7L4+gsMpvOBUgxd+iW/EWdZHEcbDhY52oJDrG3p/cAvOsaR0VHDko50JiZMaZ2uQAuS 9gxPyH2DVRfa4G7942Wb7F663GSCc/cDND2tN5Ytz8MY5n3zaSOxJYcUv2yJ1SwU3AAH y3pHef1c9g0me9lxOtYV2yBrwFh/szdP8POpyqvnC2gZTqaTgR/V10oKmvd+iMnkw0IS 2T8g== X-Gm-Message-State: APjAAAVG428NPquvztw4jTXnp7XF53sTDbud33HvmVRYS0KAuyanqlMb 4Izg7x2Wj498qeUW+30F1x+pKQ== X-Google-Smtp-Source: APXvYqzZ3xC4kfENRK961Lw1r8AEKtqPndX79PH8Zl7tkFhGXbf13HhvFBfq/02dXMrt+BqkZbslyg== X-Received: by 2002:adf:9e09:: with SMTP id u9mr23619223wre.169.1566838095223; Mon, 26 Aug 2019 09:48:15 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:14 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] arm64: defconfig: Enable HFPLL Date: Mon, 26 Aug 2019 18:48:07 +0200 Message-Id: <20190826164807.7028-6-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> References: <20190826164807.7028-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(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 74f82901aa2d..af13602c3987 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -703,6 +703,7 @@ CONFIG_MSM_GCC_8998=y CONFIG_QCS_GCC_404=y CONFIG_SDM_GCC_845=y CONFIG_SM_GCC_8150=y +CONFIG_QCOM_HFPLL=y CONFIG_HWSPINLOCK=y CONFIG_HWSPINLOCK_QCOM=y CONFIG_ARM_MHU=y