Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit ecbc0f2

Browse files
ngmorrissonlag-linaro
authored andcommitted
dt-bindings: mfd: Convert lp873x.txt to json-schema
Convert the lp873x binding to DT schema format. The gpio-controller and #gpio-cells properties were removed from required because using the device as a GPIO controller is optional. Signed-off-by: Nathan Morrisson <nmorrisson@phytec.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240429195830.4027250-1-nmorrisson@phytec.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent dee5183 commit ecbc0f2

File tree

2 files changed

+112
-67
lines changed

2 files changed

+112
-67
lines changed

Documentation/devicetree/bindings/mfd/lp873x.txt

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mfd/ti,lp8732.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: TI LP873X Power Management Integrated Circuit
8+
9+
maintainers:
10+
- J Keerthy <j-keerthy@ti.com>
11+
12+
description:
13+
PMIC with two high-current buck converters and two linear regulators.
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- ti,lp8732
19+
- ti,lp8733
20+
21+
reg:
22+
maxItems: 1
23+
24+
gpio-controller: true
25+
26+
'#gpio-cells':
27+
const: 2
28+
29+
regulators:
30+
description:
31+
List of child nodes that specify the regulator initialization data.
32+
type: object
33+
patternProperties:
34+
"^buck[01]|ldo[01]$":
35+
type: object
36+
$ref: /schemas/regulator/regulator.yaml#
37+
unevaluatedProperties: false
38+
additionalProperties: false
39+
40+
patternProperties:
41+
'^(buck[01]|ldo[01])-in-supply$':
42+
description: Phandle to parent supply of each regulator populated under regulators node.
43+
44+
required:
45+
- compatible
46+
- reg
47+
- regulators
48+
- buck0-in-supply
49+
- buck1-in-supply
50+
- ldo0-in-supply
51+
- ldo1-in-supply
52+
53+
additionalProperties: false
54+
55+
examples:
56+
- |
57+
i2c {
58+
#address-cells = <1>;
59+
#size-cells = <0>;
60+
61+
pmic: pmic@60 {
62+
compatible = "ti,lp8733";
63+
reg = <0x60>;
64+
gpio-controller;
65+
#gpio-cells = <2>;
66+
67+
buck0-in-supply = <&vsys_3v3>;
68+
buck1-in-supply = <&vsys_3v3>;
69+
ldo0-in-supply = <&vsys_3v3>;
70+
ldo1-in-supply = <&vsys_3v3>;
71+
72+
regulators {
73+
buck0: buck0 {
74+
regulator-name = "buck0";
75+
regulator-min-microvolt = <800000>;
76+
regulator-max-microvolt = <1400000>;
77+
regulator-min-microamp = <1500000>;
78+
regulator-max-microamp = <4000000>;
79+
regulator-ramp-delay = <10000>;
80+
regulator-always-on;
81+
regulator-boot-on;
82+
};
83+
84+
buck1: buck1 {
85+
regulator-name = "buck1";
86+
regulator-min-microvolt = <800000>;
87+
regulator-max-microvolt = <1400000>;
88+
regulator-min-microamp = <1500000>;
89+
regulator-max-microamp = <4000000>;
90+
regulator-ramp-delay = <10000>;
91+
regulator-boot-on;
92+
regulator-always-on;
93+
};
94+
95+
ldo0: ldo0 {
96+
regulator-name = "ldo0";
97+
regulator-min-microvolt = <800000>;
98+
regulator-max-microvolt = <3000000>;
99+
regulator-boot-on;
100+
regulator-always-on;
101+
};
102+
103+
ldo1: ldo1 {
104+
regulator-name = "ldo1";
105+
regulator-min-microvolt = <800000>;
106+
regulator-max-microvolt = <3000000>;
107+
regulator-always-on;
108+
regulator-boot-on;
109+
};
110+
};
111+
};
112+
};

0 commit comments

Comments
 (0)