xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/dio5632-regulator.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1DIO5632 regulators
2
3Required properties:
4- compatible: "DIO5632"
5- reg: I2C slave address
6
7Optional Subnode:
8Device supports two regulators OUTP and OUTN. A sub node within the
9   device node describe the properties of these regulators. The sub-node
10   names must be as follows:
11	-For regulator outp, the sub node name should be "outp".
12	-For regulator outn, the sub node name should be "outn".
13
14-enable-gpios:(active high, output) Regulators are controlled by the input pins.
15   If it is connected to GPIO through host system then provide the
16   gpio number as per gpio.txt.
17
18Each regulator is defined using the standard binding for regulators.
19
20Example:
21
22	dio5632@3e {
23		compatible = "DIO5632";
24		reg = <0x3e>;
25
26		outp {
27			regulator-name = "outp";
28			regulator-boot-on;
29			regulator-always-on;
30			enable-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
31		};
32
33		outn {
34			regulator-name = "outn";
35			regulator-boot-on;
36			regulator-always-on;
37			enable-gpios = <&gpio0  RK_PC0 GPIO_ACTIVE_HIGH>;
38		};
39	};
40