From nobody Wed Dec 17 14:24:06 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 1F099EE4996 for ; Mon, 21 Aug 2023 03:54:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232709AbjHUDyW (ORCPT ); Sun, 20 Aug 2023 23:54:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232647AbjHUDyU (ORCPT ); Sun, 20 Aug 2023 23:54:20 -0400 Received: from out28-195.mail.aliyun.com (out28-195.mail.aliyun.com [115.124.28.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54BDD94; Sun, 20 Aug 2023 20:54:17 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1460857|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0627129-0.000286508-0.937001;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047204;MF=like@awinic.com;NM=1;PH=DS;RN=11;RT=11;SR=0;TI=SMTPD_---.ULtK46L_1692590049; Received: from awinic..(mailfrom:like@awinic.com fp:SMTPD_---.ULtK46L_1692590049) by smtp.aliyun-inc.com; Mon, 21 Aug 2023 11:54:11 +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 v5 2/2] regulator: dt-bindings: Add Awinic AW37503 Date: Mon, 21 Aug 2023 03:53:55 +0000 Message-ID: <20230821035355.1269976-3-like@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230821035355.1269976-1-like@awinic.com> References: <20230821035355.1269976-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 Reviewed-by: Krzysztof Kozlowski --- .../bindings/regulator/awinic,aw37503.yaml | 78 +++++++++++++++++++ 1 file changed, 78 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..c92a881ed60e --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/awinic,aw37503.yaml @@ -0,0 +1,78 @@ +# 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 + description: + Properties for single regulator. + + properties: + enable-gpios: + maxItems: 1 + description: + GPIO specifier to enable the GPIO control (on/off) for regulator. + + required: + - regulator-name + +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