Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 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 | }; |