Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/fixed-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Fixed Voltage regulators
8
9maintainers:
10 - Liam Girdwood <lgirdwood@gmail.com>
11 - Mark Brown <broonie@kernel.org>
12
13description:
14 Any property defined as part of the core regulator binding, defined in
15 regulator.yaml, can also be used. However a fixed voltage regulator is
16 expected to have the regulator-min-microvolt and regulator-max-microvolt
17 to be the same.
18
19allOf:
20 - $ref: "regulator.yaml#"
21
22properties:
23 compatible:
24 const: regulator-fixed
25
26 regulator-name: true
27
28 gpio:
29 description: gpio to use for enable control
30 maxItems: 1
31
32 startup-delay-us:
33 description: startup time in microseconds
34 $ref: /schemas/types.yaml#/definitions/uint32
35
36 enable-active-high:
37 description:
38 Polarity of GPIO is Active high. If this property is missing,
39 the default assumed is Active low.
40 type: boolean
41
42 gpio-open-drain:
43 description:
44 GPIO is open drain type. If this property is missing then default
45 assumption is false.
46 type: boolean
47
48 vin-supply:
49 description: Input supply phandle.
50 $ref: /schemas/types.yaml#/definitions/phandle
51
52required:
53 - compatible
54 - regulator-name
55
56examples:
57 - |
58 reg_1v8: regulator-1v8 {
59 compatible = "regulator-fixed";
60 regulator-name = "1v8";
61 regulator-min-microvolt = <1800000>;
62 regulator-max-microvolt = <1800000>;
63 gpio = <&gpio1 16 0>;
64 startup-delay-us = <70000>;
65 enable-active-high;
66 regulator-boot-on;
67 gpio-open-drain;
68 vin-supply = <&parent_reg>;
69 };
70...