From nobody Thu Dec 18 18:55:35 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9E06C04FDF for ; Tue, 15 Aug 2023 02:02:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234081AbjHOCBq (ORCPT ); Mon, 14 Aug 2023 22:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234048AbjHOCBM (ORCPT ); Mon, 14 Aug 2023 22:01:12 -0400 Received: from out28-149.mail.aliyun.com (out28-149.mail.aliyun.com [115.124.28.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BC60B0; Mon, 14 Aug 2023 19:01:10 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1570643|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0624248-0.000285605-0.93729;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047202;MF=like@awinic.com;NM=1;PH=DS;RN=11;RT=11;SR=0;TI=SMTPD_---.UGpC1cr_1692064861; Received: from awinic..(mailfrom:like@awinic.com fp:SMTPD_---.UGpC1cr_1692064861) by smtp.aliyun-inc.com; Tue, 15 Aug 2023 10:01:04 +0800 From: like@awinic.com To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, liweilei@awinic.com, liangdong@awinic.com, wangweidong.a@awinic.com, Alec Li Subject: [PATCH v3 2/2] regulator: dt-bindings: Add Awinic AW37503 Date: Tue, 15 Aug 2023 02:00:44 +0000 Message-ID: <20230815020044.2159900-3-like@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230815020044.2159900-1-like@awinic.com> References: <20230815020044.2159900-1-like@awinic.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Alec Li Add aw37503 regulator device-tree binding documentation. Signed-off-by: Alec Li --- .../bindings/regulator/awinic,aw37503.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/awinic,aw37= 503.yaml diff --git a/Documentation/devicetree/bindings/regulator/awinic,aw37503.yam= l b/Documentation/devicetree/bindings/regulator/awinic,aw37503.yaml new file mode 100644 index 000000000000..e2770511a082 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/awinic,aw37503.yaml @@ -0,0 +1,66 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/awinic,aw37503.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Awinic AW37503 Voltage Regulator + +maintainers: + - Alec Li + +description: + The AW37503 are dual voltage regulator, designed to support positive/neg= ative + supply for driving TFT-LCD panels. It support software-configurable outp= ut + switching and monitoring. The output voltages can be programmed via an I= 2C + compatible interface. + +properties: + compatible: + const: awinic,aw37503 + + reg: + maxItems: 1 + +patternProperties: + "^out[pn]$": + type: object + $ref: regulator.yaml# + unevaluatedProperties: false + +required: + - compatible + - reg + - outp + - outn + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + regulator@3e { + compatible =3D "awinic,aw37503"; + reg =3D <0x3e>; + + outp { + regulator-name =3D "outp"; + regulator-boot-on; + regulator-always-on; + enable-gpios =3D <&gpio 17 GPIO_ACTIVE_LOW>; + }; + + outn { + regulator-name =3D "outn"; + regulator-boot-on; + regulator-always-on; + enable-gpios =3D <&gpio 27 GPIO_ACTIVE_LOW>; + }; + }; + }; +... --=20 2.41.0