~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/mfd/mc13xxx.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php