Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp25827719rwd; Mon, 3 Jul 2023 01:21:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+CPQYzL+LnKJlltzqwlhoybMO2YYMgIRSIJkr0lj4o8e80CdflwNUIsyWvru6He5WyRu7 X-Received: by 2002:a05:6358:19:b0:134:d26d:e27b with SMTP id 25-20020a056358001900b00134d26de27bmr6333854rww.25.1688372515956; Mon, 03 Jul 2023 01:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688372515; cv=none; d=google.com; s=arc-20160816; b=yv39Lumpe3JDo4PqH88bkMGDSEtzlOyA/cxvN8mO3C6XO8NT5gTy5/TLjfuskYWW82 OtLNhe3m2LDQc1ppUioJ2CHvZWpTI4g/gJWcVCAmJ88SHVeS9eYo/dKNZlIFZDI47hMu oKn2ImUrDdmCS/Ms9O1TGfZDoL7/EZz8pwoWTAJrBZTcNlUULqUOEB+O7rIo4NbRkZlg hEVHPuWDjz+Z8J8xbueJ8mLY0NIqDyrqttLX9Ywg4DfKtvuKwqDZrLK8LL6wbH3oN96O H05fDQDvxtRXLpVF6TEvMEcOtfbMQHEhZOsUGeCDxOjMx9+xd5gqwoL0tuTkmeOggQoQ /xhg== 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=aPOGzsGtm0NVDTUftOv+dmkW7U2qgRDTLOCh5WYiLNQ=; fh=SV43oIMou6dSD499BvlWhNfGCVbQ6M1veycSQgez/OI=; b=Ml6M3hJ/NkuG3+x95/d6H0Pno8P8Mf2fcZXR8Mljn475618eGtbHFeB4uIbzQ+g9rP 8J4TFX5UfeZvOESDDtnbk3rQMLzQqdHdl4xNPW+mS5Fuhvv1JGFFJn9kgI9R84r6IyN5 BslYhCSvzcK4SrMnosr6MwE9/Svvp4lqY8ZHmSD+7AAdFQgjPHtNniM/ClJR3tXLqiPN GSPrplc/v11Eaia9xxB8raK0G4bBNQdfyS/AJ8MnkRMl/He35Kn1u+JdV42/xr3exPLK gh8kdXj995UYUGWuxrZjqkAmedZhlRlcw1wliZ6o7BK8RCAVr4PlSpERG3C6QFGzjfy0 HwAg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a654145000000b00542897dcc22si17515516pgp.516.2023.07.03.01.21.41; Mon, 03 Jul 2023 01:21:55 -0700 (PDT) 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 S230262AbjGCIBX (ORCPT + 99 others); Mon, 3 Jul 2023 04:01:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbjGCIBD (ORCPT ); Mon, 3 Jul 2023 04:01:03 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 28D47E41; Mon, 3 Jul 2023 01:00:51 -0700 (PDT) X-MailGates: (SIP:2,PASS,NONE)(compute_score:DELIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTP Server V6.0(3453529:0:AUTH_RELAY) (envelope-from ); Mon, 03 Jul 2023 16:00:35 +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.25; Mon, 3 Jul 2023 16:00:35 +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.25 via Frontend Transport; Mon, 3 Jul 2023 16:00:35 +0800 From: To: Sebastian Reichel , Krzysztof Kozlowski , Conor Dooley CC: Rob Herring , ChiYuan Huang , Allen Chiang , "open list:POWER SUPPLY CLASS/SUBSYSTEM and DRIVERS" , open list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Subject: [PATCH RESEND v4 1/3] dt-bindings: power: supply: Add Richtek RT9759 smart cap divider charger Date: Mon, 3 Jul 2023 16:00:27 +0800 Message-ID: <1688371229-1089-2-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1688371229-1089-1-git-send-email-cy_huang@richtek.com> References: <1688371229-1089-1-git-send-email-cy_huang@richtek.com> 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,T_SCC_BODY_TEXT_LINE 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 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 000000000000..04fc6b0d3ba0 --- /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>; + }; + }; -- 2.40.1