OSDN Git Service

c9453d7ce227b68ea1c6932c70de6d7835a430ee
[uclinux-h8/linux.git] / Documentation / devicetree / bindings / regulator / google,cros-ec-regulator.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/regulator/google,cros-ec-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: ChromeOS EC controlled voltage regulators
8
9 maintainers:
10   - Pi-Hsun Shih <pihsun@chromium.org>
11
12 description:
13   Any property defined as part of the core regulator binding, defined in
14   regulator.yaml, can also be used.
15
16 allOf:
17   - $ref: "regulator.yaml#"
18
19 properties:
20   compatible:
21     const: google,cros-ec-regulator
22
23   reg:
24     maxItems: 1
25     description: Identifier for the voltage regulator to ChromeOS EC.
26
27 required:
28   - compatible
29   - reg
30
31 examples:
32   - |
33     spi0 {
34         #address-cells = <1>;
35         #size-cells = <0>;
36
37         cros_ec: ec@0 {
38             compatible = "google,cros-ec-spi";
39             reg = <0>;
40             #address-cells = <1>;
41             #size-cells = <0>;
42
43             regulator@0 {
44                 compatible = "google,cros-ec-regulator";
45                 regulator-min-microvolt = <1800000>;
46                 regulator-max-microvolt = <3300000>;
47                 reg = <0>;
48             };
49         };
50     };
51 ...