Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7708310rwi; Mon, 24 Oct 2022 19:19:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7o9Ykprgn8VcusOPdJCL2F3F1UOPUAPeR71JCzK4WS8HnzIIf4CcqZVc+WufdYE2aeKlOw X-Received: by 2002:a17:90b:3d8e:b0:213:c01:b8bb with SMTP id pq14-20020a17090b3d8e00b002130c01b8bbmr9700837pjb.68.1666664394542; Mon, 24 Oct 2022 19:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666664394; cv=none; d=google.com; s=arc-20160816; b=O+Y4L/qmhewhWvmWFIkQA3AS37JmWvvVnXEjR9PREKs0Sv57b56+U6ptUHnqW0AVUA boGQfZJqLu+fKi8EZ3SiL4HCzQfPAxTTvuuSBs9wEKgY8vq7GTl1n/oQo1qV84cVloK/ 3Yzl9DHHB79MjLNuDgqLVpn4LdKd4kxfmRzxjXez7+s2yCMovLgktVZaDUaZHkb1pQGq kFieRc68EWmiaT/bmA+hGaMTRItJ7p76Ldw0Y0XsLoMvveAeLmiJZWQ8vZlsa7QBrG5v +BnmpdCh6NQbSNKjb6IoXZezutujjvLxD7dlVAJnd+wt7OA4Zgq/qqjt/p+MHMpKklwq W2ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=JUI2EETvDOjbIumJEb3ZJvshccQCHKXMjETbOCjz3XE=; b=TGaYp03EMEqy8IFCy6zsEDoNnX+OKj4Y0udLAV6xRz7ZDC0uvfFgdd9OHylTmO6tCx f/0M9RKH0trMpW9gTwP26xKBsJE0VXujTW60ThXemPPPjQucwkhXn5KjUBu6YF/+srpr MPyb8gxYN3ANn4i4iR+dT9XCgI9j91e53Vn8SomCC8fh4P4HHHXqRdWb3BRdo6ZIH4nb yggSfMeXvM63gT2dDnMtEBSHb5coQAjrzCWd0hXEQ/5soUQpFpYqxwdQXjmFhZNjV4w4 smer/7HWfAStOdtvQigMDcPEAeILEQ5p5ZphHHv+MTo4+zBTjowkBkE0PxGVu77SErqp fRfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MfcJBXM0; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il11-20020a17090b164b00b0020d2d8c9a84si2145210pjb.137.2022.10.24.19.19.42; Mon, 24 Oct 2022 19:19:54 -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=MfcJBXM0; 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 S231512AbiJYBO7 (ORCPT + 99 others); Mon, 24 Oct 2022 21:14:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231269AbiJYBOe (ORCPT ); Mon, 24 Oct 2022 21:14:34 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46DB23A8; Mon, 24 Oct 2022 17:30:54 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id y16so8017979wrt.12; Mon, 24 Oct 2022 17:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JUI2EETvDOjbIumJEb3ZJvshccQCHKXMjETbOCjz3XE=; b=MfcJBXM0cjRRekdrMeVr88Xc0f7GYhqi2MGWq/OaPf/dwBtc5OlFqGtqsx1PWX7Huo bIOa+xruB4K1VklHkW8w3+/aEPHFdLbddOTQR1xjI4WwWlkC7K0M7TFMo8Pz8lRHUT5O tj/QnUpcEnkC36yHCiZQRgo4cok3AQY6RF4Iuam9IQDRT2acNnIZK6qzkO0ZNOjOCiwa gsQRB148PzrpKscQ93YIZUt4kMyH9CTp5aJynDi/ncilClNosY9/XpmTVt67XFhHhzMy Qy5tolUu0v4hS/ttEWPC2GN+XaAG7Eq24aLyPsICdP1h1vfqMccBHTRMgj+spAlHRv2J cavg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JUI2EETvDOjbIumJEb3ZJvshccQCHKXMjETbOCjz3XE=; b=Socrj2Q+tzeY2ODVjrFi4v7XyKBU3CL+kuKV0ZU8pwmO2hsDwQAu9TsGN6PxsMoHv8 JHN0al+bWAo2kfBejxubzvPEhkbNkXANLatJUqGuzLGHQ2rxFSpGBrlsfV3rg46vBynM gs32qTAhdKjE0Ov/EBKtPdIh25AzCvlvGpvjdxuTeOxX9fC7TpC1K74J3UFDGT/S83g6 tdcAlenI2DaNglqlIcupZVcfDvQPQi2d4spcW3jXbG5VnJ7wxvAaT+FSX+WMzbfsF61F O8+y+0o+yVg53plToweOcL8BHg4rebezlFbgm8uvGfvEO3N90UPIWkUfFWU82o9x1F+f IbLg== X-Gm-Message-State: ACrzQf0r4B+Lp5ADPunwVgUkQrfabXTBNc6bYGa3o2vwNQzRTb0f6Jqc 94zLkZlvPD7XH4KOD4HZyELG+FtVgOFNhac3hB8fVxI4ic0= X-Received: by 2002:a5d:58d9:0:b0:236:5b81:2c99 with SMTP id o25-20020a5d58d9000000b002365b812c99mr10790750wrf.494.1666657852522; Mon, 24 Oct 2022 17:30:52 -0700 (PDT) MIME-Version: 1.0 References: <1666320059-17544-1-git-send-email-u0084500@gmail.com> <1666320059-17544-2-git-send-email-u0084500@gmail.com> <20221024164251.GA1890861-robh@kernel.org> In-Reply-To: <20221024164251.GA1890861-robh@kernel.org> From: ChiYuan Huang Date: Tue, 25 Oct 2022 08:30:40 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: regulator: Add bindings for Richtek RT6190 regulator To: Rob Herring Cc: krzysztof.kozlowski+dt@linaro.org, broonie@kernel.org, lgirdwood@gmail.com, cy_huang@richtek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Rob Herring =E6=96=BC 2022=E5=B9=B410=E6=9C=8825=E6=97=A5= =E9=80=B1=E4=BA=8C =E5=87=8C=E6=99=A812:42=E5=AF=AB=E9=81=93=EF=BC=9A > > On Fri, Oct 21, 2022 at 10:40:58AM +0800, cy_huang wrote: > > From: ChiYuan Huang > > > > Add devicetree binding for Richtek RT6190 4-Switch buckboost controller= . > > > > Signed-off-by: ChiYuan Huang > > --- > > Since v2: > > - Rename binding filename to 'richtek,rt6190.yaml' > > > > --- > > .../bindings/regulator/richtek,rt6190.yaml | 77 ++++++++++++++= ++++++++ > > 1 file changed, 77 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/regulator/richtek= ,rt6190.yaml > > > > diff --git a/Documentation/devicetree/bindings/regulator/richtek,rt6190= .yaml b/Documentation/devicetree/bindings/regulator/richtek,rt6190.yaml > > new file mode 100644 > > index 00000000..dced404 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/regulator/richtek,rt6190.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.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 statio= n and USB > > typo: upply > > > + 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 > > maxItems: 1 > It's coming from gpio-consumer-common.yaml. If so, does it still need to declare the 'maxItems'? > > + > > + 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) > > maxItems: 2 > > > + items: > > + enum: [0, 1] > > + > > +required: > > + - compatible > > + - reg > > + > > +unevaluatedProperties: false > > + > > +examples: > > + - | > > + #include > > + #include > > + > > + i2c { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + regulator@2c { > > + compatible =3D "richtek,rt6190"; > > + reg =3D <0x2c>; > > + wakeup-source; > > + interrupts-extended =3D <&gpio26 0 IRQ_TYPE_LEVEL_LOW>; > > + enable-gpios =3D <&gpio26 1 GPIO_ACTIVE_HIGH>; > > + regulator-name =3D "richtek,rt6190-buckboost"; > > + regulator-min-microvolt =3D <3000000>; > > + regulator-max-microvolt =3D <32000000>; > > + regulator-min-microamp =3D <306000>; > > + regulator-max-microamp =3D <12114000>; > > + regulator-allowed-modes =3D <0 1>; > > + }; > > + }; > > -- > > 2.7.4 > > > >