Skip to content

Commit 6070471

Browse files
Stanislav Jakubekbroonie
authored andcommitted
dt-bindings: regulator: sprd,sc2731-regulator: convert to YAML
Convert the Spreadtrum SC2731 regulator bindings to DT schema. Change during conversion: - switch compatible from sprd,sc27xx-regulator to sprd,sc2731-regulator, same as the only in-tree user has done back in 2019 [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm64/boot/dts/sprd/sc2731.dtsi?h=v6.9&id=0419a75b1808dda225b17ba1509f195f23c0db88 Signed-off-by: Stanislav Jakubek <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/ZobxoobZvA8k3pyi@standask-GA-A55M-S2HP Signed-off-by: Mark Brown <[email protected]>
1 parent 32d1171 commit 6070471

File tree

2 files changed

+67
-43
lines changed

2 files changed

+67
-43
lines changed

Documentation/devicetree/bindings/regulator/sprd,sc2731-regulator.txt

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/sprd,sc2731-regulator.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Spreadtrum SC2731 Power Management IC regulators
8+
9+
maintainers:
10+
- Orson Zhai <[email protected]>
11+
- Baolin Wang <[email protected]>
12+
- Chunyan Zhang <[email protected]>
13+
14+
description: |
15+
The SC2731 integrates low-voltage and low quiescent current DCDC/LDO.
16+
14 LDO and 3 DCDCs are designed for external use. All DCDCs/LDOs have
17+
their own bypass (power-down) control signals. It is recommended to use
18+
external tantalum or MLCC ceramic capacitors with these LDOs.
19+
Valid names for the regulators are:
20+
BUCK:
21+
BUCK_CPU0, BUCK_CPU1, BUCK_RF
22+
LDO:
23+
LDO_CAMA0, LDO_CAMA1, LDO_CAMD0, LDO_CAMD1, LDO_CAMIO, LDO_CAMMOT,
24+
LDO_CON, LDO_EMMCCORE, LDO_SDCORE, LDO_SDIO, LDO_SRAM, LDO_USB33,
25+
LDO_VLDO, LDO_WIFIPA
26+
27+
properties:
28+
compatible:
29+
const: sprd,sc2731-regulator
30+
31+
patternProperties:
32+
"^BUCK_(CPU[0-1]|RF)$":
33+
type: object
34+
$ref: regulator.yaml#
35+
unevaluatedProperties: false
36+
37+
"^LDO_(CAM(A0|A1|D0|D1|IO|MOT)|CON|EMMCCORE|SD(CORE|IO)|SRAM|USB33|VLDO|WIFIPA)$":
38+
type: object
39+
$ref: regulator.yaml#
40+
unevaluatedProperties: false
41+
42+
required:
43+
- compatible
44+
45+
additionalProperties: false
46+
47+
examples:
48+
- |
49+
regulators {
50+
compatible = "sprd,sc2731-regulator";
51+
52+
BUCK_CPU0 {
53+
regulator-name = "vddarm0";
54+
regulator-min-microvolt = <400000>;
55+
regulator-max-microvolt = <1996875>;
56+
regulator-ramp-delay = <25000>;
57+
regulator-always-on;
58+
};
59+
60+
LDO_CAMA0 {
61+
regulator-name = "vddcama0";
62+
regulator-min-microvolt = <1200000>;
63+
regulator-max-microvolt = <3750000>;
64+
regulator-enable-ramp-delay = <100>;
65+
};
66+
};
67+
...

0 commit comments

Comments
 (0)