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