From patchwork Fri Feb 17 08:06:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiaEn Wu X-Patchwork-Id: 58405 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp761979wrn; Fri, 17 Feb 2023 00:11:27 -0800 (PST) X-Google-Smtp-Source: AK7set84GsfnowO/ZqgIdLTwfKmprw7QSEIFDvUv9FqagGHofQ5GvcJWcRZZpCRgCz90gTyOBXK/ X-Received: by 2002:a17:907:7e8f:b0:8b1:7274:1a72 with SMTP id qb15-20020a1709077e8f00b008b172741a72mr3898033ejc.6.1676621487093; Fri, 17 Feb 2023 00:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676621487; cv=none; d=google.com; s=arc-20160816; b=mojjo5pKJIlDyOzUmLD/yfjmiPnKfOoAMnSjgLItBiwsJfFV9UuX0rnjLTIzAu2uiO tlnbrv5TQ50Vkk33/3ocEm2O2sNRWeId5sPpKAz1Oo92sfcbOf79MqjZ3dd7LKT2IvqM pOOS94IfZv+uzB0mumkk9h9TS7KJv0lnmqB35dUq403GhrjETQ+BgLqEy2mscgGEa2Iu Trl+zFy/wsZ4vjt3oRkDNSxT5H97+B3hHXGAMp+LQaOqhfefMRe491j5nwKnmIZFX5bX l5DaA6fddw71MKvDXNrmM1F1W8Y7Y/fYuxP9bB4h7UIwmZ68YMIVeyeEszU+bHsZb2dj klKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=YXxNDRfbLXxkLgGl5wE8/v6m4gUJO8JGim3xKKQq01o=; b=rEmV8VJSFUEvoX1U0r9yGn1++ByWnAA997OQ6dH9jzeG4b++4NrRFxmimrQ6hc4Z8l sdA0EsY4/9LSpNi6Q+bUJfGCEy+x2cH5tV7kHXhieJ3Q1ShkZmrWAIAvWiSJBwTEcfvL mJTLO1Edyl/4tRKeb5OygjzzHOcEFqHb/tJMjH7oVTlbS5opyqNA393YFu77vQsyiiBK MKgYu2y//b0OnEldImS4jsI6u0sZNwv7L0Zn8C9/ICCQXxmP/0pHRYT2IkpR3m1qol7c FlNXBt1ywpTdFcP9bn1tUOTY+SrhY1xeBL1Yu29Yge9dO3T49mRC6v1NeHYGnQBfBJ5b ZDWw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vl5-20020a17090730c500b008b14692192bsi3530489ejb.157.2023.02.17.00.11.03; Fri, 17 Feb 2023 00:11:26 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbjBQIHH (ORCPT + 99 others); Fri, 17 Feb 2023 03:07:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjBQIGq (ORCPT ); Fri, 17 Feb 2023 03:06:46 -0500 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 645EC34F77; Fri, 17 Feb 2023 00:06:36 -0800 (PST) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.46 by mg.richtek.com with MailGates ESMTP Server V5.0(23462:0:AUTH_RELAY) (envelope-from ); Fri, 17 Feb 2023 16:06:28 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex3.rt.l (192.168.10.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Fri, 17 Feb 2023 16:06:27 +0800 Received: from linuxcarl2.richtek.com (192.168.10.154) by ex4.rt.l (192.168.10.45) with Microsoft SMTP Server id 15.2.1118.20 via Frontend Transport; Fri, 17 Feb 2023 16:06:27 +0800 From: ChiaEn Wu To: , , CC: , , , , , ChiaEn Wu Subject: [PATCH v3 2/2][next] dt-bindings: power: supply: Rename the file name of RT9467 charger yaml Date: Fri, 17 Feb 2023 16:06:06 +0800 Message-ID: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758065052329218902?= X-GMAIL-MSGID: =?utf-8?q?1758065052329218902?= Rename the file name from "richtek,rt9467-charger.yaml" to "richtek,rt9467.yaml" to match the "compatible name". Fixes: e1b4620fb503 ("dt-bindings: power: supply: Add Richtek RT9467 battery charger") Signed-off-by: ChiaEn Wu --- .../power/supply/richtek,rt9467-charger.yaml | 82 ---------------------- .../bindings/power/supply/richtek,rt9467.yaml | 82 ++++++++++++++++++++++ 2 files changed, 82 insertions(+), 82 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt9467.yaml diff --git a/Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml b/Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml deleted file mode 100644 index 3723717..00000000 --- a/Documentation/devicetree/bindings/power/supply/richtek,rt9467-charger.yaml +++ /dev/null @@ -1,82 +0,0 @@ -# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/power/supply/richtek,rt9467.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 - - 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"; - 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>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/power/supply/richtek,rt9467.yaml b/Documentation/devicetree/bindings/power/supply/richtek,rt9467.yaml new file mode 100644 index 00000000..3723717 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/richtek,rt9467.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.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 + + 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"; + 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>; + }; + }; + };