xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/sprd,sc27xx-pmic.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotSpreadtrum SC27xx Power Management Integrated Circuit (PMIC)
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe Spreadtrum SC27xx series PMICs contain SC2720, SC2721, SC2723, SC2730
4*c66ec88fSEmmanuel Vadotand SC2731. The Spreadtrum PMIC belonging to SC27xx series integrates all
5*c66ec88fSEmmanuel Vadotmobile handset power management, audio codec, battery management and user
6*c66ec88fSEmmanuel Vadotinterface support function in a single chip. It has 6 major functional
7*c66ec88fSEmmanuel Vadotblocks:
8*c66ec88fSEmmanuel Vadot- DCDCs to support CPU, memory.
9*c66ec88fSEmmanuel Vadot- LDOs to support both internal and external requirement.
10*c66ec88fSEmmanuel Vadot- Battery management system, such as charger, fuel gauge.
11*c66ec88fSEmmanuel Vadot- Audio codec.
12*c66ec88fSEmmanuel Vadot- User interface function, such as indicator, flash LED and so on.
13*c66ec88fSEmmanuel Vadot- IC level interface, such as power on/off control, RTC and typec and so on.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotRequired properties:
16*c66ec88fSEmmanuel Vadot- compatible: Should be one of the following:
17*c66ec88fSEmmanuel Vadot	"sprd,sc2720"
18*c66ec88fSEmmanuel Vadot	"sprd,sc2721"
19*c66ec88fSEmmanuel Vadot	"sprd,sc2723"
20*c66ec88fSEmmanuel Vadot	"sprd,sc2730"
21*c66ec88fSEmmanuel Vadot	"sprd,sc2731"
22*c66ec88fSEmmanuel Vadot- reg: The address of the device chip select, should be 0.
23*c66ec88fSEmmanuel Vadot- spi-max-frequency: Typically set to 26000000.
24*c66ec88fSEmmanuel Vadot- interrupts: The interrupt line the device is connected to.
25*c66ec88fSEmmanuel Vadot- interrupt-controller: Marks the device node as an interrupt controller.
26*c66ec88fSEmmanuel Vadot- #interrupt-cells: The number of cells to describe an PMIC IRQ, must be 2.
27*c66ec88fSEmmanuel Vadot- #address-cells: Child device offset number of cells, must be 1.
28*c66ec88fSEmmanuel Vadot- #size-cells: Child device size number of cells, must be 0.
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel VadotExample:
31*c66ec88fSEmmanuel Vadotpmic@0 {
32*c66ec88fSEmmanuel Vadot	compatible = "sprd,sc2731";
33*c66ec88fSEmmanuel Vadot	reg = <0>;
34*c66ec88fSEmmanuel Vadot	spi-max-frequency = <26000000>;
35*c66ec88fSEmmanuel Vadot	interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
36*c66ec88fSEmmanuel Vadot	interrupt-controller;
37*c66ec88fSEmmanuel Vadot	#interrupt-cells = <2>;
38*c66ec88fSEmmanuel Vadot	#address-cells = <1>;
39*c66ec88fSEmmanuel Vadot	#size-cells = <0>;
40*c66ec88fSEmmanuel Vadot};
41