Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2268561rwb; Mon, 15 Aug 2022 02:04:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR7SZ8VsNhVlGdluTqRsaYtsVqS2tS4Rcw112A4/b1fvOpyKjtPn9CtIvVaUMmWidXNDrGA0 X-Received: by 2002:a05:6402:348f:b0:43d:e568:97bd with SMTP id v15-20020a056402348f00b0043de56897bdmr13543360edc.279.1660554277628; Mon, 15 Aug 2022 02:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660554277; cv=none; d=google.com; s=arc-20160816; b=XeSTErXHZJDquvEfZUb47HqR/byb9CEyzWWNm2xkC71oLMCbVDi7qFuary8SFT5Eva kQ5rpNKd2ZCy8sTGjMMFVUDuSoySCf9Xi5pKLxKleNE2aZZvh/AjoEQA9mEXggZrhWb0 L3ron4yM40SoraWuOVLlAfU7cCyxc6Z9XbN/W+MhfR7k3snTVZV+Zm0imCDQ4K8CUlQ/ DNIqknhbEDXU3a2DmQQ57J+dZ12ZfI8+YAJj/J0DaiqS+yeN1iM/MEU1CgjQz9IWQGVl RYnE/BhdW68qOo00iIlXZLipmoG1jFT251ZSwehP5P8bZ9d8CCPXgN7s2ZO+RxLLmoGA PW+w== 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=VlsK9VG8JeEKnHO9SgYwlWP8w/10katNg0OpeVoez20=; b=YAMGnQg36t5vkKCkf169QixUd1h6rGeDrkQU8vlY9g98Bjt4bqD9s4g8GRloVT4NkK 2K9UdWY8PyMOuw154+QhcC7ZSN5dpZuWP+FBR7wTjsqBP4Q7JW3ChVxj6YDxi/3yphIf yy1/tz2k9vS1wgV3QFw9EzQ1JNbqMtynEFHQIisUFg8sbn1Lxusf9G3f6a+cjMpeYAR+ gql75lbuh+2k0TRHQESxwOyu4P9ah+8S4aVMVht2zhyXw8v/tSXrTTVov93oXwAD8L4a uHaQgdMrFGbCya7Nwr3Owu8YMVy94aUhJ7JsOIZ6OX5Et65eSPq1aBOxt6k1SxX4ae6B IKCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NgYJIcAw; 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 q6-20020a056402518600b0043c2919cfd3si8776878edd.602.2022.08.15.02.04.09; Mon, 15 Aug 2022 02:04:37 -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=NgYJIcAw; 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 S241337AbiHOJCK (ORCPT + 99 others); Mon, 15 Aug 2022 05:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbiHOJCH (ORCPT ); Mon, 15 Aug 2022 05:02:07 -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 AB0CA21256; Mon, 15 Aug 2022 02:02:03 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id gp7so6433867pjb.4; Mon, 15 Aug 2022 02:02:03 -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; bh=VlsK9VG8JeEKnHO9SgYwlWP8w/10katNg0OpeVoez20=; b=NgYJIcAw4FudOOCMawiEuWZxFqtHcLtD3vTuACefn24x36dvXnEnGU6YsCMCZvznCH GLnntUk5VBxLiuWZNQmCAQyt5g/+GUNl7Gg7QUfvoJYiKcjEIkE4NZ/HaHzEM5ZA6Rh7 DB2pajACx2I2PC9eKEsEfJRUTh0ae/AbI/O5one0dz7Mlo7wD9GBUH7371sBJF6ycVdQ OLKzuVsUuzj4bPAl6vTEkpBDy2x5UqluXmQ0zBibFHrizhSq03QvCHeKtuYJHWIttK/O LlgA4Ir+dgbnvecus2ZyMi/UWJgT6z2XL2wncomrP65IuBsT9lR0oKS8BMzhv7GTE0jo D6jw== 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; bh=VlsK9VG8JeEKnHO9SgYwlWP8w/10katNg0OpeVoez20=; b=55rW8ttbqVT+v8pG0UbDAptrvtwFstm7WaPB9IyM8g89/n0n+PULnjkjlnA5EnKtAM YvLiwRG7sdhVd9XP80pX+Zsnp7S77/vLh41nCh7XKfOYBMmSUH4bSN1BsGdTyhG9fJOO Pz7gTAfPCyuAIqKBjHIsT9DY63geJOInQlOiiyxP0kOC4QNVwbX6RbhKMxEFFHNFvjdq 8/VkM/Jk3WwzsZ4ag8sOXUFmnAmC6T04wEAl94YZCwPOEO64uTaHSv4JZ+Lt62FgrjcP Wp0pa8aAwDHd4LisYdp5R09d9cv9laZmyQkbbNdnxkWOtMbkwm4S225EGMypiIp0ibRw ss0g== X-Gm-Message-State: ACgBeo0GJ3jc8ccucaFAVWx/SNQd4+X55IyAu/e0o6IZ0gxsLyNhEXKJ eYo/CfYEQZs2mTK5CDnpS7s= X-Received: by 2002:a17:902:d1d5:b0:16d:d21d:abb8 with SMTP id g21-20020a170902d1d500b0016dd21dabb8mr16263105plb.138.1660554123106; Mon, 15 Aug 2022 02:02:03 -0700 (PDT) Received: from DESKTOP-IBN2BAQ.localdomain ([123.110.155.185]) by smtp.gmail.com with ESMTPSA id a17-20020a656411000000b00412a708f38asm5491612pgv.35.2022.08.15.02.01.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Aug 2022 02:02:02 -0700 (PDT) From: ChiaEn Wu To: lee@kernel.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, linux@roeck-us.net, heikki.krogerus@linux.intel.com, deller@gmx.de, broonie@kernel.org, mazziesaccount@gmail.com, lgirdwood@gmail.com, andriy.shevchenko@linux.intel.com Cc: chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@richtek.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, szunichen@gmail.com, Krzysztof Kozlowski Subject: [RESEND PATCH v8 02/12] dt-bindings: power: supply: Add MediaTek MT6370 Charger Date: Mon, 15 Aug 2022 17:01:15 +0800 Message-Id: <20220815090125.27705-3-peterwu.pub@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220815090125.27705-1-peterwu.pub@gmail.com> References: <20220815090125.27705-1-peterwu.pub@gmail.com> 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 000000000000..bd09a0af7e65 --- /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.34.1