From patchwork Tue Apr 21 05:18:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bibby Hsieh X-Patchwork-Id: 201698 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MIME_BASE64_TEXT, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDF16C54FC9 for ; Tue, 21 Apr 2020 05:19:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 94C97214AF for ; Tue, 21 Apr 2020 05:19:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="NG56aeh2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726659AbgDUFTG (ORCPT ); Tue, 21 Apr 2020 01:19:06 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57482 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725881AbgDUFTF (ORCPT ); Tue, 21 Apr 2020 01:19:05 -0400 X-UUID: 5917739a3a7c431fae3f17a2c9876ba8-20200421 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=TUoPDP4K3MLuRnUQDSlpxAsoPHlCYQbcdjRnjLPS0nk=; b=NG56aeh22eiV5sZI8XS3GDK4zPge1ZEEfkv11V30SJe5h53x77BVbKUIykLPhyqdcrigDX8YRVyx+dsUvP3vv31d8lHsidh7Hypfl2HnnelSvCYIR68m6iYhRCz3HsihAcI7ryIah5E31XiTYfAz/UERUDja1I2avm1kYpAaxgU=; X-UUID: 5917739a3a7c431fae3f17a2c9876ba8-20200421 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 2042194037; Tue, 21 Apr 2020 13:19:01 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Apr 2020 13:19:00 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 21 Apr 2020 13:18:59 +0800 From: Bibby Hsieh To: Wolfram Sang , Bartosz Golaszewski , CC: , , , , , , "Rafael J . Wysocki" , Bibby Hsieh Subject: [PATCH v13 0/2] add power control in i2c Date: Tue, 21 Apr 2020 13:18:56 +0800 Message-ID: <20200421051858.11176-1-bibby.hsieh@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Although in the most platforms, the power of eeprom and i2c are alway on, some platforms disable the eeprom and i2c power in order to meet low power request. This patch add the pm_runtime ops to control power to support all platforms. Changes since v12: - rebase onto v5.7-rc1 - change the property description in binding Changes since v11: - use suspend_late/resume_early instead of suspend/resume - rebase onto v5.6-rc1 Changes since v10: - fixup some worng codes Changes since v9: - fixup build error - remove redundant code Changes since v8: - fixup some wrong code - remove redundant message Changes since v7: - add binding describe supply property in i2c and at24. - move i2c bus supply control in i2c-core. - rebase onto v5.5-rc1 [... snip ...] Bibby Hsieh (2): dt-binding: i2c: add bus-supply property i2c: core: support bus regulator controlling in adapter Documentation/devicetree/bindings/i2c/i2c.txt | 3 + drivers/i2c/i2c-core-base.c | 82 +++++++++++++++++++ include/linux/i2c.h | 2 + 3 files changed, 87 insertions(+) -- 2.18.0