Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6630149rwi; Mon, 24 Oct 2022 04:13:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Fb/ebpocXGGRSr0fiAQ5Os0XzPAiUeXYggWU5gIk2f0Uz88nEH01tvM3NrP2iK41MlyCo X-Received: by 2002:a17:90b:3901:b0:20b:210d:d5d9 with SMTP id ob1-20020a17090b390100b0020b210dd5d9mr36452529pjb.83.1666610020592; Mon, 24 Oct 2022 04:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666610020; cv=none; d=google.com; s=arc-20160816; b=q1vIDs0lBYZMYzuimxzrUIIPoGxnnR9usqiThOYwszT2a+rWbUiLR96hkdmu91/sU/ IKWLs4pImjwcQow8B/VA2IobyoD1FeJFUkGeauhncipd5Yu43dKSAPtmZwA2K+xC9pyS AViMvGjcMN1hhw+i7AtnF6oFSITovc8c1Om9fWAzTMglFUbDqmYNLz2sZ6MF/6Fde4er 1N6BQTAmvhTXwLCC2SmCTgL6Ud2wMbyxqDswEGUIh+ZyoZTVaxXmzLzasjgG2h2xde1Q x2GlZqSp7AnsWTuBGLNkcuR0IbPG/OcHJ0ASQynNWXYxJ9AWjPVMxeWOpjenzwyqxph8 br8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gPbVTFyk3tltxSTq5T8PYk7djg+cSGB9qpQcQ22RTgU=; b=OT/0hbQLiVqSWqCW8gL2Jay/8SqHshjjWUVrBK3cUN467V9+DEa0Axjkg4+VrmkgZO mXGLVASUUn9Bc6DMN3QsXSOJVSe/BRxdsnYc6lROPXV85YSN5yk2AnOvVLcFhjpC4ijc 7WKDt4JbL7WCprnH5m6Uo8XPkgH/3RCg0FbYzKXaEpf1WQve/55Q5CQ+4X/UDjYkZyzy BmE6TlmVmg7P34osudyo6V4OVMErkg21dy/C7RyROoCeqhk1lyom6Xm/ivwOGaYneghs wyBqEB1ZaAf5HAMMTm4XVqo/SwaE7VymCJKhex1LPsWjFdefiUO0QezDFfxSLN0laUpN KW1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QJ1wMiI9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np15-20020a17090b4c4f00b0020a613f8c79si223363pjb.129.2022.10.24.04.13.28; Mon, 24 Oct 2022 04:13:40 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QJ1wMiI9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230119AbiJXK6D (ORCPT + 99 others); Mon, 24 Oct 2022 06:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230007AbiJXK50 (ORCPT ); Mon, 24 Oct 2022 06:57:26 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D78575BC94; Mon, 24 Oct 2022 03:57:07 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id m6-20020a17090a5a4600b00212f8dffec9so3145778pji.0; Mon, 24 Oct 2022 03:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gPbVTFyk3tltxSTq5T8PYk7djg+cSGB9qpQcQ22RTgU=; b=QJ1wMiI9PwI4ebe9DWp/6xTxEWbGJQ5wKGQfZWfCGkBqK59VL1EfCVNuY5uILd3Gda cVdls9CaxLzFVZDoj9kt5GS69OPz0GGAVK1WQ9miv86MgWZCwo79SZw7EX/gx5ookIFl 8Lb6Ei6NkmPq+z0Wdihqa1pX/8ZrmHuK/zc7JexSFjWescHvgLSCtUd6LsyZuoWonsZj CJAOKlTL5uXdYy9jcbXn4idVU6hfFR2jmclgaaqPBKD/y/Y+oi0wQT4XFPNMv7P+Npr/ kjH3nfj7LBgG3D2YsXsuogtsxyXVxmzAk9zeQsButy8FQ1U6cgdrv+zEaz/y/qB6/atL QATw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gPbVTFyk3tltxSTq5T8PYk7djg+cSGB9qpQcQ22RTgU=; b=W7BCtWO20gLpZFo+P80kyyAlWjLq1uKecdp7ZuRhOZlMOaLX4uhrV19dK+R8j6Roz4 /0XdTt3GX6sNWSVTY2MIxEX4mfL3n39dJlIJgizuqMywJqemDrVUo4RBjfR1EkiXeB9s HuCRPF/X3qtv6EQJji3fc+Dy31T7w7h/aLY/6ttk5ZsRVzRf5/+1odz8Fo1urKoVLddY h6Vwh2i+ozfe2KjfaQllXJJ5dZIYENMcLe1PXPkMAKQfVF1ifL02isxyfYno46NvyqL/ ZKbY998mxgiQcbQYxrn1sQUCCjHXSsVbjk/Qb/nzls4EmiAZYK+MsuYJP4WO3eEWeb96 JQvw== X-Gm-Message-State: ACrzQf1jOiAKbr9/r9X9feYStJvUN30IC+I+uoHlOSdubvgMFJ8yDNXk eL5+JbizAotcKQhKN7ljrUkSOPd/LNY= X-Received: by 2002:a17:90a:e593:b0:212:f0e8:46ca with SMTP id g19-20020a17090ae59300b00212f0e846camr10608970pjz.144.1666609015464; Mon, 24 Oct 2022 03:56:55 -0700 (PDT) Received: from RD-3580-24288.rt.l (111-82-141-7.emome-ip.hinet.net. [111.82.141.7]) by smtp.gmail.com with ESMTPSA id a15-20020a631a4f000000b0045751ef6423sm1366696pgm.87.2022.10.24.03.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 03:56:55 -0700 (PDT) From: ChiaEn Wu To: sre@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: chiaen_wu@richtek.com, cy_huang@richtek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v3 1/3] dt-bindings: power: supply: Add Richtek RT9467 battery charger Date: Mon, 24 Oct 2022 18:55:46 +0800 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 From: ChiaEn Wu Add bindings for the Richtek RT9467 battery charger. Reviewed-by: Krzysztof Kozlowski Co-developed-by: ChiYuan Huang Signed-off-by: ChiYuan Huang Signed-off-by: ChiaEn Wu --- v3 - Add 'Reviewed-by' tag --- .../power/supply/richtek,rt9467-charger.yaml | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml diff --git a/Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml b/Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml new file mode 100644 index 0000000..92c5706 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/richtek,rt9467-charger.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RT9467 Switching Battery Charger with Power Path Management + +maintainers: + - ChiYuan Huang + - ChiaEn Wu + +description: | + RT9467 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for + portable applications. It integrates a synchronous PWM controller, power + MOSFETs, input current sensing and regulation, high-accuracy voltage + regulation, and charge termination. The charge current is regulated through + integrated sensing resistors. + + The RT9467 also features USB On-The-Go (OTG) support. It also integrates + D+/D- pin for USB host/charging port detection. + + Datasheet is available at + https://www.richtek.com/assets/product_file/RT9467/DS9467-01.pdf + +properties: + compatible: + const: richtek,rt9467-charger + + reg: + maxItems: 1 + + wakeup-source: true + + interrupts: + maxItems: 1 + + charge-enable-gpios: + description: GPIO is used to turn on and off charging. + maxItems: 1 + + usb-otg-vbus-regulator: + type: object + description: OTG boost regulator. + unevaluatedProperties: false + $ref: /schemas/regulator/regulator.yaml# + + properties: + enable-gpios: true + +required: + - compatible + - reg + - wakeup-source + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + charger@5b { + compatible = "richtek,rt9467-charger"; + reg = <0x5b>; + wakeup-source; + interrupts-extended = <&gpio_intc 32 IRQ_TYPE_LEVEL_LOW>; + charge-enable-gpios = <&gpio26 1 GPIO_ACTIVE_LOW>; + + rt9467_otg_vbus: usb-otg-vbus-regulator { + regulator-name = "rt9467-usb-otg-vbus"; + regulator-min-microvolt = <4425000>; + regulator-max-microvolt = <5825000>; + regulator-min-microamp = <500000>; + regulator-max-microamp = <3000000>; + }; + }; + }; -- 2.7.4