From patchwork Fri Aug 3 06:51:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10554605 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5DAC014E2 for ; Fri, 3 Aug 2018 06:52:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CF1F2C085 for ; Fri, 3 Aug 2018 06:52:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2ED572C4E7; Fri, 3 Aug 2018 06:52:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 611472C085 for ; Fri, 3 Aug 2018 06:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728074AbeHCIqs (ORCPT ); Fri, 3 Aug 2018 04:46:48 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:45199 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726851AbeHCIqs (ORCPT ); Fri, 3 Aug 2018 04:46:48 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180803065156euoutp0101644f8f1efa90ab9a275dd7084b89a1~HTTuw8uV62963629636euoutp01n for ; Fri, 3 Aug 2018 06:51:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180803065156euoutp0101644f8f1efa90ab9a275dd7084b89a1~HTTuw8uV62963629636euoutp01n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1533279116; bh=VLxHFDt3Y8iNqevZe+XJhBGpgRDqtyGuAq7FL1esFTA=; h=From:To:Cc:Subject:Date:References:From; b=OVVFxTNIiDSlyC2n3h2ldN8JeAQ6PDRexuPkwnne+MqTRp4g7Ki27cA/3dkXC1aKJ +wkzOWS2TAzYHD9cGoVGx1vg8KbgEAfu551LrqvtAnCw0Y7NcHx9STjqHlO3xvQNr3 tr+Rp6BRkJ1rqcMpBwFBvcTfIBeI9wEGhP3sLnUs= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180803065156eucas1p192c6907d2dd12f88b908ace29b23def2~HTTuTHYIO1217712177eucas1p1c; Fri, 3 Aug 2018 06:51:56 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id A8.CE.04627.B8BF36B5; Fri, 3 Aug 2018 07:51:56 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20180803065155eucas1p1ab44ee847e1020f0fb9cad361e707e41~HTTtQrGti1217712177eucas1p1Z; Fri, 3 Aug 2018 06:51:55 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180803065155eusmtrp1eac164d24e3f128e3a1ab6c5b23df2f7~HTTtCcSUX1526815268eusmtrp1n; Fri, 3 Aug 2018 06:51:55 +0000 (GMT) X-AuditID: cbfec7f2-0edff70000021213-c3-5b63fb8bfac5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id AA.D2.04183.A8BF36B5; Fri, 3 Aug 2018 07:51:54 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.116.147.25]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180803065154eusmtip298a0bc356187f03875cc182c3ba7afe2~HTTsrYOir1671816718eusmtip2w; Fri, 3 Aug 2018 06:51:54 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 0/2] Exynos5250: Fix suspend/resume support Date: Fri, 3 Aug 2018 08:51:45 +0200 X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOIsWRmVeSWpSXmKPExsWy7djPc7o9v5OjDS72s1psnLGe1eL8+Q3s FjPO72OyWHvkLrsDi8emVZ1sHn1bVjF6fN4kF8AcxWWTkpqTWZZapG+XwJVx9K5GwQv2iq3/ 2xgbGDeydTFyckgImEjM+7aatYuRi0NIYAWjxMmFfUwQzhdGibPnD0M5nxklGvcfZIJp+XTj LCNEYjmjxNamzewQzldGiT//rzODVLEJGEp0ve0CWyIioCrxuW0BWBGzQB+jxPW9c8GKhAWs JX5sXQxmswAVXdv1gR1ihbzE6g0HmEEaJATWsEmsPP6ZFSTBK1AmceL3EajTXSSmtnyHuklY 4tXxLVDNMhKnJ/ewQDQ3M0q0z5jFDuH0AB07ZwdUt7XE4eMXgaZyAN2kKbF+lz5E2FFi7o53 LCBhCQE+iRtvBUHCzEDmpG3TmSHCvBIdbUIQ1WoSs46vg1t78MIlZgjbQ+LnoatgpwkJxEo0 f7jAMoFRbhbCrgWMjKsYxVNLi3PTU4sN81LL9YoTc4tL89L1kvNzNzECo/v0v+OfdjB+vZR0 iFGAg1GJh/eCanK0EGtiWXFl7iFGCQ5mJRHet51AId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rx3 +uOihQTSE0tSs1NTC1KLYLJMHJxSDYzlMz/qFeySzraY2WfGx24u4BxlLRok+Zf15Z6td14/ TWOLf554wNv2Y0qLjvgWzv4DnK9XC7/q66xPFF5Wx6P5L+DdhmsMOVb/LmmEPbhrNW93+b32 CJ3vF9n2qb9rMqp3iV+y9dUL+4mXcq/4Wm7QXHJm1subWmxJCs0i0xY/yi2aoC0oqaDEUpyR aKjFXFScCAADqkEd6gIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDLMWRmVeSWpSXmKPExsVy+t/xe7pdv5OjDSbcsLTYOGM9q8X58xvY LWac38dksfbIXXYHFo9NqzrZPPq2rGL0+LxJLoA5Ss+mKL+0JFUhI7+4xFYp2tDCSM/Q0kLP yMRSz9DYPNbKyFRJ384mJTUnsyy1SN8uQS/j6F2NghfsFVv/tzE2MG5k62Lk5JAQMJH4dOMs YxcjF4eQwFJGiY3rfzJBJGQkTk5rYIWwhSX+XOtigyj6zCgxpXk+M0iCTcBQouttF9gkEQFV ic9tC9hBipgFJjBKnO+cAZYQFrCW+LF1MVgDC1DRtV0f2EFsXgEbiU+t69khNshLrN5wgHkC I88CRoZVjCKppcW56bnFRnrFibnFpXnpesn5uZsYgSG17djPLTsYu94FH2IU4GBU4uG9oJoc LcSaWFZcmXuIUYKDWUmE920nUIg3JbGyKrUoP76oNCe1+BCjKdDyicxSosn5wHDPK4k3NDU0 t7A0NDc2NzazUBLnPW9QGSUkkJ5YkpqdmlqQWgTTx8TBKdXAOFE4vVkpNW3fR6WCvp0zdTgr BWdOvzC5rZh7yrl9Kfk7z92YPEGF/bCuXMupeRoLg4TTo9Peabw89JxfbLWHvUZfSOvycqnl pkfSem8dWMqetMlrltxh0+zmq4VG6y49lEhhefnt2SHBHp1fyXdld/F8S3C8Zn/B6m6Efv6a R2uLDhY2xRaUKLEUZyQaajEXFScCACYjBxU/AgAA Message-Id: <20180803065155eucas1p1ab44ee847e1020f0fb9cad361e707e41~HTTtQrGti1217712177eucas1p1Z@eucas1p1.samsung.com> X-CMS-MailID: 20180803065155eucas1p1ab44ee847e1020f0fb9cad361e707e41 X-Msg-Generator: CA X-RootMTR: 20180803065155eucas1p1ab44ee847e1020f0fb9cad361e707e41 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180803065155eucas1p1ab44ee847e1020f0fb9cad361e707e41 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi All, Exynos5250 uses generic cpufreq-dt driver since v4.3 kernel release. This change however broke suspend/resume support if cpufreq support is enabled, because CPU boots at 1GHz after suspend/resume cycle, what needs proper configuration of CPU voltage regulators. Previously used exynos-cpufreq driver stored initial boot CPU operation point and switched to it for the suspend/resume cycle. To achieve similar result with generic cpufreq-dt driver, the 1GHz operation point has to be specially marked as 'suspend opp'. This is possible only in v2 of the OPP bindings, so convert exynos5250.dtsi first to the newer version of the binding. Best regards Marek Szyprowski Patch summary: Marek Szyprowski (2): ARM: dts: exynos: Convert exynos5250.dtsi to opp-v2 bindings ARM: dts: exynos: Mark 1GHz CPU OPP as suspend OPP arch/arm/boot/dts/exynos5250.dtsi | 131 ++++++++++++++++++++---------- 1 file changed, 89 insertions(+), 42 deletions(-)