From patchwork Mon Aug 31 06:10:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 11745545 X-Patchwork-Delegate: viresh.linux@gmail.com 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 A68FE1575 for ; Mon, 31 Aug 2020 06:17:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8637D20782 for ; Mon, 31 Aug 2020 06:17:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=me.com header.i=@me.com header.b="A9NHYq4g" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725848AbgHaGRy (ORCPT ); Mon, 31 Aug 2020 02:17:54 -0400 Received: from st43p00im-zteg10073501.me.com ([17.58.63.180]:59669 "EHLO st43p00im-zteg10073501.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725949AbgHaGRx (ORCPT ); Mon, 31 Aug 2020 02:17:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1598854276; bh=Qfuzybr979VMJFYuutCB+9GTM8ocBV/zhEcZJGiJypY=; h=From:To:Subject:Date:Message-Id; b=A9NHYq4gRgTpiFYf1sDY6b4PyXd/sHtJp0p2MdXnqAANZMGJYrJhV9d10i838QBPe TUtZltqPACc8HKviGV3CdZAO3uVJn39AwkOEAARkFpG6onblBf7fVVCDk5iVVMJspX aomelzYy2iHFCpyX3GLqfKN7POxeFodiC8W39pZ56pQE8FbK+qSysxcKDGelmvvxMs Rb+Y/ECut4Ad9+0chm8vEdInYO+Zs3WkN1BECzj4HyLogW972RZH7jJGg9FxryGKHG w0rZ7/Y68qej40vb9/Sqg1MK662SxTAjEk7xsL9j/+XxpIl6/snv1CY8TE2kDvSW2F PBCJr9bDCU9gA== Received: from localhost (unknown [80.214.144.204]) by st43p00im-zteg10073501.me.com (Postfix) with ESMTPSA id 5BD82AE06E4; Mon, 31 Aug 2020 06:11:16 +0000 (UTC) From: Alain Volmat To: Patrice Chotard , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: avolmat@me.com Subject: [PATCH 1/3] cpufreq: sti-cpufreq: add stih418 support Date: Mon, 31 Aug 2020 08:10:11 +0200 Message-Id: <20200831061013.4327-2-avolmat@me.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831061013.4327-1-avolmat@me.com> References: <20200831061013.4327-1-avolmat@me.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-31_01:2020-08-28,2020-08-31 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2008310043 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The STiH418 can be controlled the same way as STiH407 & STiH410 regarding cpufreq. Signed-off-by: Alain Volmat --- drivers/cpufreq/sti-cpufreq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c index a5ad96d29adc..4ac6fb23792a 100644 --- a/drivers/cpufreq/sti-cpufreq.c +++ b/drivers/cpufreq/sti-cpufreq.c @@ -141,7 +141,8 @@ static const struct reg_field sti_stih407_dvfs_regfields[DVFS_MAX_REGFIELDS] = { static const struct reg_field *sti_cpufreq_match(void) { if (of_machine_is_compatible("st,stih407") || - of_machine_is_compatible("st,stih410")) + of_machine_is_compatible("st,stih410") || + of_machine_is_compatible("st,stih418")) return sti_stih407_dvfs_regfields; return NULL; @@ -258,7 +259,8 @@ static int sti_cpufreq_init(void) int ret; if ((!of_machine_is_compatible("st,stih407")) && - (!of_machine_is_compatible("st,stih410"))) + (!of_machine_is_compatible("st,stih410")) && + (!of_machine_is_compatible("st,stih418"))) return -ENODEV; ddata.cpu = get_cpu_device(0); From patchwork Mon Aug 31 06:10:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 11745541 X-Patchwork-Delegate: viresh.linux@gmail.com 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 DF7D91575 for ; Mon, 31 Aug 2020 06:16:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C7D9020738 for ; Mon, 31 Aug 2020 06:16:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=me.com header.i=@me.com header.b="Gb83WBSm" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725937AbgHaGQc (ORCPT ); Mon, 31 Aug 2020 02:16:32 -0400 Received: from st43p00im-ztbu10063701.me.com ([17.58.63.178]:33091 "EHLO st43p00im-ztbu10063701.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgHaGQc (ORCPT ); Mon, 31 Aug 2020 02:16:32 -0400 X-Greylist: delayed 316 seconds by postgrey-1.27 at vger.kernel.org; Mon, 31 Aug 2020 02:16:32 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1598854279; bh=ot9oPwvCbcx3VziBeqQtXktHy0PvnAf0hNNzlroGiFs=; h=From:To:Subject:Date:Message-Id; b=Gb83WBSmJW+7LpcT2/C0tJHFwZMECiCEHAEeN+Os8XXe1Dq9Jk9S4cIkDE3LmfoPq CfoU9Gd2uwaPO4+4p7byMhDokHVLBZN8ZskPdtKdi+bOJuSAWOvO2v4cceUkWiUDf7 CtFmG6RJyWyNYdpnN83MBxJ9Os4jPtUyqxwReY+IneFKyRPfuUskn/s9HaL4XzmRrx Pcr4glPk194/WnOk/45U4t9S7AB3kVFDOJZGPyuDwXFzrrL0DfCA+ic7n6FBJGJQMi Y81FnebSY/nA2UxiCUqnIOgBwXwY4LiDB+RLs3jtAYU7Ss70PfO/xwk/25wnXKJu/E 9g5BO7ZhAAv9w== Received: from localhost (unknown [80.214.144.204]) by st43p00im-ztbu10063701.me.com (Postfix) with ESMTPSA id BF8289A04C8; Mon, 31 Aug 2020 06:11:18 +0000 (UTC) From: Alain Volmat To: Patrice Chotard , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: avolmat@me.com Subject: [PATCH 2/3] cpufreq: dt-platdev: Blacklist st,stih418 SoC Date: Mon, 31 Aug 2020 08:10:12 +0200 Message-Id: <20200831061013.4327-3-avolmat@me.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831061013.4327-1-avolmat@me.com> References: <20200831061013.4327-1-avolmat@me.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-31_01:2020-08-28,2020-08-31 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2008310043 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add st,stih418 SoC in the blacklist since the cpufreq driver for this platform is already registering the driver. Signed-off-by: Alain Volmat --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 7d01df7bfa6c..3776d960f405 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -137,6 +137,7 @@ static const struct of_device_id blacklist[] __initconst = { { .compatible = "st,stih407", }, { .compatible = "st,stih410", }, + { .compatible = "st,stih418", }, { .compatible = "sigma,tango4", }, From patchwork Mon Aug 31 06:10:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 11745547 X-Patchwork-Delegate: viresh.linux@gmail.com 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 004611575 for ; Mon, 31 Aug 2020 06:20:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D2BEB20782 for ; Mon, 31 Aug 2020 06:20:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=me.com header.i=@me.com header.b="pzyZZHcs" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725949AbgHaGUW (ORCPT ); Mon, 31 Aug 2020 02:20:22 -0400 Received: from st43p00im-ztbu10063601.me.com ([17.58.63.174]:39087 "EHLO st43p00im-ztbu10063601.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbgHaGUV (ORCPT ); Mon, 31 Aug 2020 02:20:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1598854282; bh=cmlnmNfbD/rroShDMwgyVMctfmxpMukvVmgwJORb28g=; h=From:To:Subject:Date:Message-Id; b=pzyZZHcsfZK/JDbwckEYbpkNH6gIxTU94/tBs4d154k1S9qvXpNEbGl1/YEi84EX2 RK6/b6jMSWw3RbgKeuQnWsOuWHdXfZLqnSdHnhfCWngRb0FuC+7UHahJlKyV/6FoCG eDZR/ehe+o8trndAMMinnWzndj2Da3MIdvx7m8iM+mT6kW9d3r53LY3OYzPMDKVhza bsbeQ9mh+yrORjJsXIwFUHMbVi3YLF2Gf0VAzmLj80E8YFJX0/yHlojkQR1FLEyjus cziB0zYkYP34YqpxDFt7XA9yNcc6R/+C0Ai/SMo+eh5nn8M28ME+O9uOcaUBGUx9Lr e8O1/p0EK58yw== Received: from localhost (unknown [80.214.144.204]) by st43p00im-ztbu10063601.me.com (Postfix) with ESMTPSA id A7A197002EB; Mon, 31 Aug 2020 06:11:21 +0000 (UTC) From: Alain Volmat To: Patrice Chotard , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: avolmat@me.com Subject: [PATCH 3/3] cpufreq: arm: Kconfig: add CPUFREQ_DT depend for STI CPUFREQ Date: Mon, 31 Aug 2020 08:10:13 +0200 Message-Id: <20200831061013.4327-4-avolmat@me.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831061013.4327-1-avolmat@me.com> References: <20200831061013.4327-1-avolmat@me.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-31_01:2020-08-28,2020-08-31 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=985 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2008310043 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The sti cpufreq driver is relying on the CPUFREQ_DT driver hence add the depends within the Kconfig.arm Signed-off-by: Alain Volmat --- drivers/cpufreq/Kconfig.arm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index cb72fb507d57..bf5830eb664f 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -283,7 +283,7 @@ config ARM_SPEAR_CPUFREQ config ARM_STI_CPUFREQ tristate "STi CPUFreq support" - depends on SOC_STIH407 + depends on CPUFREQ_DT && SOC_STIH407 help This driver uses the generic OPP framework to match the running platform with a predefined set of suitable values. If not provided