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