Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2455526rwl; Sun, 26 Mar 2023 23:50:01 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKDzMjtRFXBSPeBiSZZ+PxsLteivhhO9QPsjcYka7EdfMmhp8xyarFd5sl7RMz7EkcHXvz X-Received: by 2002:a62:7bce:0:b0:625:e051:e462 with SMTP id w197-20020a627bce000000b00625e051e462mr10611891pfc.15.1679899801380; Sun, 26 Mar 2023 23:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679899801; cv=none; d=google.com; s=arc-20160816; b=CCePxhifH2ZX11AK3Jl3L3qbHDlRP4Z0HvZP52nCI0EOPyvZu6b/kEhn5pFMLCL4wf B3Q3ulRRnAhLH568v8TcnGIMQrlzwxbACW45PwQE4wwQ8kFSrWPqM/KsATwwZx/tONDw xI2GDh0T1aWtlRcTLnanvz5C9VqH/+HrhgJ6SCEJAMPXPzK78unu/hGDpSVdYcrjr5aO iI1eWl61ILGDudQ96FynUlxOPM44W4ZAtcuKnwF0JsjJpCbQ+ADdEEMDslxq+Zkcgwkn Jinm8ji1baQcnqZrNYe80EOyyyj+QDrTJgEH0jDyQWrM0sYC648cv9caqARYmf+eH/sm uFvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=E/ngDTt5aCg40IDNs/Dqzl+Za1sBAk0Bmsl9Kzd3f5k=; b=g5bpMOy3fURwpQtWIMcnxaqVYXHbqaeO88VsSAegdm+D2pVL+It99aCuHTOrOXzlk6 /ychR7iMj4QcSRzhpCRTUFQ8eh8VrdspMJJdL4T0iPKAPYhWvyrol9XkcSC+PWJCfwZ3 6+mDKAQ3QihSep3ggaBQhrdzGxTMuUd80dsl8RyxQk4RXRc/wJWRk4AywrcoGOoqY46f 2WiUSYVKIgBf1LSjoxqIvdC4GXiAcSO4SS9zYzdgl1PG3QXuQ/E9cpo9jZB+dsA3vd1k 1Y9p3wWFoF/Gj2oOmqCSbL3vE7Eu26JuaYxg0jjvWB4M7lQQFsBmP4fjRR/yzPIp03a3 mrGg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z11-20020a63e54b000000b00508aefbec7asi22070952pgj.300.2023.03.26.23.49.49; Sun, 26 Mar 2023 23:50:01 -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; 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 S232336AbjC0Gqk (ORCPT + 99 others); Mon, 27 Mar 2023 02:46:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232037AbjC0Gqf (ORCPT ); Mon, 27 Mar 2023 02:46:35 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 960EB469E; Sun, 26 Mar 2023 23:46:30 -0700 (PDT) X-MailGates: (flag:4,DYNAMIC,BADHELO,RELAY,NOHOST:PASS)(compute_score:DE LIVER,40,3) Received: from 192.168.10.47 by mg.richtek.com with MailGates ESMTP Server V5.0(26696:0:AUTH_RELAY) (envelope-from ); Mon, 27 Mar 2023 14:46:13 +0800 (CST) Received: from ex4.rt.l (192.168.10.47) by ex4.rt.l (192.168.10.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Mon, 27 Mar 2023 14:46:13 +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.25 via Frontend Transport; Mon, 27 Mar 2023 14:46:13 +0800 From: To: , , CC: , , , , Subject: [PATCH 1/2] dt-bindings: regulator: Add Richtek RT4803 Date: Mon, 27 Mar 2023 14:46:11 +0800 Message-ID: <1679899572-16182-1-git-send-email-cy_huang@richtek.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: ChiYuan Huang Add the binding document for Richtek RT4803. Signed-off-by: ChiYuan Huang --- .../bindings/regulator/richtek,rt4803.yaml | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt4803.yaml diff --git a/Documentation/devicetree/bindings/regulator/richtek,rt4803.yaml b/Documentation/devicetree/bindings/regulator/richtek,rt4803.yaml new file mode 100644 index 00000000..6ceba02 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/richtek,rt4803.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/richtek,rt4803.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RT4803 Boost Regulator + +maintainers: + - ChiYuan Huang + +description: | + RT4803 is a boost regulator that's designed to provide the minimum output + voltage, even if the input voltage is lower than the required voltage. It + supports boost and auto bypass mode that depends on the difference between the + input and output voltage. If the input is lower than the output, mode will + transform to boost mode. Otherwise, turn on bypass switch to enter bypass mode. + + Datasheet is available at + https://www.richtek.com/assets/product_file/RT4803/DS4803-03.pdf + https://www.richtek.com/assets/product_file/RT4803A/DS4803A-06.pdf + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + enum: + - richtek,rt4803 + + reg: + maxItems: 1 + + richtek,vsel-active-high: + type: boolean + description: Specify the VSEL register group is using when system is active + + regulator-allowed-modes: + description: | + Available operating mode + 1: Auto PFM/PWM + 2: Force PWM + items: + enum: [1, 2] + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@75 { + compatible = "richtek,rt4803"; + reg = <0x75>; + richtek,vsel-active-high; + regulator-name = "rt4803-regulator"; + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <4400000>; + regulator-allowed-modes = <1 2>; + regulator-always-on; + }; + }; -- 2.7.4