From patchwork Sun Dec 17 13:21:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Patchwork-Id: 180013 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp702264dyi; Sun, 17 Dec 2023 05:24:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IECVO7drk6vxOkLpaJBqubHvTnhy+iY4llBP2HZ7BuK2nNUlRUQ7B9sJvbMqmgM+vtH9SRR X-Received: by 2002:a05:6359:5e95:b0:170:17eb:9c53 with SMTP id px21-20020a0563595e9500b0017017eb9c53mr11237374rwb.52.1702819497732; Sun, 17 Dec 2023 05:24:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702819497; cv=none; d=google.com; s=arc-20160816; b=u/eR/Nvb2dj3472USQI4EWCHekTXGg20pb9E5ORN3lSeUcve35hlgRL6q+Q+lL5ayy RDKSimU1EapCyiVKN/y3Df7k3pNZ9yTAVDtmERZmIpI5l14jsGYJMiDIAek+eKcB1vfI irRiiVZNMO5kH2KaWJZI8N7XVrBJXf7pvhqYDLku74dd4HSouHeT8q0Qb+5JR21TG8NL 1XWtYl9C3NwqFR5Te44ntocn6eO4SE/CgksgkHapNdzJ0asiq0TfX9ptguguRA+aTe0c MXYMJa9t+AA+Xpcv1AzFjjeV5wydkEZYvVlBeaaNEJGTcbQpkQpDiooISUdKTFROnNae 9Y+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from; bh=2iCwXleKCTTtLmMzb3vrxZhy0qZmp7eU1ddiFGb/KSk=; fh=kvavLOGCFLu/HM2v7S0Id7m9SB6lrOuVomLCkHnwYuA=; b=xiC3Fb2EA/pOpczlLq62gYLwTYukMg2Ved9hQLTiBo7QtbNwlHA93e7I+EehnrIJ9L xjapo00zTo5w7TS/uHEshsucyhdIBPBzXjSCAjNiLBE2w9te41IruOg3VGvX8jgQZ6xm lSwhp/hW4cPwpz4mIKDtCxBAnZfpHdENasXMxyljSBAwdrEse3BbgqkfyjfaYgI7g9/Y PCbEmiGYG2QHdyLdXLIKfzPkHOEGbgxRGT/5Zo2S6QPg/WjGoz2F/bcJfrFy+VqoF0Vv ewF/5TrzYvZeYXGSvWVIsIDNAqU44cOVE4J218R4fWiK3/0HshAhDWbbj3V5ZuBGqRLm 0xOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2607-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i20-20020a17090ad35400b0028b158f2c52si5538141pjx.96.2023.12.17.05.24.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 05:24:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2607-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2607-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 630052832D0 for ; Sun, 17 Dec 2023 13:24:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C8B04438F; Sun, 17 Dec 2023 13:24:41 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65E12374CA; Sun, 17 Dec 2023 13:24:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=apitzsch.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=apitzsch.eu Received: from [92.206.191.209] (helo=note-book.lan) by smtprelay05.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1rEr68-0008FK-1V; Sun, 17 Dec 2023 14:22:24 +0100 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Sun, 17 Dec 2023 14:21:39 +0100 Subject: [PATCH] dt-bindings: regulator: Convert ti,tps65133 to YAML Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231217-tps65132-v1-1-73c69a960d28@apitzsch.eu> X-B4-Tracking: v=1; b=H4sIAOL1fmUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDI0Nz3ZKCYjNTQ2MjXfM0CyMjy5TkxBRTSyWg8oKi1LTMCrBR0bG1tQD mV7z8WgAAAA== To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, =?utf-8?q?Andr?= =?utf-8?q?=C3=A9_Apitzsch?= X-Mailer: b4 0.12.4 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785535657393594044 X-GMAIL-MSGID: 1785535657393594044 Convert TI TPS65132 bindings from .txt to .yaml format. Signed-off-by: André Apitzsch --- Note, we still have to find a person willing to be listed as maintainer. Suggestions are welcome. --- .../devicetree/bindings/regulator/ti,tps65132.yaml | 81 ++++++++++++++++++++++ .../bindings/regulator/tps65132-regulator.txt | 46 ------------ 2 files changed, 81 insertions(+), 46 deletions(-) --- base-commit: 17cb8a20bde66a520a2ca7aad1063e1ce7382240 change-id: 20231217-tps65132-7f8229dcad59 Best regards, diff --git a/Documentation/devicetree/bindings/regulator/ti,tps65132.yaml b/Documentation/devicetree/bindings/regulator/ti,tps65132.yaml new file mode 100644 index 000000000000..0add88dd0e80 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/ti,tps65132.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/ti,tps65132.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI TPS65132 Dual Output Power Regulators + +description: | + The TPS65132 is designed to supply positive/negative driven applications. + + Datasheet is available at: + https://www.ti.com/lit/gpn/tps65132 + +properties: + compatible: + enum: + - ti,tps65132 + + 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. + + active-discharge-gpios: + maxItems: 1 + description: + GPIO specifier to actively discharge the delay mechanism. + + ti,active-discharge-time-us: + description: Regulator active discharge time in microseconds. + + dependencies: + active-discharge-gpios: [ 'ti,active-discharge-time-us' ] + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@3e { + compatible = "ti,tps65132"; + reg = <0x3e>; + + outp { + regulator-name = "outp"; + regulator-boot-on; + regulator-always-on; + enable-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>; + }; + + outn { + regulator-name = "outn"; + regulator-boot-on; + regulator-always-on; + regulator-active-discharge = <0>; + enable-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt b/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt deleted file mode 100644 index 3a3505520c69..000000000000 --- a/Documentation/devicetree/bindings/regulator/tps65132-regulator.txt +++ /dev/null @@ -1,46 +0,0 @@ -TPS65132 regulators - -Required properties: -- compatible: "ti,tps65132" -- reg: I2C slave address - -Optional Subnode: -Device supports two regulators OUTP and OUTN. A sub node within the - device node describe the properties of these regulators. The sub-node - names must be as follows: - -For regulator outp, the sub node name should be "outp". - -For regulator outn, the sub node name should be "outn". - --enable-gpios:(active high, output) Regulators are controlled by the input pins. - If it is connected to GPIO through host system then provide the - gpio number as per gpio.txt. --active-discharge-gpios: (active high, output) Some configurations use delay mechanisms - on the enable pin, to keep the regulator enabled for some time after - the enable signal goes low. This GPIO is used to actively discharge - the delay mechanism. Requires specification of ti,active-discharge-time-us --ti,active-discharge-time-us: how long the active discharge gpio should be - asserted for during active discharge, in microseconds. - -Each regulator is defined using the standard binding for regulators. - -Example: - - tps65132@3e { - compatible = "ti,tps65132"; - reg = <0x3e>; - - outp { - regulator-name = "outp"; - regulator-boot-on; - regulator-always-on; - enable-gpios = <&gpio 23 0>; - }; - - outn { - regulator-name = "outn"; - regulator-boot-on; - regulator-always-on; - regulator-active-discharge = <0>; - enable-gpios = <&gpio 40 0>; - }; - };