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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/power/supply/ti,lp8727.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/ti,lp8727.yaml (Architecture i386) and /Documentation/devicetree/bindings/power/supply/ti,lp8727.yaml (Architecture m68k)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/power/suppl      4 $id: http://devicetree.org/schemas/power/supply/ti,lp8727.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: TI/National Semiconductor LP8727 Charge      7 title: TI/National Semiconductor LP8727 Charger
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Sebastian Reichel <sre@kernel.org>              10   - Sebastian Reichel <sre@kernel.org>
 11                                                    11 
 12 allOf:                                             12 allOf:
 13   - $ref: power-supply.yaml#                       13   - $ref: power-supply.yaml#
 14                                                    14 
 15 properties:                                        15 properties:
 16   compatible:                                      16   compatible:
 17     const: ti,lp8727                               17     const: ti,lp8727
 18                                                    18 
 19   reg:                                             19   reg:
 20     const: 0x27                                    20     const: 0x27
 21                                                    21 
 22   interrupts:                                      22   interrupts:
 23     maxItems: 1                                    23     maxItems: 1
 24                                                    24 
 25   debounce-ms:                                     25   debounce-ms:
 26     description: interrupt debounce time in ms     26     description: interrupt debounce time in ms
 27                                                    27 
 28 patternProperties:                                 28 patternProperties:
 29   '^(ac|usb)$':                                    29   '^(ac|usb)$':
 30     type: object                                   30     type: object
 31     additionalProperties: false                    31     additionalProperties: false
 32     description: USB/AC charging parameters        32     description: USB/AC charging parameters
 33     properties:                                    33     properties:
 34       charger-type:                                34       charger-type:
 35         enum:                                      35         enum:
 36           - ac                                     36           - ac
 37           - usb                                    37           - usb
 38                                                    38 
 39       eoc-level:                                   39       eoc-level:
 40         $ref: /schemas/types.yaml#/definitions     40         $ref: /schemas/types.yaml#/definitions/uint8
 41         minimum: 0                                 41         minimum: 0
 42         maximum: 6                                 42         maximum: 6
 43         description: |                             43         description: |
 44           End of Charge Percentage with the fo     44           End of Charge Percentage with the following mapping:
 45           0 = 5%, 1 = 10%, 2 = 16%, 3 = 20%, 4     45           0 = 5%, 1 = 10%, 2 = 16%, 3 = 20%, 4 = 25%, 5 = 33%, 6 = 50%
 46                                                    46 
 47       charging-current:                            47       charging-current:
 48         $ref: /schemas/types.yaml#/definitions     48         $ref: /schemas/types.yaml#/definitions/uint8
 49         minimum: 0                                 49         minimum: 0
 50         maximum: 9                                 50         maximum: 9
 51         description: |                             51         description: |
 52           Charging current with the following      52           Charging current with the following mapping:
 53           0 = 90mA, 1 = 100mA, 2 = 400mA, 3 =      53           0 = 90mA, 1 = 100mA, 2 = 400mA, 3 = 450mA, 4 = 500mA, 5 = 600mA,
 54           6 = 700mA, 7 = 800mA, 8 = 900mA, 9 =     54           6 = 700mA, 7 = 800mA, 8 = 900mA, 9 = 1000mA
 55                                                    55 
 56 required:                                          56 required:
 57   - compatible                                     57   - compatible
 58   - reg                                            58   - reg
 59                                                    59 
 60 additionalProperties: false                        60 additionalProperties: false
 61                                                    61 
 62 examples:                                          62 examples:
 63   - |                                              63   - |
 64     #include <dt-bindings/interrupt-controller     64     #include <dt-bindings/interrupt-controller/irq.h>
 65     i2c {                                          65     i2c {
 66       #address-cells = <1>;                        66       #address-cells = <1>;
 67       #size-cells = <0>;                           67       #size-cells = <0>;
 68                                                    68 
 69       lp8727: charger@27 {                         69       lp8727: charger@27 {
 70         compatible = "ti,lp8727";                  70         compatible = "ti,lp8727";
 71         reg = <0x27>;                              71         reg = <0x27>;
 72         interrupt-parent = <&gpio5>;               72         interrupt-parent = <&gpio5>;
 73         interrupts = <6 IRQ_TYPE_EDGE_FALLING>     73         interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
 74         debounce-ms = <300>;                       74         debounce-ms = <300>;
 75                                                    75 
 76         /* AC charger: 5% EOC and 500mA chargi     76         /* AC charger: 5% EOC and 500mA charging current */
 77         ac {                                       77         ac {
 78           charger-type = "ac";                     78           charger-type = "ac";
 79           eoc-level = /bits/ 8 <0>;                79           eoc-level = /bits/ 8 <0>;
 80           charging-current = /bits/ 8 <4>;         80           charging-current = /bits/ 8 <4>;
 81         };                                         81         };
 82                                                    82 
 83         /* USB charger: 10% EOC and 400mA char     83         /* USB charger: 10% EOC and 400mA charging current */
 84         usb {                                      84         usb {
 85           charger-type = "usb";                    85           charger-type = "usb";
 86           eoc-level = /bits/ 8 <1>;                86           eoc-level = /bits/ 8 <1>;
 87           charging-current = /bits/ 8 <2>;         87           charging-current = /bits/ 8 <2>;
 88         };                                         88         };
 89       };                                           89       };
 90     };                                             90     };
                                                      

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