Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: power: Convert bq27xxx dt to yaml

Convert the bq27xxx.txt to yaml format

CC: Pali Rohár <pali@kernel.org>
CC: Andrew F. Davis <afd@ti.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Dan Murphy and committed by
Sebastian Reichel
eda8ffcc 454b9c1f

+91 -56
-56
Documentation/devicetree/bindings/power/supply/bq27xxx.txt
··· 1 - TI BQ27XXX fuel gauge family 2 - 3 - Required properties: 4 - - compatible: contains one of the following: 5 - * "ti,bq27200" - BQ27200 6 - * "ti,bq27210" - BQ27210 7 - * "ti,bq27500" - deprecated, use revision specific property below 8 - * "ti,bq27510" - deprecated, use revision specific property below 9 - * "ti,bq27520" - deprecated, use revision specific property below 10 - * "ti,bq27500-1" - BQ27500/1 11 - * "ti,bq27510g1" - BQ27510-g1 12 - * "ti,bq27510g2" - BQ27510-g2 13 - * "ti,bq27510g3" - BQ27510-g3 14 - * "ti,bq27520g1" - BQ27520-g1 15 - * "ti,bq27520g2" - BQ27520-g2 16 - * "ti,bq27520g3" - BQ27520-g3 17 - * "ti,bq27520g4" - BQ27520-g4 18 - * "ti,bq27521" - BQ27521 19 - * "ti,bq27530" - BQ27530 20 - * "ti,bq27531" - BQ27531 21 - * "ti,bq27541" - BQ27541 22 - * "ti,bq27542" - BQ27542 23 - * "ti,bq27546" - BQ27546 24 - * "ti,bq27742" - BQ27742 25 - * "ti,bq27545" - BQ27545 26 - * "ti,bq27411" - BQ27411 27 - * "ti,bq27421" - BQ27421 28 - * "ti,bq27425" - BQ27425 29 - * "ti,bq27426" - BQ27426 30 - * "ti,bq27441" - BQ27441 31 - * "ti,bq27621" - BQ27621 32 - - reg: integer, I2C address of the fuel gauge. 33 - 34 - Optional properties: 35 - - monitored-battery: phandle of battery characteristics node 36 - The fuel gauge uses the following battery properties: 37 - + energy-full-design-microwatt-hours 38 - + charge-full-design-microamp-hours 39 - + voltage-min-design-microvolt 40 - Both or neither of the *-full-design-*-hours properties must be set. 41 - See Documentation/devicetree/bindings/power/supply/battery.txt 42 - 43 - Example: 44 - 45 - bat: battery { 46 - compatible = "simple-battery"; 47 - voltage-min-design-microvolt = <3200000>; 48 - energy-full-design-microwatt-hours = <5290000>; 49 - charge-full-design-microamp-hours = <1430000>; 50 - }; 51 - 52 - bq27510g3: fuel-gauge@55 { 53 - compatible = "ti,bq27510g3"; 54 - reg = <0x55>; 55 - monitored-battery = <&bat>; 56 - };
+91
Documentation/devicetree/bindings/power/supply/bq27xxx.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + # Copyright (C) 2020 Texas Instruments Incorporated 3 + %YAML 1.2 4 + --- 5 + $id: "http://devicetree.org/schemas/power/supply/bq27xxx.yaml#" 6 + $schema: "http://devicetree.org/meta-schemas/core.yaml#" 7 + 8 + title: TI BQ27XXX fuel gauge family 9 + 10 + maintainers: 11 + - Pali Rohár <pali@kernel.org> 12 + - Andrew F. Davis <afd@ti.com> 13 + - Sebastian Reichel <sre@kernel.org> 14 + 15 + description: | 16 + Support various Texas Instruments fuel gauge devices that share similar 17 + register maps and power supply properties 18 + 19 + allOf: 20 + - $ref: power-supply.yaml# 21 + 22 + properties: 23 + compatible: 24 + enum: 25 + - ti,bq27200 26 + - ti,bq27210 27 + - ti,bq27500 # deprecated, use revision specific property below 28 + - ti,bq27510 # deprecated, use revision specific property below 29 + - ti,bq27520 # deprecated, use revision specific property below 30 + - ti,bq27500-1 31 + - ti,bq27510g1 32 + - ti,bq27510g2 33 + - ti,bq27510g3 34 + - ti,bq27520g1 35 + - ti,bq27520g2 36 + - ti,bq27520g3 37 + - ti,bq27520g4 38 + - ti,bq27521 39 + - ti,bq27530 40 + - ti,bq27531 41 + - ti,bq27541 42 + - ti,bq27542 43 + - ti,bq27546 44 + - ti,bq27742 45 + - ti,bq27545 46 + - ti,bq27411 47 + - ti,bq27421 48 + - ti,bq27425 49 + - ti,bq27426 50 + - ti,bq27441 51 + - ti,bq27621 52 + 53 + reg: 54 + maxItems: 1 55 + description: integer, I2C address of the fuel gauge. 56 + 57 + monitored-battery: 58 + description: | 59 + phandle of battery characteristics node. 60 + The fuel gauge uses the following battery properties: 61 + - energy-full-design-microwatt-hours 62 + - charge-full-design-microamp-hours 63 + - voltage-min-design-microvolt 64 + Both or neither of the *-full-design-*-hours properties must be set. 65 + See Documentation/devicetree/bindings/power/supply/battery.txt 66 + 67 + power-supplies: true 68 + 69 + required: 70 + - compatible 71 + - reg 72 + additionalProperties: false 73 + 74 + examples: 75 + - | 76 + i2c0 { 77 + #address-cells = <1>; 78 + #size-cells = <0>; 79 + bat: battery { 80 + compatible = "simple-battery"; 81 + voltage-min-design-microvolt = <3200000>; 82 + energy-full-design-microwatt-hours = <5290000>; 83 + charge-full-design-microamp-hours = <1430000>; 84 + }; 85 + 86 + bq27510g3: fuel-gauge@55 { 87 + compatible = "ti,bq27510g3"; 88 + reg = <0x55>; 89 + monitored-battery = <&bat>; 90 + }; 91 + };