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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml

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 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml (Version linux-6.12-rc7) and /Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml (Version linux-6.2.16)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 # Copyright (C) 2021 Sebastian Reichel              2 # Copyright (C) 2021 Sebastian Reichel
  3 %YAML 1.2                                           3 %YAML 1.2
  4 ---                                                 4 ---
  5 $id: http://devicetree.org/schemas/power/suppl      5 $id: http://devicetree.org/schemas/power/supply/cpcap-charger.yaml#
  6 $schema: http://devicetree.org/meta-schemas/co      6 $schema: http://devicetree.org/meta-schemas/core.yaml#
  7                                                     7 
  8 title: Motorola CPCAP PMIC charger                  8 title: Motorola CPCAP PMIC charger
  9                                                     9 
 10 maintainers:                                       10 maintainers:
 11   - Tony Lindgren <tony@atomide.com>                11   - Tony Lindgren <tony@atomide.com>
 12   - Sebastian Reichel <sre@kernel.org>              12   - Sebastian Reichel <sre@kernel.org>
 13                                                    13 
 14 description: |                                     14 description: |
 15   Motorola CPCAP is a PMIC found in some mobil     15   Motorola CPCAP is a PMIC found in some mobile phones, e.g.
 16   the Droid 4. This binding describes its batt     16   the Droid 4. This binding describes its battery charger
 17   sub-function.                                    17   sub-function.
 18                                                    18 
 19 allOf:                                             19 allOf:
 20   - $ref: power-supply.yaml#                       20   - $ref: power-supply.yaml#
 21                                                    21 
 22 properties:                                        22 properties:
 23   compatible:                                      23   compatible:
 24     const: motorola,mapphone-cpcap-charger         24     const: motorola,mapphone-cpcap-charger
 25                                                    25 
 26   interrupts:                                      26   interrupts:
 27     items:                                         27     items:
 28       - description: charger detection interru     28       - description: charger detection interrupt
 29       - description: reverse charge interrupt      29       - description: reverse charge interrupt
 30       - description: SE1 charger detection int     30       - description: SE1 charger detection interrupt
 31       - description: SE0 charger detection int     31       - description: SE0 charger detection interrupt
 32       - description: reverse mode interrupt        32       - description: reverse mode interrupt
 33       - description: charge current 2 interrup     33       - description: charge current 2 interrupt
 34       - description: charge current 1 interrup     34       - description: charge current 1 interrupt
 35       - description: VBUS valid interrupt          35       - description: VBUS valid interrupt
 36       - description: battery detect interrupt      36       - description: battery detect interrupt
 37                                                    37 
 38   interrupt-names:                                 38   interrupt-names:
 39     items:                                         39     items:
 40       - const: chrg_det                            40       - const: chrg_det
 41       - const: rvrs_chrg                           41       - const: rvrs_chrg
 42       - const: chrg_se1b                           42       - const: chrg_se1b
 43       - const: se0conn                             43       - const: se0conn
 44       - const: rvrs_mode                           44       - const: rvrs_mode
 45       - const: chrgcurr2                           45       - const: chrgcurr2
 46       - const: chrgcurr1                           46       - const: chrgcurr1
 47       - const: vbusvld                             47       - const: vbusvld
 48       - const: battdetb                            48       - const: battdetb
 49                                                    49 
 50   io-channels:                                     50   io-channels:
 51     items:                                         51     items:
 52       - description: battery temperature           52       - description: battery temperature
 53       - description: battery voltage               53       - description: battery voltage
 54       - description: VBUS voltage                  54       - description: VBUS voltage
 55       - description: battery charge current        55       - description: battery charge current
 56       - description: battery current               56       - description: battery current
 57                                                    57 
 58   io-channel-names:                                58   io-channel-names:
 59     items:                                         59     items:
 60       - const: battdetb                            60       - const: battdetb
 61       - const: battp                               61       - const: battp
 62       - const: vbus                                62       - const: vbus
 63       - const: chg_isense                          63       - const: chg_isense
 64       - const: batti                               64       - const: batti
 65                                                    65 
 66   mode-gpios:                                      66   mode-gpios:
 67     description: |                                 67     description: |
 68       Optionally CPCAP charger can have a comp     68       Optionally CPCAP charger can have a companion wireless
 69       charge controller that is controlled wit     69       charge controller that is controlled with two GPIOs
 70       that are active low.                         70       that are active low.
 71     minItems: 2                                    71     minItems: 2
 72     maxItems: 2                                    72     maxItems: 2
 73                                                    73 
 74 required:                                          74 required:
 75   - compatible                                     75   - compatible
 76   - interrupts                                     76   - interrupts
 77   - interrupt-names                                77   - interrupt-names
 78   - io-channels                                    78   - io-channels
 79   - io-channel-names                               79   - io-channel-names
 80                                                    80 
 81 additionalProperties: false                        81 additionalProperties: false
 82                                                    82 
 83 examples:                                          83 examples:
 84   - |                                              84   - |
 85     #include <dt-bindings/gpio/gpio.h>             85     #include <dt-bindings/gpio/gpio.h>
 86     cpcap {                                        86     cpcap {
 87       charger {                                    87       charger {
 88         compatible = "motorola,mapphone-cpcap-     88         compatible = "motorola,mapphone-cpcap-charger";
 89         interrupts-extended =                      89         interrupts-extended =
 90                 <&cpcap 13 0>, <&cpcap 12 0>,      90                 <&cpcap 13 0>, <&cpcap 12 0>, <&cpcap 29 0>, <&cpcap 28 0>,
 91                 <&cpcap 22 0>, <&cpcap 21 0>,      91                 <&cpcap 22 0>, <&cpcap 21 0>, <&cpcap 20 0>, <&cpcap 19 0>,
 92                 <&cpcap 54 0>;                     92                 <&cpcap 54 0>;
 93         interrupt-names =                          93         interrupt-names =
 94                 "chrg_det", "rvrs_chrg", "chrg     94                 "chrg_det", "rvrs_chrg", "chrg_se1b", "se0conn",
 95                 "rvrs_mode", "chrgcurr2", "chr     95                 "rvrs_mode", "chrgcurr2", "chrgcurr1", "vbusvld",
 96                 "battdetb";                        96                 "battdetb";
 97         mode-gpios = <&gpio3 29 GPIO_ACTIVE_LO     97         mode-gpios = <&gpio3 29 GPIO_ACTIVE_LOW>,
 98                      <&gpio3 23 GPIO_ACTIVE_LO     98                      <&gpio3 23 GPIO_ACTIVE_LOW>;
 99         io-channels = <&cpcap_adc 0>, <&cpcap_     99         io-channels = <&cpcap_adc 0>, <&cpcap_adc 1>,
100                       <&cpcap_adc 2>, <&cpcap_    100                       <&cpcap_adc 2>, <&cpcap_adc 5>,
101                       <&cpcap_adc 6>;             101                       <&cpcap_adc 6>;
102         io-channel-names = "battdetb", "battp"    102         io-channel-names = "battdetb", "battp",
103                            "vbus", "chg_isense    103                            "vbus", "chg_isense",
104                            "batti";               104                            "batti";
105       };                                          105       };
106     };                                            106     };
                                                      

~ [ 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