• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Sandbox pmic
2
3This device uses two drivers:
4- drivers/power/pmic/sandbox.c (for parent device)
5- drivers/power/regulator/sandbox.c (for child regulators)
6
7This file describes the binding info for the PMIC driver.
8
9To bind the regulators, please read the regulator binding info:
10- doc/device-tree-bindings/regulator/sandbox.txt
11
12Required PMIC node properties:
13- compatible: "sandbox,pmic"
14- reg = 0x40
15
16Required PMIC's "emul" subnode,  with property:
17- compatible: "sandbox,i2c-pmic"
18
19With the above properties, the pmic device can be used for read/write only.
20To bind each regulator, the optional regulator subnodes should exists.
21
22Optional subnodes:
23- ldo/buck subnodes of each device's regulator (see regulator binding info)
24
25Example:
26
27sandbox_pmic {
28	compatible = "sandbox,pmic";
29	reg = <0x40>;
30
31	/* Mandatory for I/O */
32	emul {
33		compatible = "sandbox,i2c-pmic";
34	};
35};
36