Message ID | 1673591682-25789-1-git-send-email-cy_huang@richtek.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp120728wrt; Thu, 12 Jan 2023 22:53:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXvrY6b3VMwvDbtZM7I6dqPilagWaOIAFe2NRCdtGYu4qXPKf2KDFVcDN9xLYYa1svBkgHSj X-Received: by 2002:a05:6402:2b89:b0:46c:aa8b:da5c with SMTP id fj9-20020a0564022b8900b0046caa8bda5cmr65271052edb.33.1673592792496; Thu, 12 Jan 2023 22:53:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673592792; cv=none; d=google.com; s=arc-20160816; b=hyG7h+vJze9As1qe2Q+Cv9k7bfZCls1OPBquEmVFHSztftb4yNAi3zC4z5VzEEZn0l 9ajESt+YpenMHVnzYfe5Hri4sJcUgUmhPI6YWtLTrKZ1JYhX/5iOY/0VbPpdZudWmo+J VD1HdEMvxalvq8pplRj568irKWcDcxzAjjChrAeYz7uae5/ws/r6aPOWJd2uvHc2BdIJ zdCVCaRg6kFSar5kyss3z/jPCvPbZidTJ4M5CRQO8Jq23D8Cju/GMLzzzts8v7Iq7/0s xWe3/l1vn1sPePypg5LlBczOyySWdGWHXzr3xvGpM5B1uDb2tzya4lrQg7N40U2sUt42 91og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=I0FZVAdRpvpy7ZVNcCCnedRrqNVd3d/8wdB1h9T/kfA=; b=RMygc9NrMBk5IbRAO61wcx75BW5hFZcP0WAV1GQIQ+usprmb65v/sG4KF7beqjjegF XuJT4TFANRYF0q/humZja2lgg5KcIl0A0cmv4jWTA9UtkPMoMJvZnz6gzJwXjoLTYafp T8jMRp2q0xWuu9fl1Iz1LxKymccgNX2qtIi4ztCKTHE6uFfgiuArc6/87N+Nglzidbgn L3hTdChQAnqUAvLcwG+zKhxxjPWuB1N1vD91S2M3/3q4mMoXgVvqKoOHV+vJyezGgkc5 zrkSDkIpj1Wdyh4EP6xv9RB12bbAtPUPBfILh754D+fuz48UPgWc5i5HaODgeKECVoS7 bXaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd28-20020a1709076e1c00b007c14eabf6adsi21712868ejc.116.2023.01.12.22.52.48; Thu, 12 Jan 2023 22:53:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238226AbjAMGwJ (ORCPT <rfc822;zhuangel570@gmail.com> + 99 others); Fri, 13 Jan 2023 01:52:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbjAMGvZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Jan 2023 01:51:25 -0500 X-Greylist: delayed 1039 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 12 Jan 2023 22:35:22 PST Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E043E7DE35; Thu, 12 Jan 2023 22:35:21 -0800 (PST) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTP Server V5.0(16474:0:AUTH_RELAY) (envelope-from <cy_huang@richtek.com>); Fri, 13 Jan 2023 14:34:43 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Fri, 13 Jan 2023 14:34:43 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.20 via Frontend Transport; Fri, 13 Jan 2023 14:34:43 +0800 From: <cy_huang@richtek.com> To: <sre@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org> CC: <allen_chiang@richtek.com>, <cy_huang@richtek.com>, <u0084500@gmail.com>, <linux-pm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH RESEND v3 0/3] Add Richtek RT9759 smart cap divider charger support Date: Fri, 13 Jan 2023 14:34:39 +0800 Message-ID: <1673591682-25789-1-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754889235680973865?= X-GMAIL-MSGID: =?utf-8?q?1754889235680973865?= |
Series |
Add Richtek RT9759 smart cap divider charger support
|
|
Message
ChiYuan Huang
Jan. 13, 2023, 6:34 a.m. UTC
From: ChiYuan Huang <cy_huang@richtek.com>
This patch set is to add Richtek RT9759 smart cap divider charger.
The RT9759 is a high efficiency and high charge current charger.
The efficiency is up to 97.8% when VBAT=4.2V, IBAT=2.5A, and the maximum
charge current is up to 8A. The device integrates smart cap divider topology
with a dual-phase charge pump core and 9 channel high speed ADCs to monitor
the charging process.
Since v3:
- Fix 0002 patch title typo (from 'rt9471' to 'rt9759')
- Remove unused R_VAC_OVP range.
- Refer to ABI document, use 'status' to control battery charging, not 'online'
- Refer to ABI document, use 'online' to indicate bus state
Since v2:
- Add Reviewed-by tag for dt-binding patch
- Change ABI document date from Oct 2022 to Nov 2022 and KernelVersion
from 6.1 to 6.2
ChiYuan Huang (3):
dt-bindings: power: supply: Add Richtek RT9759 smart cap divider
charger
power: supply: rt9759: Add Richtek RT9759 smart cap divider charger
Documentation: power: rt9759: Document exported sysfs entries
Documentation/ABI/testing/sysfs-class-power-rt9759 | 37 ++
.../bindings/power/supply/richtek,rt9759.yaml | 61 ++
drivers/power/supply/Kconfig | 15 +
drivers/power/supply/Makefile | 1 +
drivers/power/supply/rt9759.c | 613 +++++++++++++++++++++
5 files changed, 727 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-class-power-rt9759
create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt9759.yaml
create mode 100644 drivers/power/supply/rt9759.c