Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4088763rwb; Tue, 6 Sep 2022 02:15:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7VKCzL5GMLqHDf5/Cle/AdFEhv/Dqx89/esnvrcSokcFvIdig0ce5AbiwFE0LuNawUDQJ6 X-Received: by 2002:a17:906:cc0c:b0:73d:d6ce:5d6b with SMTP id ml12-20020a170906cc0c00b0073dd6ce5d6bmr38770224ejb.24.1662455756259; Tue, 06 Sep 2022 02:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662455756; cv=none; d=google.com; s=arc-20160816; b=c5siZ7qB5taVEfxMtwCbejfqQcHR5K5B4nhioWziLgulKHbLQSvFhZ8GaWU5k83W3H KAUGMVtAbIGfB6AIwR02XW204pJPgZUfuEXUDjDSLRBUZiL06HXNbQU+vzmHOmeJt4Sm mWDVqGWiMTDwuE+eXDCmIJnA2pytn3tqIhnbeL963LO+YOEwptFAbHDk8tvxW1YQVWna D+BK9BwO58n/Ph8qjdyPDadmfJoFvFQ/stARn3IWJIimNbaxJeJ5PAMDuopRLl+oO5xl ddvK1e69Skfxdvd7MQUGVF+q7S4fik31QXWbEpBpFdv85Q74V9T3C2h0YAU0/50vVko/ qEOw== 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=pmhuNMasJsnu7yKY0wuXEG96SXA8koMOiIgc3LgLhpU=; b=czpcT1hG6qymV/fsZaNaUxITPWLZgdMfb6KexQzOHFXoEUobjQT5bmxy9v9A6ZNt+Y mw/iVD1WmYd/Maa18MlBpB66VKGN43LEG22Qlpt/mSGCBGfOEXG0Wa7gvyxxVzSo7R5o GNw3wIFKG2hPmywmeQRhrp/wl3nRPZPkNU6YEKJmyRZ25VOHdk2m+D6XB4mQyfOXww91 W+qrCUCwsXp/CiwX8eYnTcq+P03viG4kfA16EM90LrNMtKSAOoc5Df6URQrJug1dFqOy v1GbqnmPbxTwln1+QBHdjj+CU3/OJokbrd3vh5oQOV7l5ACHSHMt4RWxGFksI1XnaLdV 79+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QH4QxyHj; 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 z13-20020a056402274d00b00447ebf62410si9546520edd.2.2022.09.06.02.15.30; Tue, 06 Sep 2022 02:15:56 -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=QH4QxyHj; 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 S239431AbiIFIkL (ORCPT + 99 others); Tue, 6 Sep 2022 04:40:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239188AbiIFIiL (ORCPT ); Tue, 6 Sep 2022 04:38:11 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF64F792CC; Tue, 6 Sep 2022 01:36:16 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id x23so10601930pll.7; Tue, 06 Sep 2022 01:36:16 -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; bh=pmhuNMasJsnu7yKY0wuXEG96SXA8koMOiIgc3LgLhpU=; b=QH4QxyHjiamJFT6P+kyrdG7hQuSZFo2jjJEAUzSmIQllYsrL22B4Rt84EopEjlpFTN t8MzfBYkJ81JZaQv9NP80EOsnyaplYz9GOn7Ea8RKTpNLtFWLUnOhJN4518+YidIXSHy xIac6dJQGaSDScA8yAngeYOGmt5Et8H47B7tzmjFH9OzY6d82UzpO8I3Ih7mG92er4YO IXWWCLLTTsrIFoEEJ6bZNJhXAphFTmTr+UsLOzZebCBdQK9SbMLZ7kxSaN3aMSD5MIP3 fYyik3VoGfGkkbHGcYUyJl+y00HoB462tsYrErH/iRxf9bZ6dJmbeCAErO6YVUg0icLJ WbIw== 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; bh=pmhuNMasJsnu7yKY0wuXEG96SXA8koMOiIgc3LgLhpU=; b=YnOdQYZpCsTOgQdxuuXA94VeTJzyI1a+t//mSHw8kOmwCXhY/rzm1zIQCpIebF8YUQ kJaLaNPL9yiqcixG8yeMOyfo/cCQRrJpkdcTDDLwNIVt4tmPzjC9vP8E1CJiStYZXrN9 v4FL+DMvc1ILbqitd9687mwdUFIS3TtrAq1V6e3/Kvh1SBz7Ew3a87VNUTIlJaPJQWZk 1k8D9M5vFoREYZkLWiCgTcMOjHu641HeOBwQPRRdqH8FKtKm8yV4G1wh2Jy9FLWsOhoa AEOi/W3OIZNkcWbsWC8zGnspwObzFryQ/nl8TgKJuFazfbg/ZRbyLk7UtD4v0g4y7SDy /v6Q== X-Gm-Message-State: ACgBeo3lQqetEibiC7Owy9U0tNvezMjCkSZgpIobl2Bg+caTx4dutM5V 6LLlDSfQ3+Ugi3H+yT+H/tg= X-Received: by 2002:a17:902:dac2:b0:172:5f2a:f30 with SMTP id q2-20020a170902dac200b001725f2a0f30mr51502535plx.167.1662453374852; Tue, 06 Sep 2022 01:36:14 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-73-80-193.emome-ip.hinet.net. [42.73.80.193]) by smtp.gmail.com with ESMTPSA id w12-20020aa79a0c000000b005363bc65bafsm9474506pfj.57.2022.09.06.01.36.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 01:36:14 -0700 (PDT) From: ChiaEn Wu To: pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, sre@kernel.org, jic23@kernel.org, lars@metafoo.de, broonie@kernel.org, mazziesaccount@gmail.com Cc: chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@richtek.com, 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-iio@vger.kernel.org, szunichen@gmail.com, Krzysztof Kozlowski Subject: [PATCH v10 1/8] dt-bindings: power: supply: Add MediaTek MT6370 Charger Date: Tue, 6 Sep 2022 16:33:57 +0800 Message-Id: <3184e9e5f59edf41788bb95e2ad496772dc70a4a.1662476695.git.chiaen_wu@richtek.com> 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,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: ChiaEn Wu Add MediaTek MT6370 Charger binding documentation. Reviewed-by: Krzysztof Kozlowski Signed-off-by: ChiaEn Wu --- .../power/supply/mediatek,mt6370-charger.yaml | 88 ++++++++++++++++++++++ 1 file changed, 88 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 0000000..bd09a0a --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml @@ -0,0 +1,88 @@ +# 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 + - description: usb plug in irq + - description: mivr irq + + 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. + minItems: 1 + items: + - description: | + VBUS voltage with lower accuracy (+-75mV) but higher measure + range (1~22V) + - description: | + VBUS voltage with higher accuracy (+-30mV) but lower measure + range (1~9.76V) + - description: the main system input voltage + - description: battery voltage + - description: battery temperature-sense input voltage + - description: IBUS current (required) + - description: battery current + - description: | + regulated output voltage to supply for the PWM low-side gate driver + and the bootstrap capacitor + - description: IC junction temperature + + io-channel-names: + minItems: 1 + items: + - const: vbusdiv5 + - const: vbusdiv2 + - const: vsys + - const: vbat + - const: ts_bat + - const: ibus + - const: ibat + - const: chg_vddp + - const: temp_jc + + usb-otg-vbus-regulator: + type: object + description: OTG boost regulator. + unevaluatedProperties: false + $ref: /schemas/regulator/regulator.yaml# + + properties: + enable-gpios: + maxItems: 1 + +required: + - compatible + - interrupts + - interrupt-names + - io-channels + +additionalProperties: false + +... -- 2.7.4