From patchwork Thu Oct 20 06:57:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiYuan Huang X-Patchwork-Id: 5982 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp102700wrs; Thu, 20 Oct 2022 00:00:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78CnoYfWRgZKRwHJT0GREMbtOUXdZ/s1rzQJzVd6G+PlesUhIcw3Y7l2c55+xRK3sxLc7s X-Received: by 2002:a17:907:968d:b0:78e:1a4:131 with SMTP id hd13-20020a170907968d00b0078e01a40131mr9623892ejc.439.1666249225749; Thu, 20 Oct 2022 00:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666249225; cv=none; d=google.com; s=arc-20160816; b=iPPlCfy+ERpPhREle95s2ciUWBs5gCPfrRJglM7ToyMirHFOEQOPDCOsaZI9uX1wu2 0SqdzdDngqXM5Yv2Pe3nVwmRw3Umj/w9EfGqkAVxg70nr9LQWBgPL24vDs5pNbo8Jry4 nElidkQQA+QtVW3bLed2wnYA44R4AcMgo2fLdWFWjgsJyl5FUMTZQshzHwsdqww7NOKN Y5/EEFxAipgf8eaESAme4hLpxqHoqlYPw//OWAGfg9x4Kf2V6wTvMjBrrok81CFJJWf0 CFa6YtDU+hMt7g/zTemS7DpGOdgVA3QCmwDQrsviMVwl7JwmIC4zjBDeH4+1kpC6+oD5 XfGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=o9QEkVTNvZxbjrViQWFpsEggxeQOyWtEOepfRN2hpAo=; b=bCBe06ZReCrxfBaTfidi0Klr1iDoRvikXhf2BAMAFmjee6Y7cUn1je9VFYHQk8oDbh IOLDPMfd4rsKaU+b9CEgv285Dk9/cnwxXWgVSNKs0aaJjEQCzCPk6AfD90fM1/sG/Taa 4tL34ZHXqpS60Ect6szwaCZfzTvryU+gjSkERJ73xs+mHjj7q5CRwruSmZnVvCoyr3FH M3TZGUGTmj/j/UmkYGIpUPIcwXYI7snrIKU5cHqxhckQ8eilKFHrbN4aM1MQ5DkFFov5 bsKRfu5uQ8aEF7khQJdWywEP/8ud2zbYNlB/DHA4tkpYLrBz/jzrviGB1Dg3c2CLKZ6o jsKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kiuT10Hv; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t14-20020a056402524e00b0045dcc848b39si7549663edd.228.2022.10.19.23.59.55; Thu, 20 Oct 2022 00:00: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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kiuT10Hv; 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 S229792AbiJTG5l (ORCPT + 99 others); Thu, 20 Oct 2022 02:57:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbiJTG5Y (ORCPT ); Thu, 20 Oct 2022 02:57:24 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49FAA12791D; Wed, 19 Oct 2022 23:57:24 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id l4so19462101plb.8; Wed, 19 Oct 2022 23:57:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=o9QEkVTNvZxbjrViQWFpsEggxeQOyWtEOepfRN2hpAo=; b=kiuT10Hvav045F25AT0vhDVgc6hpMQqJO0FJCBvetAv4v+xI7sOmZLwWBDPs690t8S CHidmb60IrxDExOOART+3+8d1iOgfFsDDLNkQOwhfY5oAFjNrFB81fy2xqB/rzsyh8iN AaPl3EkuPDDXE4lHfH8rjVNtfh70+QewsFhScPFVaDT0vqEW9IGGGqkG3qQo8aEj0yam g/k2YfT8ZzmR+tJwhSFxkQ7FbaiCyNSocEH+DnEAsYVckvyLHZDi9k+ORnHQmg0lE/Yn 5Fzm8+QLCcDNyiyvk+7qhSCJfZ8rgA9nAqx5zkGaumF3cFHBm6K+wg5GDLwxtVX5Rp0d Ztaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=o9QEkVTNvZxbjrViQWFpsEggxeQOyWtEOepfRN2hpAo=; b=PvodPLBkOPPgcdwtLSXIko3GeYDCJc1iUYyvy1KXptG906zkqIE1mgLqYVJd1ieAjc PEVvqogledpqhCCQhrL4MDvRHcO60cc8kmgFoECu0KZgdCUWuSD4ulgS1JiEZFPAQiG3 hESF4TL5JUilZ+g0h9gIAxocLB+0d2m5xrRcBfdHgjDeSvptWJbvkI9l7LGW2+cXEGEq N2zlvISviN3d9CdcnYqzHttKruRTHlwWE52/1IObUsOo+Eoqq6l1no0Hi8Ejy9zFnbSy VJ0S86Jv+ya0rqQXBsLbZtKxrYhncK12zIdgakxIkbTb7DERIZXD+vAtoeW/kBSmnlq7 8CMw== X-Gm-Message-State: ACrzQf35DzeQW3921DzZn4i9ZuwDsX2R4DThwEjGXSioAC+SBJlDS6Dc RGLmoMlBZXKThIVaQ5xEbXA= X-Received: by 2002:a17:90a:d917:b0:212:a8e4:8a44 with SMTP id c23-20020a17090ad91700b00212a8e48a44mr123880pjv.2.1666249043662; Wed, 19 Oct 2022 23:57:23 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:569:a12c:444a:ed28:4831:fc95]) by smtp.gmail.com with ESMTPSA id s9-20020a170902ea0900b001786b712bf7sm989952plg.151.2022.10.19.23.57.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2022 23:57:23 -0700 (PDT) From: cy_huang To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, broonie@kernel.org Cc: lgirdwood@gmail.com, cy_huang@richtek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: regulator: Add bindings for Richtek RT6190 regulator Date: Thu, 20 Oct 2022 14:57:12 +0800 Message-Id: <1666249033-12219-2-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1666249033-12219-1-git-send-email-u0084500@gmail.com> References: <1666249033-12219-1-git-send-email-u0084500@gmail.com> X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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?1747188947939405499?= X-GMAIL-MSGID: =?utf-8?q?1747188947939405499?= From: ChiYuan Huang Add devicetree binding for Richtek RT6190 4-Switch buckboost controller. Signed-off-by: ChiYuan Huang --- .../regulator/richtek,rt6190-regulator.yaml | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/richtek,rt6190-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/richtek,rt6190-regulator.yaml b/Documentation/devicetree/bindings/regulator/richtek,rt6190-regulator.yaml new file mode 100644 index 00000000..be0fa7f --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/richtek,rt6190-regulator.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/richtek,rt6190-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Richtek RT6190 4-Switch BuckBoost controller + +maintainers: + - ChiYuan Huang + +description: | + The RT6190 is 4-Switch BuckBoost controller designed for converting input + voltage to output voltage that can be equal to, higher or lower than input + voltage. It operates with wide input voltage range from 4.5V to 36V, and + the output voltage can be set from 3V to 36V by external FB pin. It's commonly + used for the application like as BuckBoost bus upply, docking station and USB + power delivery product. + + Datasheet is available at + https://www.richtek.com/assets/product_file/RT6190/DS6190-02.pdf + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + enum: + - richtek,rt6190 + + reg: + maxItems: 1 + + enable-gpios: true + + wakeup-source: true + + interrupts: + maxItems: 1 + + regulator-allowed-modes: + description: | + buck allowed operating mode + 0: PSM mode (light load Power Saving Mode) + 1: FCCM mode (Forced-CCM mode) + items: + enum: [0, 1] + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@2c { + compatible = "richtek,rt6190"; + reg = <0x2c>; + wakeup-source; + interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>; + enable-gpios = <&gpio26 1 GPIO_ACTIVE_HIGH>; + regulator-name = "richtek,rt6190-buckboost"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <32000000>; + regulator-min-microamp = <306000>; + regulator-max-microamp = <12114000>; + regulator-allowed-modes = <0 1>; + }; + };