Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: regulator: Convert ti,tps65132 to YAML

Convert TI TPS65132 bindings from .txt to .yaml format.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240104-tps65132-v2-1-6c77fe2f4787@apitzsch.eu
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

André Apitzsch and committed by
Mark Brown
a6ffa02b 5df3b41b

+84 -46
+84
Documentation/devicetree/bindings/regulator/ti,tps65132.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/regulator/ti,tps65132.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: TI TPS65132 Dual Output Power Regulators 8 + 9 + maintainers: 10 + - devicetree@vger.kernel.org 11 + 12 + description: | 13 + The TPS65132 is designed to supply positive/negative driven applications. 14 + 15 + Datasheet is available at: 16 + https://www.ti.com/lit/gpn/tps65132 17 + 18 + properties: 19 + compatible: 20 + enum: 21 + - ti,tps65132 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + patternProperties: 27 + "^out[pn]$": 28 + type: object 29 + $ref: regulator.yaml# 30 + unevaluatedProperties: false 31 + description: 32 + Properties for single regulator. 33 + 34 + properties: 35 + enable-gpios: 36 + maxItems: 1 37 + description: 38 + GPIO specifier to enable the GPIO control (on/off) for regulator. 39 + 40 + active-discharge-gpios: 41 + maxItems: 1 42 + description: 43 + GPIO specifier to actively discharge the delay mechanism. 44 + 45 + ti,active-discharge-time-us: 46 + description: Regulator active discharge time in microseconds. 47 + 48 + dependencies: 49 + active-discharge-gpios: [ 'ti,active-discharge-time-us' ] 50 + 51 + required: 52 + - compatible 53 + - reg 54 + 55 + additionalProperties: false 56 + 57 + examples: 58 + - | 59 + #include <dt-bindings/gpio/gpio.h> 60 + 61 + i2c { 62 + #address-cells = <1>; 63 + #size-cells = <0>; 64 + 65 + regulator@3e { 66 + compatible = "ti,tps65132"; 67 + reg = <0x3e>; 68 + 69 + outp { 70 + regulator-name = "outp"; 71 + regulator-boot-on; 72 + regulator-always-on; 73 + enable-gpios = <&gpio 23 GPIO_ACTIVE_HIGH>; 74 + }; 75 + 76 + outn { 77 + regulator-name = "outn"; 78 + regulator-boot-on; 79 + regulator-always-on; 80 + regulator-active-discharge = <0>; 81 + enable-gpios = <&gpio 40 GPIO_ACTIVE_HIGH>; 82 + }; 83 + }; 84 + };
-46
Documentation/devicetree/bindings/regulator/tps65132-regulator.txt
··· 1 - TPS65132 regulators 2 - 3 - Required properties: 4 - - compatible: "ti,tps65132" 5 - - reg: I2C slave address 6 - 7 - Optional Subnode: 8 - Device supports two regulators OUTP and OUTN. A sub node within the 9 - device node describe the properties of these regulators. The sub-node 10 - names must be as follows: 11 - -For regulator outp, the sub node name should be "outp". 12 - -For regulator outn, the sub node name should be "outn". 13 - 14 - -enable-gpios:(active high, output) Regulators are controlled by the input pins. 15 - If it is connected to GPIO through host system then provide the 16 - gpio number as per gpio.txt. 17 - -active-discharge-gpios: (active high, output) Some configurations use delay mechanisms 18 - on the enable pin, to keep the regulator enabled for some time after 19 - the enable signal goes low. This GPIO is used to actively discharge 20 - the delay mechanism. Requires specification of ti,active-discharge-time-us 21 - -ti,active-discharge-time-us: how long the active discharge gpio should be 22 - asserted for during active discharge, in microseconds. 23 - 24 - Each regulator is defined using the standard binding for regulators. 25 - 26 - Example: 27 - 28 - tps65132@3e { 29 - compatible = "ti,tps65132"; 30 - reg = <0x3e>; 31 - 32 - outp { 33 - regulator-name = "outp"; 34 - regulator-boot-on; 35 - regulator-always-on; 36 - enable-gpios = <&gpio 23 0>; 37 - }; 38 - 39 - outn { 40 - regulator-name = "outn"; 41 - regulator-boot-on; 42 - regulator-always-on; 43 - regulator-active-discharge = <0>; 44 - enable-gpios = <&gpio 40 0>; 45 - }; 46 - };