xref: /OK3568_Linux_fs/u-boot/doc/device-tree-bindings/pmic/sandbox.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSandbox pmic
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThis device uses two drivers:
4*4882a593Smuzhiyun- drivers/power/pmic/sandbox.c (for parent device)
5*4882a593Smuzhiyun- drivers/power/regulator/sandbox.c (for child regulators)
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThis file describes the binding info for the PMIC driver.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunTo bind the regulators, please read the regulator binding info:
10*4882a593Smuzhiyun- doc/device-tree-bindings/regulator/sandbox.txt
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunRequired PMIC node properties:
13*4882a593Smuzhiyun- compatible: "sandbox,pmic"
14*4882a593Smuzhiyun- reg = 0x40
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunRequired PMIC's "emul" subnode,  with property:
17*4882a593Smuzhiyun- compatible: "sandbox,i2c-pmic"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunWith the above properties, the pmic device can be used for read/write only.
20*4882a593SmuzhiyunTo bind each regulator, the optional regulator subnodes should exists.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunOptional subnodes:
23*4882a593Smuzhiyun- ldo/buck subnodes of each device's regulator (see regulator binding info)
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunExample:
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunsandbox_pmic {
28*4882a593Smuzhiyun	compatible = "sandbox,pmic";
29*4882a593Smuzhiyun	reg = <0x40>;
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun	/* Mandatory for I/O */
32*4882a593Smuzhiyun	emul {
33*4882a593Smuzhiyun		compatible = "sandbox,i2c-pmic";
34*4882a593Smuzhiyun	};
35*4882a593Smuzhiyun};
36