regulator: Convert stm32-pwr regulator to json-schema
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / regulator / st,stm32mp1-pwr-reg.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/st,stm32mp1-pwr-reg.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: STM32MP1 PWR voltage regulators
8
9 maintainers:
10   - Pascal Paillet <p.paillet@st.com>
11
12 properties:
13   compatible:
14     const: st,stm32mp1,pwr-reg
15
16   reg:
17     maxItems: 1
18
19   vdd-supply:
20     description: Input supply phandle(s) for vdd input
21
22   vdd_3v3_usbfs-supply:
23     description: Input supply phandle(s) for vdd_3v3_usbfs input
24
25 patternProperties:
26   "^(reg11|reg18|usb33)$":
27     type: object
28
29     allOf:
30       - $ref: "regulator.yaml#"
31
32 required:
33   - compatible
34   - reg
35
36 additionalProperties: false
37
38 examples:
39   - |
40     pwr@50001000 {
41       compatible = "st,stm32mp1,pwr-reg";
42       reg = <0x50001000 0x10>;
43       vdd-supply = <&vdd>;
44       vdd_3v3_usbfs-supply = <&vdd_usb>;
45
46       reg11 {
47         regulator-name = "reg11";
48         regulator-min-microvolt = <1100000>;
49         regulator-max-microvolt = <1100000>;
50       };
51
52       reg18 {
53         regulator-name = "reg18";
54         regulator-min-microvolt = <1800000>;
55         regulator-max-microvolt = <1800000>;
56       };
57
58       usb33 {
59         regulator-name = "usb33";
60         regulator-min-microvolt = <3300000>;
61         regulator-max-microvolt = <3300000>;
62       };
63     };
64 ...