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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/power/supply/qcom,pm8916-bms-vm.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/qcom,pm8916-bms-vm.yaml (Architecture i386) and /Documentation/devicetree/bindings/power/supply/qcom,pm8916-bms-vm.yaml (Architecture sparc64)


  1 # SPDX-License-Identifier: (GPL-2.0-only OR BS      1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  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/qcom,pm8916-bms-vm.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Qualcomm Voltage Mode BMS                    7 title: Qualcomm Voltage Mode BMS
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Nikita Travkin <nikita@trvn.ru>                 10   - Nikita Travkin <nikita@trvn.ru>
 11                                                    11 
 12 description:                                       12 description:
 13   Voltage Mode BMS is a hardware block found i     13   Voltage Mode BMS is a hardware block found in some Qualcomm PMICs
 14   such as pm8916. This block performs battery      14   such as pm8916. This block performs battery voltage monitoring.
 15                                                    15 
 16 allOf:                                             16 allOf:
 17   - $ref: power-supply.yaml#                       17   - $ref: power-supply.yaml#
 18                                                    18 
 19 properties:                                        19 properties:
 20   compatible:                                      20   compatible:
 21     const: qcom,pm8916-bms-vm                      21     const: qcom,pm8916-bms-vm
 22                                                    22 
 23   reg:                                             23   reg:
 24     maxItems: 1                                    24     maxItems: 1
 25                                                    25 
 26   interrupts:                                      26   interrupts:
 27     items:                                         27     items:
 28       - description: BMS FSM left S3 mode          28       - description: BMS FSM left S3 mode
 29       - description: BMS FSM entered S2 mode       29       - description: BMS FSM entered S2 mode
 30       - description: OCV measured in S3 mode       30       - description: OCV measured in S3 mode
 31       - description: OCV below threshold           31       - description: OCV below threshold
 32       - description: FIFO update done              32       - description: FIFO update done
 33       - description: BMS FSM switched state        33       - description: BMS FSM switched state
 34                                                    34 
 35   interrupt-names:                                 35   interrupt-names:
 36     items:                                         36     items:
 37       - const: cv_leave                            37       - const: cv_leave
 38       - const: cv_enter                            38       - const: cv_enter
 39       - const: ocv_good                            39       - const: ocv_good
 40       - const: ocv_thr                             40       - const: ocv_thr
 41       - const: fifo                                41       - const: fifo
 42       - const: state_chg                           42       - const: state_chg
 43                                                    43 
 44   monitored-battery: true                          44   monitored-battery: true
 45                                                    45 
 46   power-supplies: true                             46   power-supplies: true
 47                                                    47 
 48 required:                                          48 required:
 49   - compatible                                     49   - compatible
 50   - reg                                            50   - reg
 51   - interrupts                                     51   - interrupts
 52   - interrupt-names                                52   - interrupt-names
 53   - monitored-battery                              53   - monitored-battery
 54                                                    54 
 55 additionalProperties: false                        55 additionalProperties: false
 56                                                    56 
 57 examples:                                          57 examples:
 58   - |                                              58   - |
 59     #include <dt-bindings/interrupt-controller     59     #include <dt-bindings/interrupt-controller/irq.h>
 60     pmic {                                         60     pmic {
 61       #address-cells = <1>;                        61       #address-cells = <1>;
 62       #size-cells = <0>;                           62       #size-cells = <0>;
 63                                                    63 
 64       battery@4000 {                               64       battery@4000 {
 65         compatible = "qcom,pm8916-bms-vm";         65         compatible = "qcom,pm8916-bms-vm";
 66         reg = <0x4000>;                            66         reg = <0x4000>;
 67         interrupts = <0x0 0x40 0 IRQ_TYPE_EDGE     67         interrupts = <0x0 0x40 0 IRQ_TYPE_EDGE_RISING>,
 68                      <0x0 0x40 1 IRQ_TYPE_EDGE     68                      <0x0 0x40 1 IRQ_TYPE_EDGE_RISING>,
 69                      <0x0 0x40 2 IRQ_TYPE_EDGE     69                      <0x0 0x40 2 IRQ_TYPE_EDGE_RISING>,
 70                      <0x0 0x40 3 IRQ_TYPE_EDGE     70                      <0x0 0x40 3 IRQ_TYPE_EDGE_RISING>,
 71                      <0x0 0x40 4 IRQ_TYPE_EDGE     71                      <0x0 0x40 4 IRQ_TYPE_EDGE_RISING>,
 72                      <0x0 0x40 5 IRQ_TYPE_EDGE     72                      <0x0 0x40 5 IRQ_TYPE_EDGE_RISING>;
 73         interrupt-names = "cv_leave",              73         interrupt-names = "cv_leave",
 74                           "cv_enter",              74                           "cv_enter",
 75                           "ocv_good",              75                           "ocv_good",
 76                           "ocv_thr",               76                           "ocv_thr",
 77                           "fifo",                  77                           "fifo",
 78                           "state_chg";             78                           "state_chg";
 79                                                    79 
 80         monitored-battery = <&battery>;            80         monitored-battery = <&battery>;
 81         power-supplies = <&pm8916_charger>;        81         power-supplies = <&pm8916_charger>;
 82       };                                           82       };
 83     };                                             83     };
                                                      

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