From patchwork Mon Feb 6 01:45:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 52969 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2002983wrn; Sun, 5 Feb 2023 17:47:02 -0800 (PST) X-Google-Smtp-Source: AK7set+RHCqQDTztYNWQaTjO1oqoXruVWNn9pVjucRbR42mcK06dDIkB07333faoeRco9MAd0B2B X-Received: by 2002:aa7:8745:0:b0:593:cdc7:5dd3 with SMTP id g5-20020aa78745000000b00593cdc75dd3mr16085995pfo.4.1675648022434; Sun, 05 Feb 2023 17:47:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675648022; cv=none; d=google.com; s=arc-20160816; b=GxD8Oxdl0u11OUMcAEky3zq49yN2PVZYGlUwvt0rOy11rT3NDWrqUAe2/kyutREqL6 5qFvesZ7/QzE6eRiyI2MiSZYzx2f5n1uOjGyetUBbAwJdnMsXFj5OwNdGDVw7m/d6S2Z qHFZp2JHYmmbutYYbN25hYohfXiMhVCqTBJQAPy072nCfx8uYM+oRzGUfuLD03ig2nSJ 6bhe+hNhc/jrKfVNhnuUMsde0gO+nH58MGzZK7O4vZqC7P8uRA9IcMiv5+SaR4UHt/M3 ZJNcXISfUA266YF+fNkzsWIKJuPR9CuvXLed8vjaIX+L6k/rwL92+8rGmEImtOas5OzZ xmIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=6i4HyMglMaC/4c5RfmowST4xc1PHu7ajiLvUodJVrVY=; b=ymCtvk1FzqrPRGn3jgQh1je2mH6CqZ/16vf0ES7UwB+k0aFM2Fd+4QYZHZY1RayCrc sYiane11Et0cIJIjCp3YyFZMTIpwxIW2mdDXgC7zP2bNtH2GEUJ6DQz9v/JPInqnH4XS AxXUER9ZdwqL2GDhWcn9xzTiXXt7eQv+KhLVIfCYAwVglJwVDJBk1/8IrDAXfzL/xy4e ZqFd1Xqd4LrGBc8AwsYQytGJHNNR4iiMhaK95pH1HxHXWIFTFRP/3t0BI/dLBdrrw9Y6 oGnRkeOy5TG5O1Iluw6e7o9Mns1EA5AX1+9OJFcbS3Jmkep8BMoturJmh4WfK6v3WcO6 pQTA== 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 h12-20020a62b40c000000b0059248a91d9bsi9752096pfn.127.2023.02.05.17.46.50; Sun, 05 Feb 2023 17:47:02 -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 S229510AbjBFBpq (ORCPT + 99 others); Sun, 5 Feb 2023 20:45:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbjBFBpp (ORCPT ); Sun, 5 Feb 2023 20:45:45 -0500 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 037921ADCE; Sun, 5 Feb 2023 17:45:41 -0800 (PST) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTP Server V5.0(20362:0:AUTH_RELAY) (envelope-from ); Mon, 06 Feb 2023 09:45:24 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Mon, 6 Feb 2023 09:45:23 +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; Mon, 6 Feb 2023 09:45:23 +0800 From: To: , , CC: , , , , , Subject: [PATCH v4 1/3] dt-bindings: power: supply: Add Richtek RT9759 smart cap divider charger Date: Mon, 6 Feb 2023 09:45:17 +0800 Message-ID: <1675647919-11151-2-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1675647919-11151-1-git-send-email-cy_huang@richtek.com> References: <1675647919-11151-1-git-send-email-cy_huang@richtek.com> MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757044300583832784?= X-GMAIL-MSGID: =?utf-8?q?1757044300583832784?= From: ChiYuan Huang Add bindings for the Richtek RT9759 smart cap divider charger. Signed-off-by: ChiYuan Huang Reviewed-by: Rob Herring --- Since v2 - Add Reviewed-by tag for dt-binding patch --- .../bindings/power/supply/richtek,rt9759.yaml | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt9759.yaml diff --git a/Documentation/devicetree/bindings/power/supply/richtek,rt9759.yaml b/Documentation/devicetree/bindings/power/supply/richtek,rt9759.yaml new file mode 100644 index 00000000..04fc6b0 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/richtek,rt9759.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/richtek,rt9759.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RT9759 Smart Cap Divider Charger + +maintainers: + - ChiYuan Huang + +description: | + 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 dual phase charge pump core. The ADCs provide input and output voltage, + current and temperature information to monitor the whole charging process. + + Datasheet is available at + https://www.richtek.com/assets/product_file/RT9759/DS9759-02.pdf + +properties: + compatible: + enum: + - richtek,rt9759 + + reg: + maxItems: 1 + + wakeup-source: true + + interrupts: + maxItems: 1 + + shunt-resistor-micro-ohms: + description: Battery current sense resistor mounted. + default: 2000 + +required: + - compatible + - reg + - wakeup-source + - interrupts + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + charger@66 { + compatible = "richtek,rt9759"; + reg = <0x66>; + wakeup-source; + interrupts-extended = <&gpio_intc 32 IRQ_TYPE_EDGE_FALLING>; + shunt-resistor-micro-ohms = <5000>; + }; + };