xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/88pm860x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Marvell 88PM860x Power Management IC
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired parent device properties:
4*4882a593Smuzhiyun- compatible : "marvell,88pm860x"
5*4882a593Smuzhiyun- reg : the I2C slave address for the 88pm860x chip
6*4882a593Smuzhiyun- interrupts : IRQ line for the 88pm860x chip
7*4882a593Smuzhiyun- interrupt-controller: describes the 88pm860x as an interrupt controller (has its own domain)
8*4882a593Smuzhiyun- #interrupt-cells : should be 1.
9*4882a593Smuzhiyun		- The cell is the 88pm860x local IRQ number
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunOptional parent device properties:
12*4882a593Smuzhiyun- marvell,88pm860x-irq-read-clr: inicates whether interrupt status is cleared by read
13*4882a593Smuzhiyun- marvell,88pm860x-slave-addr: 88pm860x are two chips solution. <reg> stores the I2C address
14*4882a593Smuzhiyun				of one chip, and this property stores the I2C address of
15*4882a593Smuzhiyun				another chip.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun88pm860x consists of a large and varied group of sub-devices:
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunDevice			 Supply Names	 Description
20*4882a593Smuzhiyun------			 ------------	 -----------
21*4882a593Smuzhiyun88pm860x-onkey		:		: On key
22*4882a593Smuzhiyun88pm860x-rtc		:		: RTC
23*4882a593Smuzhiyun88pm8607		:		: Regulators
24*4882a593Smuzhiyun88pm860x-backlight	:		: Backlight
25*4882a593Smuzhiyun88pm860x-led		:		: Led
26*4882a593Smuzhiyun88pm860x-touch		:		: Touchscreen
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunExample:
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun	pmic: 88pm860x@34 {
31*4882a593Smuzhiyun		compatible = "marvell,88pm860x";
32*4882a593Smuzhiyun		reg = <0x34>;
33*4882a593Smuzhiyun		interrupts = <4>;
34*4882a593Smuzhiyun		interrupt-parent = <&intc>;
35*4882a593Smuzhiyun		interrupt-controller;
36*4882a593Smuzhiyun		#interrupt-cells = <1>;
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun		marvell,88pm860x-irq-read-clr;
39*4882a593Smuzhiyun		marvell,88pm860x-slave-addr = <0x11>;
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun		regulators {
42*4882a593Smuzhiyun			BUCK1 {
43*4882a593Smuzhiyun				regulator-min-microvolt = <1000000>;
44*4882a593Smuzhiyun				regulator-max-microvolt = <1500000>;
45*4882a593Smuzhiyun				regulator-boot-on;
46*4882a593Smuzhiyun				regulator-always-on;
47*4882a593Smuzhiyun			};
48*4882a593Smuzhiyun			LDO1 {
49*4882a593Smuzhiyun				regulator-min-microvolt = <1200000>;
50*4882a593Smuzhiyun				regulator-max-microvolt = <2800000>;
51*4882a593Smuzhiyun				regulator-boot-on;
52*4882a593Smuzhiyun				regulator-always-on;
53*4882a593Smuzhiyun			};
54*4882a593Smuzhiyun		};
55*4882a593Smuzhiyun		rtc {
56*4882a593Smuzhiyun			marvell,88pm860x-vrtc = <1>;
57*4882a593Smuzhiyun		};
58*4882a593Smuzhiyun		touch {
59*4882a593Smuzhiyun			marvell,88pm860x-gpadc-prebias = <1>;
60*4882a593Smuzhiyun			marvell,88pm860x-gpadc-slot-cycle = <1>;
61*4882a593Smuzhiyun			marvell,88pm860x-tsi-prebias = <6>;
62*4882a593Smuzhiyun			marvell,88pm860x-pen-prebias = <16>;
63*4882a593Smuzhiyun			marvell,88pm860x-pen-prechg = <2>;
64*4882a593Smuzhiyun			marvell,88pm860x-resistor-X = <300>;
65*4882a593Smuzhiyun		};
66*4882a593Smuzhiyun		backlights {
67*4882a593Smuzhiyun			backlight-0 {
68*4882a593Smuzhiyun				marvell,88pm860x-iset = <4>;
69*4882a593Smuzhiyun				marvell,88pm860x-pwm = <3>;
70*4882a593Smuzhiyun			};
71*4882a593Smuzhiyun			backlight-2 {
72*4882a593Smuzhiyun			};
73*4882a593Smuzhiyun		};
74*4882a593Smuzhiyun		leds {
75*4882a593Smuzhiyun			led0-red {
76*4882a593Smuzhiyun				marvell,88pm860x-iset = <12>;
77*4882a593Smuzhiyun			};
78*4882a593Smuzhiyun			led0-green {
79*4882a593Smuzhiyun				marvell,88pm860x-iset = <12>;
80*4882a593Smuzhiyun			};
81*4882a593Smuzhiyun			led0-blue {
82*4882a593Smuzhiyun				marvell,88pm860x-iset = <12>;
83*4882a593Smuzhiyun			};
84*4882a593Smuzhiyun		};
85*4882a593Smuzhiyun	};
86