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

dt-bindings: power: supply: ab8500: Standard monitored-battery

Make monitored-battery the standard phandle to the battery we monitor
for the AB8500 charger components. We make the old "battery" phandle
deprecated, and the new one required so we detect and fix all users to
use the standard phandle name.

Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Linus Walleij and committed by
Sebastian Reichel
eb415571 db6e4362

+28 -12
+7 -3
Documentation/devicetree/bindings/power/supply/stericsson,ab8500-btemp.yaml
··· 17 17 compatible: 18 18 const: stericsson,ab8500-btemp 19 19 20 - battery: 20 + monitored-battery: 21 21 $ref: /schemas/types.yaml#/definitions/phandle 22 22 description: phandle to battery node 23 + 24 + battery: 25 + $ref: /schemas/types.yaml#/definitions/phandle 26 + deprecated: true 23 27 24 28 interrupts: 25 29 maxItems: 5 ··· 46 42 47 43 required: 48 44 - compatible 49 - - battery 45 + - monitored-battery 50 46 - interrupts 51 47 - interrupt-names 52 48 - io-channels ··· 60 56 pmic { 61 57 battery-temperature { 62 58 compatible = "stericsson,ab8500-btemp"; 63 - battery = <&ab8500_battery>; 59 + monitored-battery = <&battery>; 64 60 interrupts = <20 IRQ_TYPE_LEVEL_HIGH>, 65 61 <80 IRQ_TYPE_LEVEL_HIGH>, 66 62 <83 IRQ_TYPE_LEVEL_HIGH>,
+7 -3
Documentation/devicetree/bindings/power/supply/stericsson,ab8500-chargalg.yaml
··· 17 17 compatible: 18 18 const: stericsson,ab8500-chargalg 19 19 20 - battery: 20 + monitored-battery: 21 21 $ref: /schemas/types.yaml#/definitions/phandle 22 22 description: phandle to battery node 23 23 24 + battery: 25 + $ref: /schemas/types.yaml#/definitions/phandle 26 + deprecated: true 27 + 24 28 required: 25 29 - compatible 26 - - battery 30 + - monitored-battery 27 31 28 32 additionalProperties: false 29 33 ··· 36 32 pmic { 37 33 charging-algorithm { 38 34 compatible = "stericsson,ab8500-chargalg"; 39 - battery = <&ab8500_battery>; 35 + monitored-battery = <&ab8500_battery>; 40 36 }; 41 37 };
+7 -3
Documentation/devicetree/bindings/power/supply/stericsson,ab8500-charger.yaml
··· 17 17 compatible: 18 18 const: stericsson,ab8500-charger 19 19 20 - battery: 20 + monitored-battery: 21 21 $ref: /schemas/types.yaml#/definitions/phandle 22 22 description: phandle to battery node 23 + 24 + battery: 25 + $ref: /schemas/types.yaml#/definitions/phandle 26 + deprecated: true 23 27 24 28 vddadc-supply: 25 29 description: Supply for USB and Main charger ··· 70 66 71 67 required: 72 68 - compatible 73 - - battery 69 + - monitored-battery 74 70 - vddadc-supply 75 71 - interrupts 76 72 - interrupt-names ··· 85 81 pmic { 86 82 charger { 87 83 compatible = "stericsson,ab8500-charger"; 88 - battery = <&ab8500_battery>; 84 + monitored-battery = <&battery>; 89 85 vddadc-supply = <&ab8500_ldo_tvout_reg>; 90 86 interrupts = <10 IRQ_TYPE_LEVEL_HIGH>, 91 87 <11 IRQ_TYPE_LEVEL_HIGH>,
+7 -3
Documentation/devicetree/bindings/power/supply/stericsson,ab8500-fg.yaml
··· 17 17 compatible: 18 18 const: stericsson,ab8500-fg 19 19 20 - battery: 20 + monitored-battery: 21 21 $ref: /schemas/types.yaml#/definitions/phandle 22 22 description: phandle to battery node 23 + 24 + battery: 25 + $ref: /schemas/types.yaml#/definitions/phandle 26 + deprecated: true 23 27 24 28 interrupts: 25 29 maxItems: 5 ··· 45 41 46 42 required: 47 43 - compatible 48 - - battery 44 + - monitored-battery 49 45 - interrupts 50 46 - interrupt-names 51 47 - io-channels ··· 59 55 pmic { 60 56 fuel-gauge { 61 57 compatible = "stericsson,ab8500-fg"; 62 - battery = <&ab8500_battery>; 58 + monitored-battery = <&battery>; 63 59 interrupts = <24 IRQ_TYPE_LEVEL_HIGH>, 64 60 <8 IRQ_TYPE_LEVEL_HIGH>, 65 61 <28 IRQ_TYPE_LEVEL_HIGH>,