Back to home page

OSCL-LXR

 
 

    


0001 * Freescale MC13783/MC13892 Power Management Integrated Circuit (PMIC)
0002 
0003 Required properties:
0004 - compatible : Should be "fsl,mc13783" or "fsl,mc13892"
0005 
0006 Optional properties:
0007 - fsl,mc13xxx-uses-adc : Indicate the ADC is being used
0008 - fsl,mc13xxx-uses-codec : Indicate the Audio Codec is being used
0009 - fsl,mc13xxx-uses-rtc : Indicate the RTC is being used
0010 - fsl,mc13xxx-uses-touch : Indicate the touchscreen controller is being used
0011 
0012 Sub-nodes:
0013 - codec: Contain the Audio Codec node.
0014   - adc-port: Contain PMIC SSI port number used for ADC.
0015   - dac-port: Contain PMIC SSI port number used for DAC.
0016 - leds : Contain the led nodes and initial register values in property
0017   "led-control". Number of register depends of used IC, for MC13783 is 6,
0018   for MC13892 is 4, for MC34708 is 1. See datasheet for bits definitions of
0019   these registers.
0020   - #address-cells: Must be 1.
0021   - #size-cells: Must be 0.
0022   Each led node should contain "reg", which used as LED ID (described below).
0023   Optional properties "label" and "linux,default-trigger" is described in
0024   Documentation/devicetree/bindings/leds/common.txt.
0025 - regulators : Contain the regulator nodes. The regulators are bound using
0026   their names as listed below with their registers and bits for enabling.
0027 
0028 MC13783 LED IDs:
0029     0  : Main display
0030     1  : AUX display
0031     2  : Keypad
0032     3  : Red 1
0033     4  : Green 1
0034     5  : Blue 1
0035     6  : Red 2
0036     7  : Green 2
0037     8  : Blue 2
0038     9  : Red 3
0039     10 : Green 3
0040     11 : Blue 3
0041 
0042 MC13892 LED IDs:
0043     0  : Main display
0044     1  : AUX display
0045     2  : Keypad
0046     3  : Red
0047     4  : Green
0048     5  : Blue
0049 
0050 MC34708 LED IDs:
0051     0  : Charger Red
0052     1  : Charger Green
0053 
0054 MC13783 regulators:
0055     sw1a      : regulator SW1A      (register 24, bit 0)
0056     sw1b      : regulator SW1B      (register 25, bit 0)
0057     sw2a      : regulator SW2A      (register 26, bit 0)
0058     sw2b      : regulator SW2B      (register 27, bit 0)
0059     sw3       : regulator SW3       (register 29, bit 20)
0060     vaudio    : regulator VAUDIO    (register 32, bit 0)
0061     viohi     : regulator VIOHI     (register 32, bit 3)
0062     violo     : regulator VIOLO     (register 32, bit 6)
0063     vdig      : regulator VDIG      (register 32, bit 9)
0064     vgen      : regulator VGEN      (register 32, bit 12)
0065     vrfdig    : regulator VRFDIG    (register 32, bit 15)
0066     vrfref    : regulator VRFREF    (register 32, bit 18)
0067     vrfcp     : regulator VRFCP     (register 32, bit 21)
0068     vsim      : regulator VSIM      (register 33, bit 0)
0069     vesim     : regulator VESIM     (register 33, bit 3)
0070     vcam      : regulator VCAM      (register 33, bit 6)
0071     vrfbg     : regulator VRFBG     (register 33, bit 9)
0072     vvib      : regulator VVIB      (register 33, bit 11)
0073     vrf1      : regulator VRF1      (register 33, bit 12)
0074     vrf2      : regulator VRF2      (register 33, bit 15)
0075     vmmc1     : regulator VMMC1     (register 33, bit 18)
0076     vmmc2     : regulator VMMC2     (register 33, bit 21)
0077     gpo1      : regulator GPO1      (register 34, bit 6)
0078     gpo2      : regulator GPO2      (register 34, bit 8)
0079     gpo3      : regulator GPO3      (register 34, bit 10)
0080     gpo4      : regulator GPO4      (register 34, bit 12)
0081     pwgt1spi  : regulator PWGT1SPI  (register 34, bit 15)
0082     pwgt2spi  : regulator PWGT2SPI  (register 34, bit 16)
0083 
0084 MC13892 regulators:
0085     vcoincell : regulator VCOINCELL (register 13, bit 23)
0086     sw1       : regulator SW1       (register 24, bit 0)
0087     sw2       : regulator SW2       (register 25, bit 0)
0088     sw3       : regulator SW3       (register 26, bit 0)
0089     sw4       : regulator SW4       (register 27, bit 0)
0090     swbst     : regulator SWBST     (register 29, bit 20)
0091     vgen1     : regulator VGEN1     (register 32, bit 0)
0092     viohi     : regulator VIOHI     (register 32, bit 3)
0093     vdig      : regulator VDIG      (register 32, bit 9)
0094     vgen2     : regulator VGEN2     (register 32, bit 12)
0095     vpll      : regulator VPLL      (register 32, bit 15)
0096     vusb2     : regulator VUSB2     (register 32, bit 18)
0097     vgen3     : regulator VGEN3     (register 33, bit 0)
0098     vcam      : regulator VCAM      (register 33, bit 6)
0099     vvideo    : regulator VVIDEO    (register 33, bit 12)
0100     vaudio    : regulator VAUDIO    (register 33, bit 15)
0101     vsd       : regulator VSD       (register 33, bit 18)
0102     gpo1      : regulator GPO1      (register 34, bit 6)
0103     gpo2      : regulator GPO2      (register 34, bit 8)
0104     gpo3      : regulator GPO3      (register 34, bit 10)
0105     gpo4      : regulator GPO4      (register 34, bit 12)
0106     pwgt1spi  : regulator PWGT1SPI  (register 34, bit 15)
0107     pwgt2spi  : regulator PWGT2SPI  (register 34, bit 16)
0108     vusb      : regulator VUSB      (register 50, bit 3)
0109 
0110   The bindings details of individual regulator device can be found in:
0111   Documentation/devicetree/bindings/regulator/regulator.txt
0112 
0113 Examples:
0114 
0115 ecspi@70010000 { /* ECSPI1 */
0116         cs-gpios = <&gpio4 24 0>, /* GPIO4_24 */
0117                    <&gpio4 25 0>; /* GPIO4_25 */
0118 
0119         pmic: mc13892@0 {
0120                 #address-cells = <1>;
0121                 #size-cells = <0>;
0122                 compatible = "fsl,mc13892";
0123                 spi-max-frequency = <6000000>;
0124                 reg = <0>;
0125                 interrupt-parent = <&gpio0>;
0126                 interrupts = <8>;
0127 
0128                 leds {
0129                         #address-cells = <1>;
0130                         #size-cells = <0>;
0131                         led-control = <0x000 0x000 0x0e0 0x000>;
0132 
0133                         sysled@3 {
0134                                 reg = <3>;
0135                                 label = "system:red:live";
0136                                 linux,default-trigger = "heartbeat";
0137                         };
0138                 };
0139 
0140                 regulators {
0141                         sw1_reg: mc13892__sw1 {
0142                                 regulator-min-microvolt = <600000>;
0143                                 regulator-max-microvolt = <1375000>;
0144                                 regulator-boot-on;
0145                                 regulator-always-on;
0146                         };
0147 
0148                         sw2_reg: mc13892__sw2 {
0149                                 regulator-min-microvolt = <900000>;
0150                                 regulator-max-microvolt = <1850000>;
0151                                 regulator-boot-on;
0152                                 regulator-always-on;
0153                         };
0154                 };
0155         };
0156 };