From patchwork Mon Mar 27 06:46:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 75230 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1313748vqo; Sun, 26 Mar 2023 23:49:01 -0700 (PDT) X-Google-Smtp-Source: AKy350apoS3+ZP2mv1CI+64PSwokE7JTVgNGrk8QysxilUG70BpztDlfJstVTClDu6GupUDDknM2 X-Received: by 2002:aa7:da4e:0:b0:4fa:a1a1:9e14 with SMTP id w14-20020aa7da4e000000b004faa1a19e14mr10264708eds.30.1679899740867; Sun, 26 Mar 2023 23:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679899740; cv=none; d=google.com; s=arc-20160816; b=mydsHf5nvW+dsJv7pf65xzkXIjC2RsfKkapTtjPAzue8Poh4VSj814jZtVQeUdsV80 Hh1uLCRrzBsrK5N8GZuo50Tu/IGKsnTjF1xnkqdYsun6uezwUPUlVjzy9CryCA5xx0y+ smyvi2x2UEpCFMpqGy4Alca2hWKBSVX2SyXc9hn03RzTSLHaLw7si1XG9RG6s0hz/P5t 1P/HYndJV+g0Ga+J++M/3yadVrKspS+le10ODmCCljDQMfTUDZ9YVo1+eZSpYWwEmG9C T98jXQZLsNToPTS6XftzT/4n9i4laQNMEOraN1c7Gp/gQ9ir6vnIoPosMXWfuDE5iRty iqpg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a05640214cf00b00501df17fe9fsi8172012edx.78.2023.03.26.23.48.37; Sun, 26 Mar 2023 23:49:00 -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 S232349AbjC0Gql (ORCPT + 99 others); Mon, 27 Mar 2023 02:46:41 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761502550652753380?= X-GMAIL-MSGID: =?utf-8?q?1761502550652753380?= From: ChiYuan Huang Add the binding document for Richtek RT4803. Signed-off-by: ChiYuan Huang Reviewed-by: Krzysztof Kozlowski --- .../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; + }; + };