Skip to content

Commit 2f04aa6

Browse files
vwaxbroonie
authored andcommitted
regulator: Add bindings for TPS62864x
Add bindings for the TPS62864/TPS6286/TPS62868/TPS62869 voltage regulators. Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com> Link: https://lore.kernel.org/r/20220204155241.576342-2-vincent.whitchurch@axis.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e4a7e3f commit 2f04aa6

2 files changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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,tps62864.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: TI TPS62864/TPS6286/TPS62868/TPS62869 voltage regulator
8+
9+
maintainers:
10+
- Vincent Whitchurch <vincent.whitchurch@axis.com>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- ti,tps62864
16+
- ti,tps62866
17+
- ti,tps62868
18+
- ti,tps62869
19+
20+
reg:
21+
maxItems: 1
22+
23+
regulators:
24+
type: object
25+
26+
patternProperties:
27+
"SW":
28+
type: object
29+
$ref: regulator.yaml#
30+
31+
additionalProperties: false
32+
33+
required:
34+
- compatible
35+
- reg
36+
- regulators
37+
38+
additionalProperties: false
39+
40+
examples:
41+
- |
42+
#include <dt-bindings/regulator/ti,tps62864.h>
43+
i2c {
44+
#address-cells = <1>;
45+
#size-cells = <0>;
46+
47+
regulator@48 {
48+
compatible = "ti,tps62864";
49+
reg = <0x48>;
50+
51+
regulators {
52+
SW {
53+
regulator-name = "+0.85V";
54+
regulator-min-microvolt = <800000>;
55+
regulator-max-microvolt = <890000>;
56+
regulator-initial-mode = <TPS62864_MODE_FPWM>;
57+
};
58+
};
59+
};
60+
};
61+
62+
...
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
3+
#ifndef _DT_BINDINGS_REGULATOR_TI_TPS62864_H
4+
#define _DT_BINDINGS_REGULATOR_TI_TPS62864_H
5+
6+
#define TPS62864_MODE_NORMAL 0
7+
#define TPS62864_MODE_FPWM 1
8+
9+
#endif

0 commit comments

Comments
 (0)