Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp516651imi; Fri, 22 Jul 2022 04:07:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjDPqaoPdzqak8T7mSqsB6Ie/YbpyG7WQ+0pKFrlekVO6KUuV6VIpv5OQGOhcHNc4qR1KV X-Received: by 2002:a05:6870:a113:b0:10d:a65f:c518 with SMTP id m19-20020a056870a11300b0010da65fc518mr2921469oae.259.1658488064548; Fri, 22 Jul 2022 04:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658488064; cv=none; d=google.com; s=arc-20160816; b=pgnAp8M4BHiyER/9mvCWSEVFtdBVyLJVb5NQBieg3eE+ThwQjYCipcHZzRx98xYnfJ qo2rVAkJLIDPo3SsJt3Ltfi3fSK2Q4WEvyM/SL9VuicIk2Oj9PSEJJPcXobhL4/ma4oL 1KQc3yd32HyGGoMSeeMF6ffN9DkaM2Gma9BldfTH71jFyIBidKppP0bxsSeMM98OHIOa fbwnVdA0yQtz5bPZOX+7bgqiugoel/nbtliu+o9mjZM8qjRfJ9MCJwSMA8xQzSWimTdK YP9kvmIIXlziAJaWNtOJDlQ4b8O8b75HZecZ0Tf3Q8zBLVDFKujL7eHdEPmR1Zsy5Bu+ ON4Q== 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=RtO+yg7Wi4JSj3ZmHONhdPt1sUn6ZtFJMnIAL1+O4g0=; b=OyWv26CeyrS61LJ6xytVaAeeWehYlL5oI1X0XUhb7QBLufk0coIC1Jfjik/oAXq90b gnmG5IcGqqQteiMBFCoSZSKMjoe1VbEjr+z/HjboFhZUampw5viFRqEiOuJ+ISzTF0UK il7j0yrJx0AcWzibaKXhDl2JH8JG1zX2ql9wDcxQaDnTnBpEZlb2oLs92wZogu4UMsoN /u8v/tssIwiwKAuGquhyk58BtAstzYUvbEM4wzYV6kwQPuGpDUZCXeaJ1lStYjeXnGEk vXn4no8ANN65JQXdIipzHqiL0yRVNDbQRscb9D8ffZfPwj6fFXNBidh/P0GxDEXtiZzC Wnsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RHIiCRck; 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 v18-20020a544492000000b00339b5662d00si3571946oiv.304.2022.07.22.04.07.19; Fri, 22 Jul 2022 04:07:44 -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=RHIiCRck; 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 S234615AbiGVKYm (ORCPT + 99 others); Fri, 22 Jul 2022 06:24:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234877AbiGVKYh (ORCPT ); Fri, 22 Jul 2022 06:24:37 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA1169B568; Fri, 22 Jul 2022 03:24:33 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id p6-20020a17090a680600b001f2267a1c84so6085660pjj.5; Fri, 22 Jul 2022 03:24:33 -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=RtO+yg7Wi4JSj3ZmHONhdPt1sUn6ZtFJMnIAL1+O4g0=; b=RHIiCRckYLOdkQbFijV5TwJ9JkCT2iLtElC1/a7Ijn0EbTcs5cPyIwdyjAgQDwUTEF zFRIONO5TObNSmWVfRcOwl364worgbGGP2LTwZ2MKQ/K2vezmTmJTIQXJQrTDZbsTdhD 8SlQOs/LpenC2QSfyWJ8Z4bZThS0YcGD5tQFnxe5KapcykzqeZeEtJKdnwgTwmNy5b/i uU7w4+WQYtWu+JyARmXo02h0QzSEIOdFcgDYgJRft8HqQYpNIM0bW8yI7vLY9SEnbroJ VrIcV0Ad+1nnIjV+5dXTtufhbRHGa1qrui5JYFYPS4hIlSTg+crY6KH1lt68G0890zvT ZSyw== 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=RtO+yg7Wi4JSj3ZmHONhdPt1sUn6ZtFJMnIAL1+O4g0=; b=pOHQXUnfzthsjDN1MsQv7O5o45Kz8ePcIIzr5Dmrz1FvbMxJuEr3GlqAcnJFntDRQa 1urnQqcKu/CTTm3AWU15m+2RndKqd3/Wv2DmTFqzXczQ80HWjMj+sY4EL1mPF95lURn7 hTOEQUEY9yFllwZCbyEGW1MTBMMYKPchPpjvHVcbyNytJcNZCrbqMcBi7FOed0gxQAQg YfUx1j5Bu8uZebNU6Rl8/zrH7/KMKVtI5wYXBPPWe5Vj8mgY1UVJagmZWeZzMrHLkno3 6NNQvTGVuXGvMkYMc/w0BuwJs8hRAi02h//ABjzoVEc25KWvoz6VdJ1G7kbJaSjjYulo bqzQ== X-Gm-Message-State: AJIora8aYldBb39lDA6N0jBJjUTHrBV7iHirNOlXI4pHxvtO6U6RRvSV O07nXIsn9PrP0tTYtPugSGo= X-Received: by 2002:a17:90a:db0b:b0:1f2:25c3:9faf with SMTP id g11-20020a17090adb0b00b001f225c39fafmr11750553pjv.105.1658485473094; Fri, 22 Jul 2022 03:24:33 -0700 (PDT) Received: from RD-3580-24288.rt.l (42-73-82-239.emome-ip.hinet.net. [42.73.82.239]) by smtp.gmail.com with ESMTPSA id h189-20020a6283c6000000b00528d620eb58sm3614551pfe.17.2022.07.22.03.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 03:24:32 -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, andy.shevchenko@gmail.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: [PATCH v6 02/13] dt-bindings: power: supply: Add MediaTek MT6370 Charger Date: Fri, 22 Jul 2022 18:23:56 +0800 Message-Id: <20220722102407.2205-3-peterwu.pub@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220722102407.2205-1-peterwu.pub@gmail.com> References: <20220722102407.2205-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 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. Signed-off-by: ChiaEn Wu Reviewed-by: Krzysztof Kozlowski --- .../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