From patchwork Fri Feb 4 15:52:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Whitchurch X-Patchwork-Id: 1588488 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256 header.s=axis-central1 header.b=XNhhjurk; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4Jr0Rj6Knlz9s8s for ; Sat, 5 Feb 2022 02:52:49 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359870AbiBDPwp (ORCPT ); Fri, 4 Feb 2022 10:52:45 -0500 Received: from smtp2.axis.com ([195.60.68.18]:54919 "EHLO smtp2.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbiBDPwo (ORCPT ); Fri, 4 Feb 2022 10:52:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1643989965; x=1675525965; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CoLT4kOyJTOYiMhPnHVf6C6Qn7q68tPCzzuEiZsphtM=; b=XNhhjurkO4gAmniBOWKsVbyXJOY8RJCi1RTMKPO21tFiLiHj+xB3cnLO IuLvmqrmCsT062Dy4EyNRtJPHr8jmcknrM0GTgPpsemJ4ZXSXr+iNHbjg NKM351WndNDn9bsG2x82yadifWAJfTQMs+g4O2kYLOjv8FfnYao8FltIn fnc2EZA6gWaD1MbLt6Xlb53X+PPVRHtre1W7aZN/R3axwY4jOenegWSlu vZ6hdV837Yrtr9UcLzg90atiLEg3isczcalFJfAxzE/8J8+Q+/ASnK1U8 gJQN2dWwZvFRFx0TtwtB/9TleVwnWkUKv5UQin8UiH9ANUZWIeS7s0Sr4 g==; From: Vincent Whitchurch To: , CC: , , , , Vincent Whitchurch Subject: [PATCH 1/2] regulator: Add bindings for TPS62864x Date: Fri, 4 Feb 2022 16:52:40 +0100 Message-ID: <20220204155241.576342-2-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220204155241.576342-1-vincent.whitchurch@axis.com> References: <20220204155241.576342-1-vincent.whitchurch@axis.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add bindings for the TPS62864/TPS6286/TPS62868/TPS62869 voltage regulators. Signed-off-by: Vincent Whitchurch --- .../bindings/regulator/ti,tps62864.yaml | 62 +++++++++++++++++++ include/dt-bindings/regulator/ti,tps62864.h | 9 +++ 2 files changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/ti,tps62864.yaml create mode 100644 include/dt-bindings/regulator/ti,tps62864.h diff --git a/Documentation/devicetree/bindings/regulator/ti,tps62864.yaml b/Documentation/devicetree/bindings/regulator/ti,tps62864.yaml new file mode 100644 index 000000000000..e3d739a37ab0 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/ti,tps62864.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/ti,tps62864.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI TPS62864/TPS6286/TPS62868/TPS62869 voltage regulator + +maintainers: + - Vincent Whitchurch + +properties: + compatible: + enum: + - ti,tps62864 + - ti,tps62866 + - ti,tps62868 + - ti,tps62869 + + reg: + maxItems: 1 + + regulators: + type: object + + patternProperties: + "SW": + type: object + $ref: regulator.yaml# + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@48 { + compatible = "ti,tps62864"; + reg = <0x48>; + + regulators { + SW { + regulator-name = "+0.85V"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <890000>; + regulator-initial-mode = ; + }; + }; + }; + }; + +... diff --git a/include/dt-bindings/regulator/ti,tps62864.h b/include/dt-bindings/regulator/ti,tps62864.h new file mode 100644 index 000000000000..8db31f23d956 --- /dev/null +++ b/include/dt-bindings/regulator/ti,tps62864.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ + +#ifndef _DT_BINDINGS_REGULATOR_TI_TPS62864_H +#define _DT_BINDINGS_REGULATOR_TI_TPS62864_H + +#define TPS62864_MODE_NORMAL 0 +#define TPS62864_MODE_FPWM 1 + +#endif