Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5178527rwl; Tue, 28 Mar 2023 17:58:25 -0700 (PDT) X-Google-Smtp-Source: AKy350bd+IT4k3T84uh0GlQMaQVY1664tleu4xZJcyBoSt8lwdhamruCbNfBHL5HsKoRIn32nIqM X-Received: by 2002:aa7:9696:0:b0:627:fae5:b3d0 with SMTP id f22-20020aa79696000000b00627fae5b3d0mr16027687pfk.24.1680051505436; Tue, 28 Mar 2023 17:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680051505; cv=none; d=google.com; s=arc-20160816; b=M8qrDYOL4o3R29v9VrlRHyGUCUDYFbsLjhTpQYHWkFEcsdtmYUtddNmMrPuk86poxT KW3m+N2HaDd96yjVJt0gg+ecbkxMZDuwnzQHRykvYLzAp+VrSu1bzGtUSxjYOzgiqlhs +S0o+grkCNFXxeyhkN/6x/8ALSJ4HdW9rPxzooGYc/zCLiAmw4WZCnXba3HM4dskb60h Y/mNqCSDaURoM+X2FD10xpXgC50iXjeUmN5BskDQstdVJ4A1apdrJ3KvwVhGQGSmGV0A 2rs6UveVO3Ewao3ZVKh9vuJmaK9qhekUEzlGw48SQsfKWKXxgiToCJ4yxa9Kt7ymnI8O qQKQ== 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=mFVplKN3TlNshGWojE482FdqvDHsloDvZyMwC+qLk6A=; b=BVWAZW7wqG6t+Xhc8avn9pdIFelUa0vuFurtgDAtt9tdcvLAbztynRihFU3SJY68TT niFlVGYMjP6nqYy8QhA0ZwUZ7WoHOjL2qJvitIfgtMBa57N/YreMbO3dtmdaie3QNVSL 4c8MU0IC2zs657/iWFI8zt8u2a5JaOZjXHe28elAOW30XWUPt5J0casPoQPZqptEdBgr AGUskUSS4howLXv1w+opvFNU2kruYZmjW0TyflHpGxmHVGUcRwARzBam/DqlbaagK589 N9pVw1aOk7WrEb3QboJ4Lbe37bRYAjD7hAksVkeUI9GtC6QiPeAGGW9iecZ4fOisst7l ZYtw== 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 o17-20020a056a00215100b00627f017391csi24223143pfk.273.2023.03.28.17.58.08; Tue, 28 Mar 2023 17:58:25 -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 S229754AbjC2An7 (ORCPT + 99 others); Tue, 28 Mar 2023 20:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjC2Anz (ORCPT ); Tue, 28 Mar 2023 20:43:55 -0400 Received: from mg.richtek.com (mg.richtek.com [220.130.44.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 83B0B2109; Tue, 28 Mar 2023 17:43:49 -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(26679:0:AUTH_RELAY) (envelope-from ); Wed, 29 Mar 2023 08:43:28 +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; Wed, 29 Mar 2023 08:43: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.25 via Frontend Transport; Wed, 29 Mar 2023 08:43:27 +0800 From: To: , , CC: , , , , Subject: [PATCH v2 1/2] regulator: dt-bindings: Add Richtek RT4803 Date: Wed, 29 Mar 2023 08:43:25 +0800 Message-ID: <1680050606-461-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 Reviewed-by: Krzysztof Kozlowski --- Since v2 - Subject prefix change to 'regulator: dt-bindings: .....' - Add Reviewed-by tag. --- .../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