Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1250980lfc; Wed, 1 Jun 2022 13:06:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxcE7VDFZ7lTEIQpZnoKYu8wQvnwG3KQPBmEltUtchcRvtOay17n7OYP37YRAXH1TO9g+S X-Received: by 2002:a17:902:7b83:b0:162:2486:7837 with SMTP id w3-20020a1709027b8300b0016224867837mr1146493pll.21.1654113969631; Wed, 01 Jun 2022 13:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113969; cv=none; d=google.com; s=arc-20160816; b=bIcilAQmwpiAPYD4B416VeXc2uSenV/Ofox45HeobL59R83T0/JxMWIDb4louZnWPb OIKUhXrKnjFzkWiBFqoAq3440KOIW0jo6GCAyeE8Dl9VFdHNyzbUNxWDZ3AFSgjjM42E TT/614adl6X7ZPV7onCavd8OHXz8uQc46k0zxqah0fWYM9Yk8NVoyt3a+4idNlR/x5sL nBpvjL7jpny+wHzCB4gX4OHruMb62WhleGY13iMm4OoO4CiTBN+F/rpcRHBv1FanJ8AR +vfP8Px7ELKLub9XB+rsyzeY0cSzFlnl9mpYjneB9uXkVqUsMKvmk1blB+pBamma/4Le k6RA== 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=0sCP0jkvIeE07R1+RmlM9MygA92ez6zp1dtKYb5AvDE=; b=JpJ7LDALJFVYzHQhPbHdT4HCzj2lpc/u699fcQvbK3gMYn/5MVhjEVg5osmGfPTpc6 SbpxA31luu+tfMtT/sEixgikDh8+Hxbx5JunRcLITYQ9qHdMuHXROrf4g+4dSNDSsdP3 OK4VElAO8IfnRrRbRwR+H2R6nPv6xynLdzDm6Wb8ZQIxminsvxT9+D1fymlKHi9mlzP8 sr09U0KWyacxbZh2+TUPlzs1ZngyDw6NSL6JywVJwuKC6D56s34p/kYgake7u/XvzASb YA5CgCQOHsrNYRdzJxpE2qlaF5h5/7xdQNJnwdXmBovkku35EaoJakZbaDlvNTnU9Fvq 9CaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nXmORH65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t4-20020a63b244000000b003fa1e2de690si3290360pgo.441.2022.06.01.13.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:06:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nXmORH65; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 074D9227CFD; Wed, 1 Jun 2022 12:22:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238338AbiEaNIp (ORCPT + 99 others); Tue, 31 May 2022 09:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231451AbiEaNIl (ORCPT ); Tue, 31 May 2022 09:08:41 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40A4757158; Tue, 31 May 2022 06:08:40 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id 67so13525104vsh.2; Tue, 31 May 2022 06:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0sCP0jkvIeE07R1+RmlM9MygA92ez6zp1dtKYb5AvDE=; b=nXmORH65SpUjbhTvE2/X4vleVvzj6HP+vuXT2wdUKKV3uYzPcGvjjNbaiQXbwG8qzK uPv/BkQ+TkqS/c/pTyH3MEcmQTjImLnIAQwYIywCz9eE2DXVRcjWE2BFU0DaPWbtLi/6 JIvwS/TtGLCo09S6g+UL6qkaUK2oeoCMkdiukx7QIlym1KreWmFGviLxAhPsUcZHmlSM OSkgJCSvXdBwmw4Gici4yb0fk/qD+ZeAOnsOxdBN99m27wOxY2bmru3yqNJ3C7pNDS41 mUuOOYgxXC4RL+LYjsYCmgj2KzDBSJcjDqVJDm+H+8YT3Rf9D+evD4SgQIcZFSpWOpWa kFAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0sCP0jkvIeE07R1+RmlM9MygA92ez6zp1dtKYb5AvDE=; b=gIE8T/4cc/fzHJr84j0g+Vp91Jia1A4vhVIoG66D7tqU+yLt58Y+aCy1vlyZ4eRUMb 3uKMKG0NutKwIlwBjZVonRoKgzBpk4Pyl3Gf8iRpl6HRpRw5fqzQsKpuymtQQ/7LfPJ7 CUvvtBmkarqVkhCA30VXCu18WbJxFtJ+UoVevayrjWxiGHq3fos9eKdSOlAQ5pouwas1 eDlhIDPwvX6RxqbGzRBC08dfLjjU7wWQ1YdvnfaTVpvILz2wMyMFYUhNBLcFnw99ofby mA2lI35Igge6bQCeDuWTNxXwrlbTHRXoftG+kDUlFr7NUEm5+6vvDGXR419YffhHUFU9 UzeQ== X-Gm-Message-State: AOAM532QGd37gNDIVzvVpXC4wFt8O524l7Slk9GxNC1Qt/qg7+rANg/r IhDlOrxOEFyfcIof1Ulyy6/LikhW8LQ= X-Received: by 2002:a17:902:e5c4:b0:163:4c5e:5b39 with SMTP id u4-20020a170902e5c400b001634c5e5b39mr33395049plf.69.1653995961377; Tue, 31 May 2022 04:19:21 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-72-220-172.emome-ip.hinet.net. [42.72.220.172]) by smtp.gmail.com with ESMTPSA id cm24-20020a056a00339800b00518142f8c37sm10751608pfb.171.2022.05.31.04.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 04:19:21 -0700 (PDT) From: ChiaEn Wu To: lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, sre@kernel.org, chunfeng.yun@mediatek.com, gregkh@linuxfoundation.org, jic23@kernel.org, lars@metafoo.de, lgirdwood@gmail.com, broonie@kernel.org, linux@roeck-us.net, heikki.krogerus@linux.intel.com, deller@gmx.de Cc: cy_huang@richtek.com, alice_chen@richtek.com, chiaen_wu@richtek.com, peterwu.pub@gmail.com, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: [RESEND 02/14] dt-bindings: power: supply: Add Mediatek MT6370 Charger binding Date: Tue, 31 May 2022 19:18:48 +0800 Message-Id: <20220531111900.19422-3-peterwu.pub@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220531111900.19422-1-peterwu.pub@gmail.com> References: <20220531111900.19422-1-peterwu.pub@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Mediatek MT6370 Charger binding documentation. Signed-off-by: ChiaEn Wu --- .../power/supply/mediatek,mt6370-charger.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml diff --git a/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml new file mode 100644 index 000000000000..9d5c4487ca9c --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/mediatek,mt6370-charger.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek MT6370 Battery Charger + +maintainers: + - ChiaEn Wu + +description: | + This module is part of the MT6370 MFD device. + Provides Battery Charger, Boost for OTG devices and BC1.2 detection. + +properties: + compatible: + const: mediatek,mt6370-charger + + interrupts: + description: | + Specify what irqs are needed to be handled by MT6370 Charger driver. IRQ + "MT6370_IRQ_CHG_MIVR", "MT6370_IRQ_ATTACH" and "MT6370_IRQ_OVPCTRL_UVP_D" + are required. + items: + - description: BC1.2 done irq for mt6370 charger + - description: usb plug in irq for mt6370 charger + - description: mivr irq for mt6370 charger + + interrupt-names: + items: + - const: attach_i + - const: uvp_d_evt + - const: mivr + + io-channels: + description: | + Use ADC channel to read vbus, ibus, ibat, etc., info. Ibus ADC channel + is required. + + usb-otg-vbus: + type: object + description: OTG boost regulator. + $ref: /schemas/regulator/regulator.yaml# + + properties: + enable-gpio: + maxItems: 1 + description: | + Specify a valid 'enable' gpio for the regulator and it's optional + +required: + - compatible + - interrupts + - interrupt-names + - io-channels + +additionalProperties: false + +... -- 2.25.1