From nobody Tue Feb 10 04:12:42 2026 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 CD4F3C0015E for ; Wed, 26 Jul 2023 08:28:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232950AbjGZI2e (ORCPT ); Wed, 26 Jul 2023 04:28:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233217AbjGZI1x (ORCPT ); Wed, 26 Jul 2023 04:27:53 -0400 Received: from out28-73.mail.aliyun.com (out28-73.mail.aliyun.com [115.124.28.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6110B5FFC; Wed, 26 Jul 2023 01:18:01 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1605788|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0349842-0.00127715-0.963739;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047198;MF=like@awinic.com;NM=1;PH=DS;RN=11;RT=11;SR=0;TI=SMTPD_---.U0dHLJ9_1690359465; Received: from awinic..(mailfrom:like@awinic.com fp:SMTPD_---.U0dHLJ9_1690359465) by smtp.aliyun-inc.com; Wed, 26 Jul 2023 16:17:55 +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 V1 2/2] regulator: aw37503: add device-tree binding Date: Wed, 26 Jul 2023 08:16:12 +0000 Message-ID: <20230726081612.586295-3-like@awinic.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230726081612.586295-1-like@awinic.com> References: <20230726081612.586295-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 | 73 +++++++++++++++++++ 1 file changed, 73 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..0cd6fb001e20 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/awinic,aw37503.yaml @@ -0,0 +1,73 @@ +# 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 is dual voltage regulator, designed to support positive/nega= tive + 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# + unvaluatedproperties: false + + required: + - regulator-name + - enable-gpios + + additionalProperties: false + +required: + - compatible + - reg + - outp + - outn + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + aw37503@3e { + compatible =3D "awinic,aw37503"; + reg =3D <0x3e>; + + outp { + regulator-name =3D "outp"; + regulator-boot-on; + regulator-always-on; + enable-gpios =3D <&gpio 17 0>; + }; + + outn { + regulator-name =3D "outn"; + regulator-boot-on; + regulator-always-on; + enable-gpios =3D <&gpio 27 0>; + }; + }; + }; +... --=20 2.41.0