From patchwork Thu Jul 25 14:42:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Konieczny X-Patchwork-Id: 11058991 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 216B8138D for ; Thu, 25 Jul 2019 14:43:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 122712883F for ; Thu, 25 Jul 2019 14:43:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 066E1289BD; Thu, 25 Jul 2019 14:43:29 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 C458F2883F for ; Thu, 25 Jul 2019 14:43:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728686AbfGYOn1 (ORCPT ); Thu, 25 Jul 2019 10:43:27 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:50371 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726951AbfGYOn1 (ORCPT ); Thu, 25 Jul 2019 10:43:27 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190725144325euoutp01fe2d54543f88a0f101a6ef7c47af260a~0rZBMHr1K2885828858euoutp01B for ; Thu, 25 Jul 2019 14:43:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190725144325euoutp01fe2d54543f88a0f101a6ef7c47af260a~0rZBMHr1K2885828858euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1564065805; bh=fTxsTItMIO6fk/T/Y/JJ5cFwuR3QiqOaNKtLjYnGyLk=; h=From:To:Cc:Subject:Date:References:From; b=XRHtCxDONwi74D0Km6mjvW2+TKkaJgV9GypOJ3Y7l/mnPZLO7vL3zKluDnNl1ook0 GtlgsM8YLDhXiMfUkfHQuH11FJ8VwJhN/N5/tSob+6TKmlMsgmCWt1L8+BIJWzH2mE dKhMnmer50Mq055wGlQBsvIFAyozpzOihVkGJiiM= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190725144325eucas1p18cf1b48a38ea5edc5ca14cfb02667bd9~0rZAcUfzw0610606106eucas1p1q; Thu, 25 Jul 2019 14:43:25 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id FA.CA.04377.C00C93D5; Thu, 25 Jul 2019 15:43:24 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190725144324eucas1p211802237e336852ea3d1aa003e4d5d04~0rY-ufs-E1530115301eucas1p2j; Thu, 25 Jul 2019 14:43:24 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190725144324eusmtrp1574d00d9799d7541f670120b75db0286~0rY-gBYh00712207122eusmtrp1g; Thu, 25 Jul 2019 14:43:24 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-8f-5d39c00c32a1 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 4C.2E.04146.B00C93D5; Thu, 25 Jul 2019 15:43:24 +0100 (BST) Received: from AMDC3218.DIGITAL.local (unknown [106.120.51.18]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190725144323eusmtip1e5504cd19a90caef2209149ce0b9ebce~0rY_yRF4u0146301463eusmtip1j; Thu, 25 Jul 2019 14:43:23 +0000 (GMT) From: k.konieczny@partner.samsung.com To: k.konieczny@partner.samsung.com Cc: Bartlomiej Zolnierkiewicz , Marek Szyprowski , Chanwoo Choi , Krzysztof Kozlowski , Kukjin Kim , Kyungmin Park , Mark Rutland , MyungJoo Ham , Nishanth Menon , Rob Herring , Stephen Boyd , Viresh Kumar , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v4 0/5] add coupled regulators for Exynos5422/5800 Date: Thu, 25 Jul 2019 16:42:55 +0200 Message-Id: <20190725144300.25014-1-k.konieczny@partner.samsung.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHe3d2do6y2XEKvmmYLYQM1OyCrxSieWFfhKg+dEFq5UElrzte WkGZZV5S08SczkwrUdRS5zWnZrqcZma2vBXmwPKSFpQL0sy17Vj57ff8n+f/8PzhITHhFG5P hkfF0dIoSYSIZ8lt7l0ecuV3eQXvvtnjjurltTga08/i6J76FY6yOw0A3ZpewNDQUB2BBpMX CaScHsWRtq2Yh5ay1ADJhzo56JF6kkDlY8Mc9P5qJQ8t/hzkoJQONYHWRuu5qEHXy/MRimtK aoBYWZXOEzc8vCJ+9rWdI85urAJizXgLR7ykdDxMnLQ8GEJHhCfQUnfvM5Zhmpx2ImZceKHk xxRIAimbM4AFCal9sHhghcgAlqSQqgRwoqmMwxZ6AJOGZzC2WAKwYuSXcYw0W7R9nqxeAaDq 7Szxz5GiL8JNe3mUM2yUzxMmtqV2wLwPBeZNGLXMhXXaenPDhjoE07sqz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7YzQIRF5Q4OfMJmM0M FG/eOpt5AiPfLCSpWUhSCxiZVjGKpJYW56bnFhvqFSfmFpfmpesl5+duYgRG2bZjPzfvYLy0 MfgQowAHoxIP74XllrFCrIllxZW5hxglOJiVRHi37gAK8aYkVlalFuXHF5XmpBYfYjQFOnYi s5Rocj4wAeSVxBuaGppbWBqaG5sbm1koifN2CByMERJITyxJzU5NLUgtgulj4uCUamCsl9/2 TW4Ol888OwO/7MIHe5ikAwse71vZeG1xrSff/qAL8fO4f8hX+u7NOvvqtveL8wurWoTWHmg2 DD9dutcp9ZJDE/Pp+qSLgraGanfVDolttZmebbKYkWeyN8s0dz6fgzsnPN83x+96+fWiv7Pn 2VyakdnQYxW+lacj88ijYxoPHv2cELtPiaU4I9FQi7moOBEA3JUTeMgCAAA= X-CMS-MailID: 20190725144324eucas1p211802237e336852ea3d1aa003e4d5d04 X-Msg-Generator: CA X-RootMTR: 20190725144324eucas1p211802237e336852ea3d1aa003e4d5d04 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190725144324eucas1p211802237e336852ea3d1aa003e4d5d04 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, The main purpose of this patch series is to add coupled regulators for Exynos5422/5800 to keep constrain on voltage difference between vdd_arm and vdd_int to be at most 300mV. In exynos-bus instead of using regulator_set_voltage_tol() with default voltage tolerance it should be used regulator_set_voltage_triplet() with volatege range, and this is already present in opp/core.c code, so it can be reused. While at this, move setting regulators into opp/core. This patchset was tested on Odroid XU3. The DTS coupled regulators patch depends on previous patches. Changes: v4: - removed "opp: core: add regulators enable and disable" from patchset as it was applied by Viresh Kumar and changed cover letter - fix patch "devfreq: exynos-bus: correct clock enable sequence" to correct order of enable/disable - removed unrelated changes in "devfreq: exynos-bus: convert to use dev_pm_opp_set_rate()" - added new patch "devfreq: exynos-bus: remove exynos_bus_passive_target()" as suggested by Chanwoo Choi v3: - added new exynos-bus patch to correct clock and regulator enabling and disabling sequence as suggested by Chanwoo Choi - corrected error path in enable and improved commit message in opp/core - improve comment in devfreq/exynos-bus.c before devfreq_recommended_opp() - change cover letter as there is new patch - added note before Signed-off-by in 4th patch v2: - improve regulators enable/disable code in opp/core as suggested by Viresh Kumar - add new patch for remove unused dt-bindings as suggested by Krzysztof Kozlowski Kamil Konieczny (4): devfreq: exynos-bus: correct clock enable sequence devfreq: exynos-bus: convert to use dev_pm_opp_set_rate() dt-bindings: devfreq: exynos-bus: remove unused property devfreq: exynos-bus: remove exynos_bus_passive_target() Marek Szyprowski (1): ARM: dts: exynos: add initial data for coupled regulators for Exynos5422/5800 .../bindings/devfreq/exynos-bus.txt | 2 - arch/arm/boot/dts/exynos5420.dtsi | 34 ++-- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 4 + arch/arm/boot/dts/exynos5800-peach-pi.dts | 4 + arch/arm/boot/dts/exynos5800.dtsi | 32 ++-- drivers/devfreq/exynos-bus.c | 153 +++++------------- 6 files changed, 78 insertions(+), 151 deletions(-)