xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/mc13xxx.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Freescale MC13783/MC13892 Power Management Integrated Circuit (PMIC)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible : Should be "fsl,mc13783" or "fsl,mc13892"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunOptional properties:
7*4882a593Smuzhiyun- fsl,mc13xxx-uses-adc : Indicate the ADC is being used
8*4882a593Smuzhiyun- fsl,mc13xxx-uses-codec : Indicate the Audio Codec is being used
9*4882a593Smuzhiyun- fsl,mc13xxx-uses-rtc : Indicate the RTC is being used
10*4882a593Smuzhiyun- fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunSub-nodes:
13*4882a593Smuzhiyun- codec: Contain the Audio Codec node.
14*4882a593Smuzhiyun  - adc-port: Contain PMIC SSI port number used for ADC.
15*4882a593Smuzhiyun  - dac-port: Contain PMIC SSI port number used for DAC.
16*4882a593Smuzhiyun- leds : Contain the led nodes and initial register values in property
17*4882a593Smuzhiyun  "led-control". Number of register depends of used IC, for MC13783 is 6,
18*4882a593Smuzhiyun  for MC13892 is 4, for MC34708 is 1. See datasheet for bits definitions of
19*4882a593Smuzhiyun  these registers.
20*4882a593Smuzhiyun  - #address-cells: Must be 1.
21*4882a593Smuzhiyun  - #size-cells: Must be 0.
22*4882a593Smuzhiyun  Each led node should contain "reg", which used as LED ID (described below).
23*4882a593Smuzhiyun  Optional properties "label" and "linux,default-trigger" is described in
24*4882a593Smuzhiyun  Documentation/devicetree/bindings/leds/common.txt.
25*4882a593Smuzhiyun- regulators : Contain the regulator nodes. The regulators are bound using
26*4882a593Smuzhiyun  their names as listed below with their registers and bits for enabling.
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunMC13783 LED IDs:
29*4882a593Smuzhiyun    0  : Main display
30*4882a593Smuzhiyun    1  : AUX display
31*4882a593Smuzhiyun    2  : Keypad
32*4882a593Smuzhiyun    3  : Red 1
33*4882a593Smuzhiyun    4  : Green 1
34*4882a593Smuzhiyun    5  : Blue 1
35*4882a593Smuzhiyun    6  : Red 2
36*4882a593Smuzhiyun    7  : Green 2
37*4882a593Smuzhiyun    8  : Blue 2
38*4882a593Smuzhiyun    9  : Red 3
39*4882a593Smuzhiyun    10 : Green 3
40*4882a593Smuzhiyun    11 : Blue 3
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunMC13892 LED IDs:
43*4882a593Smuzhiyun    0  : Main display
44*4882a593Smuzhiyun    1  : AUX display
45*4882a593Smuzhiyun    2  : Keypad
46*4882a593Smuzhiyun    3  : Red
47*4882a593Smuzhiyun    4  : Green
48*4882a593Smuzhiyun    5  : Blue
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunMC34708 LED IDs:
51*4882a593Smuzhiyun    0  : Charger Red
52*4882a593Smuzhiyun    1  : Charger Green
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunMC13783 regulators:
55*4882a593Smuzhiyun    sw1a      : regulator SW1A      (register 24, bit 0)
56*4882a593Smuzhiyun    sw1b      : regulator SW1B      (register 25, bit 0)
57*4882a593Smuzhiyun    sw2a      : regulator SW2A      (register 26, bit 0)
58*4882a593Smuzhiyun    sw2b      : regulator SW2B      (register 27, bit 0)
59*4882a593Smuzhiyun    sw3       : regulator SW3       (register 29, bit 20)
60*4882a593Smuzhiyun    vaudio    : regulator VAUDIO    (register 32, bit 0)
61*4882a593Smuzhiyun    viohi     : regulator VIOHI     (register 32, bit 3)
62*4882a593Smuzhiyun    violo     : regulator VIOLO     (register 32, bit 6)
63*4882a593Smuzhiyun    vdig      : regulator VDIG      (register 32, bit 9)
64*4882a593Smuzhiyun    vgen      : regulator VGEN      (register 32, bit 12)
65*4882a593Smuzhiyun    vrfdig    : regulator VRFDIG    (register 32, bit 15)
66*4882a593Smuzhiyun    vrfref    : regulator VRFREF    (register 32, bit 18)
67*4882a593Smuzhiyun    vrfcp     : regulator VRFCP     (register 32, bit 21)
68*4882a593Smuzhiyun    vsim      : regulator VSIM      (register 33, bit 0)
69*4882a593Smuzhiyun    vesim     : regulator VESIM     (register 33, bit 3)
70*4882a593Smuzhiyun    vcam      : regulator VCAM      (register 33, bit 6)
71*4882a593Smuzhiyun    vrfbg     : regulator VRFBG     (register 33, bit 9)
72*4882a593Smuzhiyun    vvib      : regulator VVIB      (register 33, bit 11)
73*4882a593Smuzhiyun    vrf1      : regulator VRF1      (register 33, bit 12)
74*4882a593Smuzhiyun    vrf2      : regulator VRF2      (register 33, bit 15)
75*4882a593Smuzhiyun    vmmc1     : regulator VMMC1     (register 33, bit 18)
76*4882a593Smuzhiyun    vmmc2     : regulator VMMC2     (register 33, bit 21)
77*4882a593Smuzhiyun    gpo1      : regulator GPO1      (register 34, bit 6)
78*4882a593Smuzhiyun    gpo2      : regulator GPO2      (register 34, bit 8)
79*4882a593Smuzhiyun    gpo3      : regulator GPO3      (register 34, bit 10)
80*4882a593Smuzhiyun    gpo4      : regulator GPO4      (register 34, bit 12)
81*4882a593Smuzhiyun    pwgt1spi  : regulator PWGT1SPI  (register 34, bit 15)
82*4882a593Smuzhiyun    pwgt2spi  : regulator PWGT2SPI  (register 34, bit 16)
83*4882a593Smuzhiyun
84*4882a593SmuzhiyunMC13892 regulators:
85*4882a593Smuzhiyun    vcoincell : regulator VCOINCELL (register 13, bit 23)
86*4882a593Smuzhiyun    sw1       : regulator SW1	    (register 24, bit 0)
87*4882a593Smuzhiyun    sw2       : regulator SW2	    (register 25, bit 0)
88*4882a593Smuzhiyun    sw3       : regulator SW3	    (register 26, bit 0)
89*4882a593Smuzhiyun    sw4       : regulator SW4	    (register 27, bit 0)
90*4882a593Smuzhiyun    swbst     : regulator SWBST	    (register 29, bit 20)
91*4882a593Smuzhiyun    vgen1     : regulator VGEN1	    (register 32, bit 0)
92*4882a593Smuzhiyun    viohi     : regulator VIOHI	    (register 32, bit 3)
93*4882a593Smuzhiyun    vdig      : regulator VDIG	    (register 32, bit 9)
94*4882a593Smuzhiyun    vgen2     : regulator VGEN2	    (register 32, bit 12)
95*4882a593Smuzhiyun    vpll      : regulator VPLL	    (register 32, bit 15)
96*4882a593Smuzhiyun    vusb2     : regulator VUSB2	    (register 32, bit 18)
97*4882a593Smuzhiyun    vgen3     : regulator VGEN3	    (register 33, bit 0)
98*4882a593Smuzhiyun    vcam      : regulator VCAM	    (register 33, bit 6)
99*4882a593Smuzhiyun    vvideo    : regulator VVIDEO    (register 33, bit 12)
100*4882a593Smuzhiyun    vaudio    : regulator VAUDIO    (register 33, bit 15)
101*4882a593Smuzhiyun    vsd       : regulator VSD	    (register 33, bit 18)
102*4882a593Smuzhiyun    gpo1      : regulator GPO1	    (register 34, bit 6)
103*4882a593Smuzhiyun    gpo2      : regulator GPO2	    (register 34, bit 8)
104*4882a593Smuzhiyun    gpo3      : regulator GPO3	    (register 34, bit 10)
105*4882a593Smuzhiyun    gpo4      : regulator GPO4	    (register 34, bit 12)
106*4882a593Smuzhiyun    pwgt1spi  : regulator PWGT1SPI  (register 34, bit 15)
107*4882a593Smuzhiyun    pwgt2spi  : regulator PWGT2SPI  (register 34, bit 16)
108*4882a593Smuzhiyun    vusb      : regulator VUSB	    (register 50, bit 3)
109*4882a593Smuzhiyun
110*4882a593Smuzhiyun  The bindings details of individual regulator device can be found in:
111*4882a593Smuzhiyun  Documentation/devicetree/bindings/regulator/regulator.txt
112*4882a593Smuzhiyun
113*4882a593SmuzhiyunExamples:
114*4882a593Smuzhiyun
115*4882a593Smuzhiyunecspi@70010000 { /* ECSPI1 */
116*4882a593Smuzhiyun	cs-gpios = <&gpio4 24 0>, /* GPIO4_24 */
117*4882a593Smuzhiyun		   <&gpio4 25 0>; /* GPIO4_25 */
118*4882a593Smuzhiyun
119*4882a593Smuzhiyun	pmic: mc13892@0 {
120*4882a593Smuzhiyun		#address-cells = <1>;
121*4882a593Smuzhiyun		#size-cells = <0>;
122*4882a593Smuzhiyun		compatible = "fsl,mc13892";
123*4882a593Smuzhiyun		spi-max-frequency = <6000000>;
124*4882a593Smuzhiyun		reg = <0>;
125*4882a593Smuzhiyun		interrupt-parent = <&gpio0>;
126*4882a593Smuzhiyun		interrupts = <8>;
127*4882a593Smuzhiyun
128*4882a593Smuzhiyun		leds {
129*4882a593Smuzhiyun			#address-cells = <1>;
130*4882a593Smuzhiyun			#size-cells = <0>;
131*4882a593Smuzhiyun			led-control = <0x000 0x000 0x0e0 0x000>;
132*4882a593Smuzhiyun
133*4882a593Smuzhiyun			sysled@3 {
134*4882a593Smuzhiyun				reg = <3>;
135*4882a593Smuzhiyun				label = "system:red:live";
136*4882a593Smuzhiyun				linux,default-trigger = "heartbeat";
137*4882a593Smuzhiyun			};
138*4882a593Smuzhiyun		};
139*4882a593Smuzhiyun
140*4882a593Smuzhiyun		regulators {
141*4882a593Smuzhiyun			sw1_reg: mc13892__sw1 {
142*4882a593Smuzhiyun				regulator-min-microvolt = <600000>;
143*4882a593Smuzhiyun				regulator-max-microvolt = <1375000>;
144*4882a593Smuzhiyun				regulator-boot-on;
145*4882a593Smuzhiyun				regulator-always-on;
146*4882a593Smuzhiyun			};
147*4882a593Smuzhiyun
148*4882a593Smuzhiyun			sw2_reg: mc13892__sw2 {
149*4882a593Smuzhiyun				regulator-min-microvolt = <900000>;
150*4882a593Smuzhiyun				regulator-max-microvolt = <1850000>;
151*4882a593Smuzhiyun				regulator-boot-on;
152*4882a593Smuzhiyun				regulator-always-on;
153*4882a593Smuzhiyun			};
154*4882a593Smuzhiyun		};
155*4882a593Smuzhiyun	};
156*4882a593Smuzhiyun};
157