Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3937294ybi; Fri, 19 Jul 2019 11:41:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/4LmlNEt5brHgEb6ijsntF7D90F1tS1bNcF+v50h+RHnsfN+qBmCRX+4Vjqxou9lRLUoX X-Received: by 2002:a63:1d4:: with SMTP id 203mr38311739pgb.441.1563561694198; Fri, 19 Jul 2019 11:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563561694; cv=none; d=google.com; s=arc-20160816; b=q4tIajGHqXU+nTtgQ8ZXuBHGADo5K0BRGcGMloXy2yeZ72Td0UwFeqp1Br4pY4n96v ng80yM1SnwOnSdufTjVNF851RvL6yXimeAWOnoDsdEKM9ULR4VYWBhQs7opRZ8z92vm3 wphIfEPLOzTUrqELHLhrQb249kgpWpEW6X3QFoBXkc1ZZwnfxvZrX+l/nRirNbu6gR0J 4pLKD/fBnQNV619w+8QagNUjOidg/IqdcYgZZ1XGPDf/p18p3+XAXFHiCzpYbHWYI3m0 mxFHTT+eja0wGqHrKJIyZXf0Z5epji23i/7C8IjqjyZuYMexI/1A2gOe/21xm6NG1CE7 6HBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=jeFX2U5pvynczFNKiJiwvxKE4yjad+CXSaSviMj87sw=; b=AtLFFAK0aoAgZ2wlnZYW5e55fYFMpnzWe+Jmz4Gy9s+wLrpeBwhpD5dx4abOLALnkD QyzYeKFqieOa21IgWrNT2CijxGUzBChttilXmM6kzX8wZ5Ul8VjVUqshHkPCtNs4Mi1F Waol/RJcMkq4PJy0zL8v/+aFbTk10dmql4V+uJokL6EcgpbSQqkkDARhhpqomL3b5NjD AkoOVr+xvie969Bzd35RYZGsQUcYgzTbUiFDgq0sTDEVBUWOyZ8ZBwbEmXUazsOufH26 +vXwYyFzyupoke4C3SOcax/0XAkKqqORNpSNq3n75HonEEaC5I8a2fDLcrR/o/zNQwm2 VGXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=XaVUGanp; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si2713244pfc.176.2019.07.19.11.41.18; Fri, 19 Jul 2019 11:41:34 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b=XaVUGanp; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729952AbfGSPF6 (ORCPT + 99 others); Fri, 19 Jul 2019 11:05:58 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40824 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729670AbfGSPF4 (ORCPT ); Fri, 19 Jul 2019 11:05:56 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190719150554euoutp02880c116a959602373bf515dd031163cd~y107-t_aq1348913489euoutp02F for ; Fri, 19 Jul 2019 15:05:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190719150554euoutp02880c116a959602373bf515dd031163cd~y107-t_aq1348913489euoutp02F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563548754; bh=jeFX2U5pvynczFNKiJiwvxKE4yjad+CXSaSviMj87sw=; h=From:To:Cc:Subject:Date:References:From; b=XaVUGanpO46EAY82NJfM7ylne9GEl+QF/1Yt+3aJPa7ssraj4Dca28gfSsiGQ2TXq wAqc3IB5IWwJYi6LTVlTqr0zTV4Qe+XIrQaPRS7LzUGs1+MfEDBFj9HmFeX2NRuPVg 78SJaGGqGpC12os87ATsI5p5JaIgoEhHwElXk6kQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190719150553eucas1p1cc26e201dfcc1e9767f995a4a85353a9~y107GI5Ir0634306343eucas1p14; Fri, 19 Jul 2019 15:05:53 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 5F.09.04377.15CD13D5; Fri, 19 Jul 2019 16:05:53 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190719150553eucas1p142b965afae13224712d51f9c28162165~y106ROdDH3032530325eucas1p1t; Fri, 19 Jul 2019 15:05:53 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190719150552eusmtrp26e77e72562961e85c1ebe460b9bdbddf~y106AU4Iz3114831148eusmtrp28; Fri, 19 Jul 2019 15:05:52 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-71-5d31dc51d88f Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9D.F6.04140.05CD13D5; Fri, 19 Jul 2019 16:05:52 +0100 (BST) Received: from AMDC3218.DIGITAL.local (unknown [106.120.51.18]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190719150551eusmtip13b1975a61126609daf2c674be6794fda~y105N_wS72820728207eusmtip1i; Fri, 19 Jul 2019 15:05:51 +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 v3 0/5] add coupled regulators for Exynos5422/5800 Date: Fri, 19 Jul 2019 17:05:30 +0200 Message-Id: <20190719150535.15501-1-k.konieczny@partner.samsung.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHKsWRmVeSWpSXmKPExsWy7djP87qBdwxjDSZ91LTYOGM9q8X1L89Z LeYfOcdq0bfvP6NF/+PXzBbnz29gtzjb9IbdYtPja6wWl3fNYbP43HuE0WLG+X1MFmuP3GW3 WHr9IpPF7cYVbBZvfpxlsmjde4Td4t+1jSwWmx8cY3MQ8lgzbw2jx6ZVnWwem5fUexx8t4fJ o2/LKkaP4ze2M3l83iQXwB7FZZOSmpNZllqkb5fAldF0aRdLwT3+ilW9L1kbGNfwdDFyckgI mEhMaDvHCmILCaxglFj+jL2LkQvI/sIosfPVcSjnM6PEpPs7gRwOsI7FS3wg4ssZJS48f8sG 17HpXw8jyCg2AVWJLTNesoPYIgLKEpPvTWcGKWIW+MkiseHyRrCEsICTxIujy8F2swA17P/e zAJi8wq4SOz4eYoF4j55ic4du6HighInZz4Bs5mB4s1bZ4MNlRC4xi6xpWsXK0QDUPPZtewQ trDEq+NboGwZif875zNB2OUSTxf2sUM0tzBKPGj/CLXNWuLw8YusIH8yC2hKrN+lDxF2lHhw fhsTxPt8Ejf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CvCmJlVWpRfnxRaU5qcWHGE2Bjp3I LCWanA9MAHkl8YamhuYWlobmxubGZhZK4rwdAgdjhATSE0tSs1NTC1KLYPqYODilGhhnLTl7 KKrkvcezz663f8dIP7kstDFUKqzHUunNJ21PBmsx5g6LfwkTYn5VPpznfHhzjMCMyW6vMqJK 5vp1vFc5ovj8TN/MyuSz228qaD/KvJjWsHfSu5eb3bZMZtTWmyYfvGpt3wzRw/ku2jJfNxrL Myi6bN58rpb9wNyeRze2r9JWOieZ3laoxFKckWioxVxUnAgAUdvfXsgCAAA= X-CMS-MailID: 20190719150553eucas1p142b965afae13224712d51f9c28162165 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190719150553eucas1p142b965afae13224712d51f9c28162165 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190719150553eucas1p142b965afae13224712d51f9c28162165 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 2nd and 3rd patches. Changes: 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 Regards, Kamil Kamil Konieczny (4): devfreq: exynos-bus: correct clock enable sequence opp: core: add regulators enable and disable devfreq: exynos-bus: convert to use dev_pm_opp_set_rate() dt-bindings: devfreq: exynos-bus: remove unused property 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 | 181 ++++++------------ drivers/opp/core.c | 16 +- 7 files changed, 113 insertions(+), 160 deletions(-) -- 2.22.0