Skip to content

Commit da1456e

Browse files
akemnadebroonie
authored andcommitted
regulator: dt-bindings: Document TI TPS65185
Document the TPS65185. GPIO names are same as in the datasheet except for the PWRUP pad which is described as "enable". That pin is optional because the rising edge corresponds to setting one register bit and falling edge to another register bit. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Link: https://patch.msgid.link/20260102-tps65185-submit-v3-1-23bda35772f2@kemnade.info Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 0f61b18 commit da1456e

1 file changed

Lines changed: 96 additions & 0 deletions

File tree

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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,tps65185.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: TI TPS65185 Power Management Integrated Circuit
8+
9+
maintainers:
10+
- Andreas Kemnade <andreas@kemnade.info>
11+
12+
description:
13+
TPS65185 is a Power Management IC to provide Power for EPDs with one 3.3V
14+
switch, 2 symmetric LDOs behind 2 DC/DC converters, and one unsymmetric
15+
regulator for a compensation voltage.
16+
17+
properties:
18+
compatible:
19+
const: ti,tps65185
20+
21+
reg:
22+
maxItems: 1
23+
24+
enable-gpios:
25+
description:
26+
PWRUP pin
27+
maxItems: 1
28+
29+
pwr-good-gpios:
30+
maxItems: 1
31+
32+
vcom-ctrl-gpios:
33+
maxItems: 1
34+
35+
wakeup-gpios:
36+
maxItems: 1
37+
38+
vin-supply: true
39+
40+
interrupts:
41+
maxItems: 1
42+
43+
regulators:
44+
type: object
45+
additionalProperties: false
46+
patternProperties:
47+
"^(vcom|vposneg|v3p3)$":
48+
unevaluatedProperties: false
49+
type: object
50+
$ref: /schemas/regulator/regulator.yaml
51+
52+
required:
53+
- compatible
54+
- reg
55+
- pwr-good-gpios
56+
- vin-supply
57+
58+
additionalProperties: false
59+
60+
examples:
61+
- |
62+
#include <dt-bindings/gpio/gpio.h>
63+
#include <dt-bindings/interrupt-controller/irq.h>
64+
i2c {
65+
#address-cells = <1>;
66+
#size-cells = <0>;
67+
68+
pmic@18 {
69+
compatible = "ti,tps65185";
70+
reg = <0x18>;
71+
pinctrl-names = "default";
72+
pinctrl-0 = <&pinctrl_tps65185_gpio>;
73+
pwr-good-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
74+
vcom-ctrl-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
75+
enable-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
76+
wakeup-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
77+
vin-supply = <&epdc_pmic_supply>;
78+
interrupts-extended = <&gpio2 0 IRQ_TYPE_LEVEL_LOW>;
79+
80+
regulators {
81+
vcom {
82+
regulator-name = "vcom";
83+
};
84+
85+
vposneg {
86+
regulator-name = "vposneg";
87+
regulator-min-microvolt = <15000000>;
88+
regulator-max-microvolt = <15000000>;
89+
};
90+
91+
v3p3 {
92+
regulator-name = "v3p3";
93+
};
94+
};
95+
};
96+
};

0 commit comments

Comments
 (0)